Intallation error, cannot overwrite jawt_md.h in package openjdk-9-jdk-headless
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-9 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
UPDATE: This bug is no longer occurring. I was able to resolve it by first running:
$ sudo apt install openjdk-
$ sudo apt install openjdk-9-jdk
-------
Cannot install openjdk-9-jdk on Xenial because of error:
$ sudo apt install openjdk-9-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
openjdk-
Suggested packages:
openjdk-9-demo openjdk-9-source visualvm
The following NEW packages will be installed:
openjdk-9-jdk openjdk-
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/345 kB of archives.
After this operation, 831 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package openjdk-
(Reading database ... 393657 files and directories currently installed.)
Preparing to unpack .../openjdk-
Unpacking openjdk-
Preparing to unpack .../openjdk-
Unpacking openjdk-9-jdk:amd64 (9~b114-0ubuntu1) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/usr/lib/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
I just experienced the bug described. I then followed the steps listed above in the update, but continued to experience the bug described. See below:
hgolden2@ hbg-srv5: /usr/lib/ jvm/java- 9-openjdk- amd64/include/ linux$ sudo apt -f install openjdk-9-jdk 4.4.0-121 linux-headers- 4.4.0-121- generic linux-image- 4.4.0-121- generic image-extra- 4.4.0-121- generic 9-jdk_9~ b114-0ubuntu1_ amd64.deb ... apt/archives/ openjdk- 9-jdk_9~ b114-0ubuntu1_ amd64.deb (--unpack): jvm/java- 9-openjdk- amd64/include/ linux/jawt_ md.h', which is also in package openjdk- 9-jdk-headless: amd64 9~b114-0ubuntu1 apt/archives/ openjdk- 9-jdk_9~ b114-0ubuntu1_ amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libginac5v5 linux-headers-
linux-
Use 'sudo apt autoremove' to remove them.
Suggested packages:
openjdk-9-source visualvm
The following NEW packages will be installed:
openjdk-9-jdk
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0 B/16.6 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
(Reading database ... 851317 files and directories currently installed.)
Preparing to unpack .../openjdk-
Unpacking openjdk-9-jdk:amd64 (9~b114-0ubuntu1) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/usr/lib/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)