Comment 9 for bug 1806265

Revision history for this message
George Nace (gnace) wrote :

I am still struggling with fixing this bug - I have tried manually installing the new Oracle JDK per the instructions in the following answer, but still run into problems with the automated install.

https://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre

After doing this I receive the following errors in Synaptic Package Installer using the fix broken package filter (same result using commandline sudo apt --fix-broken install):
--------
(Reading database ... 531072 files and directories currently installed.)
Preparing to unpack .../openjdk-8-jre-headless_8u212-b03-0ubuntu1.18.04.1_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u212-b03-0ubuntu1.18.04.1) over (8u181-b13-1ubuntu0.18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/openjdk-8-jre-headless_8u212-b03-0ubuntu1.18.04.1_amd64.deb (--unpack):
 trying to overwrite shared '/etc/java-8-openjdk/calendars.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_8u212-b03-0ubuntu1.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of openjdk-8-jdk-headless:amd64:
 openjdk-8-jdk-headless:amd64 depends on openjdk-8-jre-headless (= 8u212-b03-0ubuntu1.18.04.1); however:
  Version of openjdk-8-jre-headless:amd64 on system is 8u181-b13-1ubuntu0.18.04.1.
  Version of openjdk-8-jre-headless on system, provided by oracle-java8-installer:all, is <none>.
  Version of openjdk-8-jre-headless on system, provided by oracle-java10-installer:amd64, is <none>.

dpkg: error processing package openjdk-8-jdk-headless:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-8-jdk:amd64:
 openjdk-8-jdk:amd64 depends on openjdk-8-jdk-headless (= 8u212-b03-0ubuntu1.18.04.1); however:
  Package openjdk-8-jdk-headless:amd64 is not configured yet.
  Version of openjdk-8-jdk-headless on system, provided by oracle-java8-installer:all, is <none>.
  Version of openjdk-8-jdk-headless on system, provided by oracle-java10-installer:amd64, is <none>.

dpkg: error processing package openjdk-8-jdk:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-8-jre:amd64:
 openjdk-8-jre:amd64 depends on openjdk-8-jre-headless (= 8u212-b03-0ubuntu1.18.04.1); however:
  Version of openjdk-8-jre-headless:amd64 on system is 8u181-b13-1ubuntu0.18.04.1.
  Version of openjdk-8-jre-headless on system, provided by oracle-java8-installer:all, is <none>.
  Version of openjdk-8-jre-headless on system, provided by oracle-java10-installer:amd64, is <none>.

dpkg: error processing package openjdk-8-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openjdk-8-jdk-headless:amd64
 openjdk-8-jdk:amd64
 openjdk-8-jre:amd64

--------