I suspect this bug may be related to an install of Oracle's Java package for Ubuntu which I installed using Oracle's deb package. This didn't cause problems for months until I suddenly got the error while running regular packaged updates using the normal user interface and standard Ubuntu tools. I can no longer use apt-get, synaptic or any other deb package installer and I'm hesitant to try to fix things manually by removing files. This latest occurrence was running "sudo apt-get install -f"
Here is the output copied from my terminal session:
=========
gnace@gn-limbo:~$ sudo apt-get install -f
[sudo] password for gnace:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
openjdk-8-jre-headless
Suggested packages:
fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
fonts-wqy-zenhei
The following packages will be upgraded:
openjdk-8-jre-headless
1 upgraded, 0 newly installed, 0 to remove and 425 not upgraded.
3 not fully installed or removed.
Need to get 0 B/27.3 MB of archives.
After this operation, 35.8 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 531072 files and directories currently installed.)
Preparing to unpack .../openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.04.1_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u191-b12-2ubuntu0.18.04.1) over (8u181-b13-1ubuntu0.18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.04.1_amd64.deb (--unpack):
trying to overwrite shared '/etc/java-8-openjdk/net.properties', which is different from other instances of package openjdk-8-jre-headless:amd64
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
gnace@gn-limbo:~$
==========
Is there some way to fix this using dpkg? The gui installers pop-ups all say that my system has broken dependencies, and suggest using "sudo apt-get install -f". Unfortunately I'm not fluent enough with dpkg to try using that command without some guidance.
I suspect this bug may be related to an install of Oracle's Java package for Ubuntu which I installed using Oracle's deb package. This didn't cause problems for months until I suddenly got the error while running regular packaged updates using the normal user interface and standard Ubuntu tools. I can no longer use apt-get, synaptic or any other deb package installer and I'm hesitant to try to fix things manually by removing files. This latest occurrence was running "sudo apt-get install -f"
Here is the output copied from my terminal session: 8-jre-headless ipafont- gothic fonts-ipafont- mincho fonts-wqy-microhei 8-jre-headless 8-jre-headless_ 8u191-b12- 2ubuntu0. 18.04.1_ amd64.deb ... 8-jre-headless: amd64 (8u191- b12-2ubuntu0. 18.04.1) over (8u181- b13-1ubuntu0. 18.04.1) ... apt/archives/ openjdk- 8-jre-headless_ 8u191-b12- 2ubuntu0. 18.04.1_ amd64.deb (--unpack): 8-openjdk/ net.properties' , which is different from other instances of package openjdk- 8-jre-headless: amd64 apt/archives/ openjdk- 8-jre-headless_ 8u191-b12- 2ubuntu0. 18.04.1_ amd64.deb
=========
gnace@gn-limbo:~$ sudo apt-get install -f
[sudo] password for gnace:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
openjdk-
Suggested packages:
fonts-
fonts-wqy-zenhei
The following packages will be upgraded:
openjdk-
1 upgraded, 0 newly installed, 0 to remove and 425 not upgraded.
3 not fully installed or removed.
Need to get 0 B/27.3 MB of archives.
After this operation, 35.8 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 531072 files and directories currently installed.)
Preparing to unpack .../openjdk-
Unpacking openjdk-
dpkg: error processing archive /var/cache/
trying to overwrite shared '/etc/java-
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
gnace@gn-limbo:~$
==========
Is there some way to fix this using dpkg? The gui installers pop-ups all say that my system has broken dependencies, and suggest using "sudo apt-get install -f". Unfortunately I'm not fluent enough with dpkg to try using that command without some guidance.