Public bug reported: Tried to install openjdk-9-jdk using apt-get on a fresh Ubuntu 16.04 64bits installation, but it gave me an error:
dpkg: error processing archive /var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/lib/jvm/java-9-openjdk-amd64/include/linux/jawt_md.h', which is also in package openjdk-9-jdk-headless:amd64 9~b114-0ubuntu1 This also happened to other users, see http://askubuntu.com/questions/769467/can-not-install-openjdk-9-jdk- because-it-tries-to-overwrite-file-aready-includ ProblemType: Package DistroRelease: Ubuntu 16.04 Package: openjdk-9-jdk (not installed) ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8 Uname: Linux 4.4.0-22-generic x86_64 ApportVersion: 2.20.1-0ubuntu2 Architecture: amd64 Date: Tue May 17 19:39:18 2016 ErrorMessage: Versuch, »/usr/lib/jvm/java-9-openjdk-amd64/include/linux/jawt_md.h« zu überschreiben, welches auch in Paket openjdk-9-jdk-headless:amd64 9~b114-0ubuntu1 ist InstallationDate: Installed on 2016-05-14 (3 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) RelatedPackageVersions: dpkg 1.18.4ubuntu1.1 apt 1.2.10ubuntu1 SourcePackage: openjdk-9 Title: package openjdk-9-jdk (not installed) failed to install/upgrade: Versuch, »/usr/lib/jvm/java-9-openjdk-amd64/include/linux/jawt_md.h« zu überschreiben, welches auch in Paket openjdk-9-jdk-headless:amd64 9~b114-0ubuntu1 ist UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: openjdk-9 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1582834 Title: Installing OpenJDK9-jdk fails on fresh 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1582834/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs