← Back to team overview

openjdk team mailing list archive

[Bug 1806265] Re: package openjdk-8-jre-headless 8u181-b13-1ubuntu0.18.04.1 failed to install/upgrade: trying to overwrite shared '/etc/java-8-openjdk/security/java.security', which is different from other instances of package openjdk-8-jre-headless:amd64

 

I was finally able to resolve this problem by unchecking/removing the
entries for java in the webupd8team ppa, after manually installing the
Oracle java-8-sdk using the procedures found in the following answer:

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

After editing the repository using Synaptic Package Manager to remove
all of the webupd8team java entries I used Software Updater to
successfully update the system.

Here is the terminal output from before and after the successful update:
----------
gnace@gn-limbo:~/Downloads$ java -version
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
gnace@gn-limbo:~/Downloads$ !!
java -version
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
gnace@gn-limbo:~/Downloads$ sudo apt --fix-broken install
[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 836 not upgraded.
3 not fully installed or removed.
Need to get 0 B/27.3 MB of archives.
After this operation, 78.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_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)

[NB - following commands run AFTER using Synaptic Package Manager to
edit Repository and Software Updater to successfully update the system]

gnace@gn-limbo:~/Downloads$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20180105.1)]/ artful main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe restricted main multiverse #Added by software-properties
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe restricted main multiverse #Added by software-properties
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse #Added by software-properties
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu artful partner
deb-src http://archive.canonical.com/ubuntu artful partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security universe restricted main multiverse #Added by software-properties
# deb-src http://security.ubuntu.com/ubuntu artful-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu artful-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu artful-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-proposed main universe multiverse restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-proposed main universe multiverse restricted #Added by software-properties
gnace@gn-limbo:~/Downloads$ sudo apt --fix-broken install
[sudo] password for gnace: 
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
gnace@gn-limbo:~/Downloads$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpyside2-5.11 libshiboken2-5.11 libsimgearcore2018.2.2
  libsimgearscene2018.2.2 linux-headers-4.15.0-39
  linux-headers-4.15.0-39-generic linux-image-4.15.0-39-generic
  linux-modules-4.15.0-39-generic linux-modules-extra-4.15.0-39-generic
  python-pivy python-pyside2.qtcore python-pyside2.qtgui
  python-pyside2.qtopengl python-pyside2.qtwidgets
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gnace@gn-limbo:~/Downloads$ java -version
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
gnace@gn-limbo:~/Downloads$ 

----------

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1806265

Title:
  package openjdk-8-jre-headless 8u181-b13-1ubuntu0.18.04.1 failed to
  install/upgrade: trying to overwrite shared
  '/etc/java-8-openjdk/security/java.security', which is different from
  other instances of package openjdk-8-jre-headless:amd64

Status in openjdk-8 package in Ubuntu:
  New

Bug description:
  Package crash on automated install.

  ProblemType: Package
  DistroRelease: Ubuntu 18.04
  Package: openjdk-8-jre-headless 8u181-b13-1ubuntu0.18.04.1
  ProcVersionSignature: Ubuntu 4.15.0-42.45-generic 4.15.18
  Uname: Linux 4.15.0-42-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.9-0ubuntu7.5
  AptOrdering:
   openjdk-8-jdk:amd64: Install
   openjdk-8-jdk-headless:amd64: Install
   openjdk-8-jre:amd64: Install
   openjdk-8-jre-headless:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  Date: Wed Nov 28 06:37:25 2018
  DuplicateSignature:
   package:openjdk-8-jre-headless:8u181-b13-1ubuntu0.18.04.1
   Unpacking openjdk-8-jre-headless:amd64 (8u191-b12-0ubuntu0.18.04.1) over (8u181-b13-1ubuntu0.18.04.1) ...
   dpkg: error processing archive /var/cache/apt/archives/openjdk-8-jre-headless_8u191-b12-0ubuntu0.18.04.1_amd64.deb (--unpack):
    trying to overwrite shared '/etc/java-8-openjdk/security/java.security', which is different from other instances of package openjdk-8-jre-headless:amd64
  ErrorMessage: trying to overwrite shared '/etc/java-8-openjdk/security/java.security', which is different from other instances of package openjdk-8-jre-headless:amd64
  Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.04
  PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   dpkg 1.19.0.5ubuntu2.1
   apt  1.6.6
  SourcePackage: openjdk-8
  Title: package openjdk-8-jre-headless 8u181-b13-1ubuntu0.18.04.1 failed to install/upgrade: trying to overwrite shared '/etc/java-8-openjdk/security/java.security', which is different from other instances of package openjdk-8-jre-headless:amd64
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1806265/+subscriptions


References