openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #12015
[Bug 1600269] Re: package openjdk-9-jdk (not installed) failed to install/upgrade: 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 bug is a duplicate of bug 1550950 ***
https://bugs.launchpad.net/bugs/1550950
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
To fix your problem, please uninstall all openjdk-9-* packages, install
the default-jdk package, and then continue with android-studio
installation.
A bug + fix has been opened against android-studio at
https://github.com/PaoloRotolo/android-studio/pull/29 but there isn't
much more I can do here as that is Paolo Rotolo's individual PPA. For
further information on the bug please use and subscribe to
aforementioned android-studio pull request.
Meanwhile I will be closing this as a duplicate of bug #1550950.
** This bug has been marked a duplicate of bug 1550950
package openjdk-9-jdk 9~b102-1 failed to install/upgrade: 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~b107-0ubuntu1
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-9 in Ubuntu.
https://bugs.launchpad.net/bugs/1600269
Title:
package openjdk-9-jdk (not installed) failed to install/upgrade:
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
Status in openjdk-9 package in Ubuntu:
Confirmed
Bug description:
as i am trying to install android studio from within command line as i was not able to downloaded from the official web site
i tried to use sudo apt ...
this is the command
$sudo add-apt-repository ppa:paolorotolo/android-studio
sudo apt-get update
here is the full list of output from command terminal
sudo apt-get install android-studio
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-24 linux-headers-4.4.0-24-generic
linux-image-4.4.0-24-generic linux-image-extra-4.4.0-24-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java
libatk-wrapper-java-jni libbonobo2-0 libbonobo2-common libgif7 libgnome-2-0
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libice-dev liborbit-2-0
libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev
libxdmcp-dev libxt-dev openjdk-9-jdk openjdk-9-jdk-headless openjdk-9-jre
openjdk-9-jre-headless x11proto-core-dev x11proto-input-dev x11proto-kb-dev
xorg-sgml-doctools xtrans-dev
Suggested packages:
default-jre libbonobo2-bin desktop-base libgnomevfs2-bin libgnomevfs2-extra
gamin | fam gnome-mime-data libice-doc libsm-doc libxcb-doc libxt-doc
openjdk-9-demo openjdk-9-source visualvm icedtea-8-plugin
fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei | ttf-wqy-zenhei
fonts-indic
The following NEW packages will be installed:
android-studio ca-certificates-java fonts-dejavu-extra java-common
libatk-wrapper-java libatk-wrapper-java-jni libbonobo2-0 libbonobo2-common
libgif7 libgnome-2-0 libgnome2-common libgnomevfs2-0 libgnomevfs2-common
libice-dev liborbit-2-0 libpthread-stubs0-dev libsm-dev libx11-dev
libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-9-jdk
openjdk-9-jdk-headless openjdk-9-jre openjdk-9-jre-headless
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
xtrans-dev
0 upgraded, 32 newly installed, 0 to remove and 82 not upgraded.
Need to get 189 MB of archives.
After this operation, 338 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libbonobo2-common all 2.32.1-3 [34.7 kB]
Get:2 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 liborbit-2-0 amd64 1:2.14.19-1build1 [140 kB]
Get:3 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libbonobo2-0 amd64 2.32.1-3 [211 kB]
Get:4 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 ca-certificates-java all 20160321 [12.9 kB]
Get:5 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 java-common all 0.56ubuntu2 [7742 B]
Get:6 http://sa.archive.ubuntu.com/ubuntu xenial/universe amd64 openjdk-9-jre-headless amd64 9~b114-0ubuntu1 [183 MB]
Get:7 http://ppa.launchpad.net/paolorotolo/android-studio/ubuntu xenial/main amd64 android-studio all 5.2.1-ubuntu0 [40.4 kB]
Get:8 http://sa.archive.ubuntu.com/ubuntu xenial/universe amd64 libatk-wrapper-java all 0.33.3-6 [33.9 kB]
Get:9 http://sa.archive.ubuntu.com/ubuntu xenial/universe amd64 libatk-wrapper-java-jni amd64 0.33.3-6 [27.4 kB]
Get:10 http://sa.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgif7 amd64 5.1.4-0.3~16.04 [30.5 kB]
Get:11 http://sa.archive.ubuntu.com/ubuntu xenial/universe amd64 openjdk-9-jre amd64 9~b114-0ubuntu1 [51.5 kB]
Get:12 http://sa.archive.ubuntu.com/ubuntu xenial/universe amd64 openjdk-9-jdk-headless amd64 9~b114-0ubuntu1 [328 kB]
Get:13 http://sa.archive.ubuntu.com/ubuntu xenial/universe amd64 openjdk-9-jdk amd64 9~b114-0ubuntu1 [16.6 kB]
Get:14 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 fonts-dejavu-extra all 2.35-1 [1749 kB]
Get:15 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libgnomevfs2-common amd64 1:2.24.4-6.1ubuntu1 [23.0 kB]
Get:16 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libgnomevfs2-0 amd64 1:2.24.4-6.1ubuntu1 [213 kB]
Get:17 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libgnome2-common all 2.32.1-5ubuntu1 [33.5 kB]
Get:18 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libgnome-2-0 amd64 2.32.1-5ubuntu1 [53.7 kB]
Get:19 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
Get:20 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-core-dev all 7.0.28-2ubuntu1 [254 kB]
Get:21 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libice-dev amd64 2:1.0.9-1 [44.9 kB]
Get:22 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libpthread-stubs0-dev amd64 0.3-4 [4068 B]
Get:23 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libsm-dev amd64 2:1.2.2-1 [16.2 kB]
Get:24 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libxau-dev amd64 1:1.0.8-1 [11.1 kB]
Get:25 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libxdmcp-dev amd64 1:1.1.2-1.1 [25.1 kB]
Get:26 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-input-dev all 2.3.1-1 [118 kB]
Get:27 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 x11proto-kb-dev all 1.0.7-0ubuntu1 [224 kB]
Get:28 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 xtrans-dev all 1.3.5-1 [70.5 kB]
Get:29 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libxcb1-dev amd64 1.11.1-1ubuntu1 [74.2 kB]
Get:30 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libx11-dev amd64 2:1.6.3-1ubuntu2 [642 kB]
Get:31 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libx11-doc all 2:1.6.3-1ubuntu2 [1465 kB]
Get:32 http://sa.archive.ubuntu.com/ubuntu xenial/main amd64 libxt-dev amd64 1:1.1.5-0ubuntu1 [394 kB]
Fetched 189 MB in 5min 33s (569 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libbonobo2-common.
(Reading database ... 240864 files and directories currently installed.)
Preparing to unpack .../libbonobo2-common_2.32.1-3_all.deb ...
Unpacking libbonobo2-common (2.32.1-3) ...
Selecting previously unselected package liborbit-2-0:amd64.
Preparing to unpack .../liborbit-2-0_1%3a2.14.19-1build1_amd64.deb ...
Unpacking liborbit-2-0:amd64 (1:2.14.19-1build1) ...
Selecting previously unselected package libbonobo2-0:amd64.
Preparing to unpack .../libbonobo2-0_2.32.1-3_amd64.deb ...
Unpacking libbonobo2-0:amd64 (2.32.1-3) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../ca-certificates-java_20160321_all.deb ...
Unpacking ca-certificates-java (20160321) ...
Selecting previously unselected package java-common.
Preparing to unpack .../java-common_0.56ubuntu2_all.deb ...
Unpacking java-common (0.56ubuntu2) ...
Selecting previously unselected package openjdk-9-jre-headless:amd64.
Preparing to unpack .../openjdk-9-jre-headless_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jre-headless:amd64 (9~b114-0ubuntu1) ...
Selecting previously unselected package libatk-wrapper-java.
Preparing to unpack .../libatk-wrapper-java_0.33.3-6_all.deb ...
Unpacking libatk-wrapper-java (0.33.3-6) ...
Selecting previously unselected package libatk-wrapper-java-jni:amd64.
Preparing to unpack .../libatk-wrapper-java-jni_0.33.3-6_amd64.deb ...
Unpacking libatk-wrapper-java-jni:amd64 (0.33.3-6) ...
Selecting previously unselected package libgif7:amd64.
Preparing to unpack .../libgif7_5.1.4-0.3~16.04_amd64.deb ...
Unpacking libgif7:amd64 (5.1.4-0.3~16.04) ...
Selecting previously unselected package openjdk-9-jre:amd64.
Preparing to unpack .../openjdk-9-jre_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jre:amd64 (9~b114-0ubuntu1) ...
Selecting previously unselected package openjdk-9-jdk-headless:amd64.
Preparing to unpack .../openjdk-9-jdk-headless_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jdk-headless:amd64 (9~b114-0ubuntu1) ...
Selecting previously unselected package openjdk-9-jdk:amd64.
Preparing to unpack .../openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jdk:amd64 (9~b114-0ubuntu1) ...
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
Selecting previously unselected package android-studio.
Preparing to unpack .../android-studio_5.2.1-ubuntu0_all.deb ...
--2016-07-08 18:06:09-- https://dl.google.com/dl/android/studio/ide-zips/2.1.0.9/android-studio-ide-143.2790544-linux.zip
Resolving dl.google.com (dl.google.com)... 64.233.184.93, 64.233.184.91, 64.233.184.136, ...
Connecting to dl.google.com (dl.google.com)|64.233.184.93|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 298122012 (284M) [application/zip]
Saving to: ‘android-studio-ide-143.2790544-linux.zip’
android-studio-ide-143.2790544-linu
100%[==================================================================>]
284.31M 1.05MB/s in 5m 46s
2016-07-08 18:11:56 (841 KB/s) - ‘android-studio-
ide-143.2790544-linux.zip’ saved [298122012/298122012]
Unpacking android-studio (5.2.1-ubuntu0) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../fonts-dejavu-extra_2.35-1_all.deb ...
Unpacking fonts-dejavu-extra (2.35-1) ...
Selecting previously unselected package libgnomevfs2-common.
Preparing to unpack .../libgnomevfs2-common_1%3a2.24.4-6.1ubuntu1_amd64.deb ...
Unpacking libgnomevfs2-common (1:2.24.4-6.1ubuntu1) ...
Selecting previously unselected package libgnomevfs2-0:amd64.
Preparing to unpack .../libgnomevfs2-0_1%3a2.24.4-6.1ubuntu1_amd64.deb ...
Unpacking libgnomevfs2-0:amd64 (1:2.24.4-6.1ubuntu1) ...
Selecting previously unselected package libgnome2-common.
Preparing to unpack .../libgnome2-common_2.32.1-5ubuntu1_all.deb ...
Unpacking libgnome2-common (2.32.1-5ubuntu1) ...
Selecting previously unselected package libgnome-2-0:amd64.
Preparing to unpack .../libgnome-2-0_2.32.1-5ubuntu1_amd64.deb ...
Unpacking libgnome-2-0:amd64 (2.32.1-5ubuntu1) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../x11proto-core-dev_7.0.28-2ubuntu1_all.deb ...
Unpacking x11proto-core-dev (7.0.28-2ubuntu1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../libice-dev_2%3a1.0.9-1_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.9-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../libpthread-stubs0-dev_0.3-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../libsm-dev_2%3a1.2.2-1_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.2-1) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../libxau-dev_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../libxdmcp-dev_1%3a1.1.2-1.1_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.2-1.1) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../x11proto-input-dev_2.3.1-1_all.deb ...
Unpacking x11proto-input-dev (2.3.1-1) ...
Selecting previously unselected package x11proto-kb-dev.
Preparing to unpack .../x11proto-kb-dev_1.0.7-0ubuntu1_all.deb ...
Unpacking x11proto-kb-dev (1.0.7-0ubuntu1) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../xtrans-dev_1.3.5-1_all.deb ...
Unpacking xtrans-dev (1.3.5-1) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../libxcb1-dev_1.11.1-1ubuntu1_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../libx11-dev_2%3a1.6.3-1ubuntu2_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libx11-doc.
Preparing to unpack .../libx11-doc_2%3a1.6.3-1ubuntu2_all.deb ...
Unpacking libx11-doc (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../libxt-dev_1%3a1.1.5-0ubuntu1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.1.5-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ca-certificates (20160104ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160523-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1) ...
Processing triggers for gconf2 (3.2.6-3ubuntu6) ...
Errors were encountered while processing:
/var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: openjdk-9-jdk (not installed)
ProcVersionSignature: Ubuntu 4.4.0-27.46-generic 4.4.13
Uname: Linux 4.4.0-27-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Fri Jul 8 18:06:08 2016
DuplicateSignature:
package:openjdk-9-jdk:(not installed)
Unpacking openjdk-9-jdk:amd64 (9~b114-0ubuntu1) ...
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
ErrorMessage: 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
InstallationDate: Installed on 2016-06-18 (20 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160610)
RelatedPackageVersions:
dpkg 1.18.4ubuntu1.1
apt 1.2.12~ubuntu16.04.1
SourcePackage: openjdk-9
Title: package openjdk-9-jdk (not installed) failed to install/upgrade: 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
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1600269/+subscriptions
References