Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Getting 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) #30

Open
GijsTimmers opened this issue Aug 8, 2016 · 0 comments

Comments

@GijsTimmers
Copy link

Getting this error on Ubuntu 16.04, 64 bit:

$ sudo apt-get install android-studio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  openjdk-9-jdk openjdk-9-jdk-headless
Suggested packages:
  openjdk-9-demo openjdk-9-source visualvm
The following NEW packages will be installed:
  android-studio openjdk-9-jdk openjdk-9-jdk-headless
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/385 kB of archives.
After this operation, 912 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Selecting previously unselected package openjdk-9-jdk-headless:amd64.
(Reading database ... 444016 files and directories currently installed.)
Preparing to unpack .../openjdk-9-jdk-headless_9~b114-0ubuntu1_amd64.deb ...
Unpacking openjdk-9-jdk-headless:amd64 (9~b114-0ubuntu1) ...
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-08-08 18:24:45--  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)... 2a00:1450:400c:c09::5d, 74.125.136.91, 74.125.136.190, ...
Connecting to dl.google.com (dl.google.com)|2a00:1450:400c:c09::5d|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 298122012 (284M) [application/zip]
Saving to: 'android-studio-ide-143.2790544-linux.zip.1'

android-studio-ide- 100%[===================>] 284.31M  2.69MB/s    in 1m 55s  

2016-08-08 18:26:40 (2.48 MB/s) - 'android-studio-ide-143.2790544-linux.zip.1' saved [298122012/298122012]

Unpacking android-studio (5.2.1-ubuntu0) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant