← Back to team overview

openjdk team mailing list archive

[Bug 1784220] [NEW] package openjdk-8-jdk:amd64 8u171-b11-0ubuntu0.18.04.1 failed to install/upgrade: installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2

 

Public bug reported:

I ran a script which probably messed up my OpenJDK 8 JDK installation,
so that re-installation and `sudo apt-get install -f` fails due to

```
> sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libandroid-json-java libantlr3-runtime-java libantlr4-runtime-java libfontbox-java libglazedlists-java libhttpasyncclient-java libhttpmime-java libjava-string-similarity-java libjempbox-java libjgoodies-common-java
  libjgoodies-forms-java libjgoodies-looks-java libjhlabs-filters-java liblightcouch-java liblog4j2-java libmicroba-java libmongodb-java libpdfbox-java libspin-java libswing-layout-java libswingx-java libunirest-java-java
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  openjdk-8-jre
Suggested packages:
  icedtea-8-plugin
The following NEW packages will be installed:
  openjdk-8-jre
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/69,5 kB of archives.
After this operation, 257 kB of additional disk space will be used.
Do you want to continue? [J/n] j
(Reading database ... 1128791 files and directories currently installed.)
Preparing to unpack .../openjdk-8-jre_8u171-b11-0ubuntu0.18.04.1_amd64.deb ...
Unpacking openjdk-8-jre:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Setting up openjdk-8-jre:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up openjdk-8-jdk:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
update-alternatives: error: alternative path /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer doesn't exist
dpkg: error processing package openjdk-8-jdk:amd64 (--configure):
 installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: openjdk-8-jdk:amd64 8u171-b11-0ubuntu0.18.04.1
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.2
AptOrdering:
 openjdk-8-jre:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Sun Jul 29 12:43:50 2018
DuplicateSignature:
 package:openjdk-8-jdk:amd64:8u171-b11-0ubuntu0.18.04.1
 Setting up openjdk-8-jdk:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
 update-alternatives: error: alternative path /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer doesn't exist
 dpkg: error processing package openjdk-8-jdk:amd64 (--configure):
  installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
ErrorMessage: installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt  1.6.3
SourcePackage: openjdk-8
Title: package openjdk-8-jdk:amd64 8u171-b11-0ubuntu0.18.04.1 failed to install/upgrade: installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
UpgradeStatus: Upgraded to bionic on 2018-04-30 (90 days ago)
mtime.conffile..etc.java-8-openjdk.accessibility.properties: 2018-01-28T19:58:13.595192

** Affects: openjdk-8 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package bionic third-party-packages

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1784220

Title:
  package openjdk-8-jdk:amd64 8u171-b11-0ubuntu0.18.04.1 failed to
  install/upgrade: installed openjdk-8-jdk:amd64 package post-
  installation script subprocess returned error exit status 2

Status in openjdk-8 package in Ubuntu:
  New

Bug description:
  I ran a script which probably messed up my OpenJDK 8 JDK installation,
  so that re-installation and `sudo apt-get install -f` fails due to

  ```
  > sudo apt-get install -f
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Correcting dependencies... Done
  The following packages were automatically installed and are no longer required:
    libandroid-json-java libantlr3-runtime-java libantlr4-runtime-java libfontbox-java libglazedlists-java libhttpasyncclient-java libhttpmime-java libjava-string-similarity-java libjempbox-java libjgoodies-common-java
    libjgoodies-forms-java libjgoodies-looks-java libjhlabs-filters-java liblightcouch-java liblog4j2-java libmicroba-java libmongodb-java libpdfbox-java libspin-java libswing-layout-java libswingx-java libunirest-java-java
  Use 'sudo apt autoremove' to remove them.
  The following additional packages will be installed:
    openjdk-8-jre
  Suggested packages:
    icedtea-8-plugin
  The following NEW packages will be installed:
    openjdk-8-jre
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  2 not fully installed or removed.
  Need to get 0 B/69,5 kB of archives.
  After this operation, 257 kB of additional disk space will be used.
  Do you want to continue? [J/n] j
  (Reading database ... 1128791 files and directories currently installed.)
  Preparing to unpack .../openjdk-8-jre_8u171-b11-0ubuntu0.18.04.1_amd64.deb ...
  Unpacking openjdk-8-jre:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
  Processing triggers for mime-support (3.60ubuntu1) ...
  Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
  Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
  Rebuilding /usr/share/applications/bamf-2.index...
  Setting up openjdk-8-jre:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
  update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
  Processing triggers for libc-bin (2.27-3ubuntu1) ...
  Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
  Processing triggers for hicolor-icon-theme (0.17-2) ...
  Setting up openjdk-8-jdk:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
  update-alternatives: error: alternative path /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer doesn't exist
  dpkg: error processing package openjdk-8-jdk:amd64 (--configure):
   installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  ```

  ProblemType: Package
  DistroRelease: Ubuntu 18.04
  Package: openjdk-8-jdk:amd64 8u171-b11-0ubuntu0.18.04.1
  ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
  Uname: Linux 4.15.0-29-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.9-0ubuntu7.2
  AptOrdering:
   openjdk-8-jre:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  Date: Sun Jul 29 12:43:50 2018
  DuplicateSignature:
   package:openjdk-8-jdk:amd64:8u171-b11-0ubuntu0.18.04.1
   Setting up openjdk-8-jdk:amd64 (8u171-b11-0ubuntu0.18.04.1) ...
   update-alternatives: error: alternative path /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer doesn't exist
   dpkg: error processing package openjdk-8-jdk:amd64 (--configure):
    installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
  ErrorMessage: installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
  Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
  PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   dpkg 1.19.0.5ubuntu2
   apt  1.6.3
  SourcePackage: openjdk-8
  Title: package openjdk-8-jdk:amd64 8u171-b11-0ubuntu0.18.04.1 failed to install/upgrade: installed openjdk-8-jdk:amd64 package post-installation script subprocess returned error exit status 2
  UpgradeStatus: Upgraded to bionic on 2018-04-30 (90 days ago)
  mtime.conffile..etc.java-8-openjdk.accessibility.properties: 2018-01-28T19:58:13.595192

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1784220/+subscriptions


Follow ups