← Back to team overview

openjdk team mailing list archive

Bug#873104: openjdk-9: update-alternatives error + fail in updating

 

Source: openjdk-9
Version: 9~b181-3
Severity: serious

Hi!

Today while upgrading openjdk-9* packages from 9~b181-2 to 9~b181-3:

=====
Setting up openjdk-9-jre-headless:amd64 (9~b181-3) ...
update-alternatives: error: alternative path /usr/lib/jvm/java-9-openjdk-amd64/bin/rmid doesn't exist
dpkg: error processing package openjdk-9-jre-headless:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-9-jdk-headless:amd64:
 openjdk-9-jdk-headless:amd64 depends on openjdk-9-jre-headless (= 9~b181-3); however:
  Package openjdk-9-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-9-jdk-headless:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-9-jdk:amd64:
 openjdk-9-jdk:amd64 depends on openjdk-9-jdk-headless (= 9~b181-3); however:
  Package openjdk-9-jdk-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-9-jdk:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-9-jre:amd64:
 openjdk-9-jre:amd64 depends on openjdk-9-jre-headless (= 9~b181-3); however:
  Package openjdk-9-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-9-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openjdk-9-jre-headless:amd64
 openjdk-9-jdk-headless:amd64
 openjdk-9-jdk:amd64
 openjdk-9-jre:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
=====

Before the update it was possible to see that a lot of disk space was
going to be freed (so probably something is missing on the new
packages?)

=====
# LC_ALL=C apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  binutils-common binutils-x86-64-linux-gnu libbinutils
The following packages have been kept back:
  libc-dev-bin libc6 libc6-dev nodejs nodejs-dev
The following packages will be upgraded:
  binutils libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4 libmariadbclient18 libnghttp2-14 libpam-systemd librtlsdr-dev librtlsdr0 libsystemd0 libsystemd0:i386 libudev-dev libudev1 libudev1:i386 libxcursor1 mariadb-common openjdk-9-jdk openjdk-9-jdk-headless openjdk-9-jre openjdk-9-jre-headless rtl-sdr
  systemd systemd-sysv udev
24 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 10.2 MB/10.8 MB of archives.
After this operation, 274 MB disk space will be freed.
Do you want to continue? [Y/n]
=====

And some warnings when trying to upgrade, saying that it was not
possible to remove some directories (since they were not empty; messages
are in Portuguese)

=====
A descompactar openjdk-9-jre-headless:amd64 (9~b181-3) sobre (9~b181-2) ...
dpkg: aviso: não foi possível apagar o directório antigo '/usr/lib/jvm/java-9-openjdk-amd64/lib/server': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/java-9-openjdk/security/policy/unlimited': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/java-9-openjdk/security/policy/limited': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/java-9-openjdk/security/policy': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/java-9-openjdk/security': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/java-9-openjdk/management': Diretório não vazio
dpkg: aviso: não foi possível apagar o directório antigo '/etc/java-9-openjdk': Diretório não vazi
=====

Thank you!

Best regards,
Nelson

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=pt_BR:pt:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)