Thursday, November 24, 2016

apt - Ubuntu 13.10: Upgrade interrupted because of openjdk-7

I was running an apt-get upgrade (not version upgrade, just normal), when I got this message:




You might want to run 'apt-get -f install' to correct these.




The following packages have unmet dependencies:
icedtea-7-jre-jamvm : Depends: openjdk-7-jre-headless (=
7u51-2.4.4-0ubuntu0.13.10.1)



openjdk-7-jre : Depends: openjdk-7-jre-headless (=
7u51-2.4.4-0ubuntu0.13.10.1)



openjdk-7-jre-lib : Breaks: openjdk-7-jre-headless (< 7u45-2.4.3-1)



E: Unmet dependencies. Try using -f.





I then run as recommended "apt-get install -f" and here is the output:




Preparing to replace openjdk-7-jre-headless:amd64 7u25-2.3.12-4ubuntu3
(using
.../openjdk-7-jre-headless_7u51-2.4.4-0ubuntu0.13.10.1_amd64.deb) ...



Unpacking replacement openjdk-7-jre-headless:amd64 ... dpkg: error

processing
/var/cache/apt/archives/openjdk-7-jre-headless_7u51-2.4.4-0ubuntu0.13.10.1_amd64.deb
(--unpack):



trying to overwrite shared '/etc/java-7-openjdk/sound.properties',
which is different from other instances of package
openjdk-7-jre-headless:amd64



Errors were encountered while processing:
/var/cache/apt/archives/openjdk-7-jre-headless_7u51-2.4.4-0ubuntu0.13.10.1_amd64.deb




E: Sub-process /usr/bin/dpkg returned an error code (1)




How can I fix this error?
Thanks



UPDATE:



The 1st time, I ran the command, there was no output. Now, running it again, I get:





dpkg: dependency problems prevent removal of



openjdk-7-jre-headless:amd64: icedtea-7-jre-jamvm:amd64 depends on



openjdk-7-jre-headless (= 7u51-2.4.4-0ubuntu0.13.10.1).



dpkg: error processing openjdk-7-jre-headless:amd64 (--remove):




dependency problems - not removing Errors were encountered while



processing: openjdk-7-jre-headless:amd64


No comments:

Post a Comment

11.10 - Can&#39;t boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...