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:
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
## 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$
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: limbo:~ /Downloads$ java -version limbo:~ /Downloads$ !! limbo:~ /Downloads$ sudo apt --fix-broken install 8-jre-headless ipafont- gothic fonts-ipafont- mincho fonts-wqy-microhei 8-jre-headless 8-jre-headless_ 8u212-b03- 0ubuntu1. 18.04.1_ amd64.deb ... 8-jre-headless: amd64 (8u212- b03-0ubuntu1. 18.04.1) over (8u181- b13-1ubuntu0. 18.04.1) ... apt/archives/ openjdk- 8-jre-headless_ 8u212-b03- 0ubuntu1. 18.04.1_ amd64.deb (--unpack): 8-openjdk/ calendars. properties' , which is different from other instances of package openjdk- 8-jre-headless: amd64 apt/archives/ openjdk- 8-jre-headless_ 8u212-b03- 0ubuntu1. 18.04.1_ amd64.deb
----------
gnace@gn-
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-
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-
[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 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-
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)
[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 us.archive. ubuntu. com/ubuntu/ bionic main restricted us.archive. ubuntu. com/ubuntu/ bionic universe restricted main multiverse #Added by software-properties us.archive. ubuntu. com/ubuntu/ artful main restricted
# newer versions of the distribution.
deb http://
deb-src http://
# deb-src http://
## Major bug fix updates produced after the final release of the us.archive. ubuntu. com/ubuntu/ bionic-updates main restricted us.archive. ubuntu. com/ubuntu/ bionic-updates universe restricted main multiverse #Added by software-properties us.archive. ubuntu. com/ubuntu/ artful-updates main restricted
## distribution.
deb http://
deb-src http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu us.archive. ubuntu. com/ubuntu/ bionic universe us.archive. ubuntu. com/ubuntu/ artful universe us.archive. ubuntu. com/ubuntu/ bionic-updates universe us.archive. ubuntu. com/ubuntu/ artful-updates universe
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu us.archive. ubuntu. com/ubuntu/ bionic multiverse us.archive. ubuntu. com/ubuntu/ artful multiverse us.archive. ubuntu. com/ubuntu/ bionic-updates multiverse us.archive. ubuntu. com/ubuntu/ artful-updates multiverse
## 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://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository may not have been tested as us.archive. ubuntu. com/ubuntu/ bionic-backports main restricted universe multiverse us.archive. ubuntu. com/ubuntu/ bionic-backports main restricted universe multiverse #Added by software-properties us.archive. ubuntu. com/ubuntu/ artful-backports main restricted universe multiverse
## 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://
deb-src http://
# deb-src http://
## Uncomment the following two lines to add software from Canonical's archive. canonical. com/ubuntu artful partner archive. canonical. com/ubuntu artful partner
## '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://
deb-src http://
deb http:// security. ubuntu. com/ubuntu bionic-security main restricted security. ubuntu. com/ubuntu bionic-security universe restricted main multiverse #Added by software-properties security. ubuntu. com/ubuntu artful-security main restricted security. ubuntu. com/ubuntu bionic-security universe security. ubuntu. com/ubuntu artful-security universe security. ubuntu. com/ubuntu bionic-security multiverse security. ubuntu. com/ubuntu artful-security multiverse us.archive. ubuntu. com/ubuntu/ bionic-proposed main universe multiverse restricted us.archive. ubuntu. com/ubuntu/ bionic-proposed main universe multiverse restricted #Added by software-properties limbo:~ /Downloads$ sudo apt --fix-broken install dpkg/lock- frontend - open (11: Resource temporarily unavailable) dpkg/lock- frontend) , is another process using it? limbo:~ /Downloads$ sudo apt --fix-broken install 018.2.2 ne2018. 2.2 linux-headers- 4.15.0- 39 headers- 4.15.0- 39-generic linux-image- 4.15.0- 39-generic modules- 4.15.0- 39-generic linux-modules- extra-4. 15.0-39- generic pyside2. qtcore python- pyside2. qtgui pyside2. qtopengl python- pyside2. qtwidgets limbo:~ /Downloads$ java -version limbo:~ /Downloads$
deb-src http://
# deb-src http://
deb http://
# deb-src http://
deb http://
# deb-src http://
deb http://
deb-src http://
gnace@gn-
[sudo] password for gnace:
E: Could not get lock /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
gnace@gn-
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 libsimgearcore2
libsimgearsce
linux-
linux-
python-pivy python-
python-
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gnace@gn-
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-
----------