Exception in thread "main" java.lang.ClassFormatError: Truncated class file

Bug #2005022 reported by davidak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ca-certificates-java (Ubuntu)
New
Undecided
Unassigned

Bug Description

The install of this package fails, which blocks any apt-get operation. It was not fixed by a reinstall, so i think the issue is in the package and not the system.

Issue happened on an Ubuntu 22.04.1 LTS system.

Terminal output:

ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ sudo
apt-get update
[sudo] Passwort für ck:
OK:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Holen:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [114
kB]
Holen:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Holen:4 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
[107 kB]
Holen:5 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64
Packages [852 kB]
Holen:6 http://de.archive.ubuntu.com/ubuntu jammy-updates/main i386
Packages [429 kB]
Holen:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64
DEP-11 Metadata [41,5 kB]
Holen:8 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64
DEP-11 Metadata [101 kB]
Holen:9 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe amd64
Packages [796 kB]
Holen:10 http://security.ubuntu.com/ubuntu jammy-security/universe amd64
DEP-11 Metadata [13,3 kB]
Holen:11 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe i386
Packages [567 kB]
Holen:12 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe
amd64 DEP-11 Metadata [265 kB]
Holen:13 http://de.archive.ubuntu.com/ubuntu jammy-updates/multiverse
amd64 DEP-11 Metadata [940 B]
Holen:14 http://de.archive.ubuntu.com/ubuntu jammy-backports/main amd64
DEP-11 Metadata [7.996 B]
Holen:15 http://de.archive.ubuntu.com/ubuntu jammy-backports/universe
amd64 DEP-11 Metadata [12,4 kB]
Es wurden 3.418 kB in 2 s geholt (1.689 kB/s).
Paketlisten werden gelesen… Fertig
ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ sudo
apt-get check
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Probieren Sie »apt --fix-broken install«, um dies zu korrigieren.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
  libadwaitaqt1 : Hängt ab von: libadwaitaqtpriv1 (>= 1.1.90) ist aber
nicht installiert
  zeitgeist-core : Hängt ab von: libxapian30 (>= 1.4.17~) aber 1.4.14-2
ist installiert
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt --fix-broken install«
ohne Angabe eines Pakets (oder geben Sie eine Lösung an).
ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ sudo
apt --fix-broken install
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Abhängigkeiten werden korrigiert … Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht
mehr benötigt:
   binutils-common bsdmainutils chromium-browser-l10n cpp-7 cpp-9
dvd+rw-tools enchant gcc-10-base gcc-9-base gir1.2-accounts-1.0
gir1.2-appindicator3-0.1 gir1.2-clutter-gst-3.0
   gir1.2-gnomebluetooth-1.0 gir1.2-signon-1.0
gnome-getting-started-docs gnome-software-common growisofs hddtemp
ippusbxd iputils-arping libadwaitaqt1 libadwaitaqtpriv1 libamtk-5-0
libamtk-5-common
   libaom0 libapt-pkg-perl libasn1-8-heimdal libatomic1 libavcodec57
libavutil55 libb-hooks-op-check-perl libboost-date-time1.65.1
libboost-date-time1.71.0 libboost-filesystem1.65.1
   libboost-filesystem1.71.0 libboost-iostreams1.71.0
libboost-locale1.71.0 libboost-system1.65.1 libboost-thread1.71.0
libbrlapi0.6 libbrlapi0.7 libc-dev-bin libcamel-1.2-62 libcbor0.6 libcc1-0
   libcdio18 libcmis-0.5-5v5 libcodec2-0.9 libcpanel-json-xs-perl
libcrypt-dev libcrystalhd3 libdc1394-22 libdevel-callchecker-perl
libdevel-size-perl libdns-export1109 libdouble-conversion1 libdvdread7
   libdynaloader-functions-perl libedataserver-1.2-24
libedataserverui-1.2-2 libenchant1c2a libextutils-pkgconfig-perl
libfakeroot libfcgi-bin libfcgi-perl libfcgi0ldbl
libfile-copy-recursive-perl
   libfluidsynth2 libfuse2 libfuture-perl libfwupdplugin1
libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libgeoip1 libgmime-3.0-0
libgssapi3-heimdal libgssdp-1.0-3 libgtksourceview-3.0-common
   libgupnp-1.2-0 libgutenprint2 libhandy-0.0-0 libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhogweed5 libhx509-5-heimdal
libicu66 libigdgmm11 libilmbase24 libio-pty-perl libiptc0
   libisl19 libisl22 libitm1 libjson-c4 libjson-maybexs-perl libjte1
libjuh-java libjurt-java libkrb5-26-heimdal libldap-2.4-2
liblibreoffice-java liblinux-epoll-perl libllvm11 libllvm12 libmms0
   libmozjs-68-0 libmysofa0 libmysqlclient21 libnet-ip-perl libnettle7
libntfs-3g883 libofa0 libopenexr24 liborcus-0.15-0
libparams-classify-perl libperl5.30 libperlio-gzip-perl libpgm-5.2-0
   libphonenumber7 libplymouth4 libpoppler97 libprocps6 libprotobuf17
libpython2-stdlib libpython3.6-minimal libpython3.8 libpython3.8-minimal
libpython3.8-stdlib libqpdf26 libqt5script5 libraw16
   libraw19 libreadline7 libreadonly-perl libref-util-perl
libreoffice-style-tango libridl-java libroken18-heimdal libsane
libsignon-glib1 libsnmp35 libsrt1 libswresample2 libswscale4 libtepl-4-0
   libtest-fatal-perl libtest-refcount-perl libtext-glob-perl
libtext-levenshtein-perl libtracker-control-2.0-0 libtracker-miner-2.0-0
libtracker-sparql-2.0-0 libunoloader-java liburl-dispatcher1
   libusrsctp1 libvpx5 libvpx6 libwebp6 libwind0-heimdal libwmf0.2-7
libwxgtk3.0-0v5 libx264-152 libx264-155 libx265-146 libx265-179 libxmlb1
libyaml-libyaml-perl libzeitgeist-1.0-1
   linux-headers-5.4.0-122 linux-headers-5.4.0-122-generic
linux-image-5.4.0-122-generic linux-modules-5.4.0-122-generic
linux-modules-extra-5.4.0-122-generic ltrace lz4 manpages-dev
mysql-common ncal
   nplan perl-modules-5.30 pkg-config popularity-contest python-cairo
python-enum34 python-ipaddress python-six python2 python2-minimal
python2.7 python2.7-minimal python3-asn1crypto python3-entrypoints
   python3-oauth python3-requests-unixsocket python3-simplejson
python3-sip python3-soupsieve python3-zope.interface python3.6-minimal
python3.8 python3.8-minimal ruby2.7 syslinux syslinux-common
   syslinux-legacy unity-lens-applications unity-lens-music
unity-lens-video unity-scope-tomboy unity-scope-video-remote
unity-scope-virtualbox unity-scopes-runner ure-java
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden installiert:
   libadwaitaqtpriv1 libxapian30 ufw
Vorgeschlagene Pakete:
   xapian-tools
Die folgenden NEUEN Pakete werden installiert:
   libadwaitaqtpriv1
Die folgenden Pakete werden aktualisiert (Upgrade):
   libxapian30 ufw
2 aktualisiert, 1 neu installiert, 0 zu entfernen und 365 nicht
aktualisiert.
7 nicht vollständig installiert oder entfernt.
Es müssen noch 0 B von 962 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 215 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n]
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 279924 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereitung zum Entpacken von .../ufw_0.36.1-4build1_all.deb ...
Entpacken von ufw (0.36.1-4build1) über (0.36-6ubuntu1) ...
Vorbereitung zum Entpacken von .../libxapian30_1.4.18-4_amd64.deb ...
Entpacken von libxapian30:amd64 (1.4.18-4) über (1.4.14-2) ...
Vormals nicht ausgewähltes Paket libadwaitaqtpriv1:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../libadwaitaqtpriv1_1.4.1-1_amd64.deb ...
Entpacken von libadwaitaqtpriv1:amd64 (1.4.1-1) ...
libxapian30:amd64 (1.4.18-4) wird eingerichtet ...
libadwaitaqtpriv1:amd64 (1.4.1-1) wird eingerichtet ...
ufw (0.36.1-4build1) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/logrotate.d/ufw wird
installiert ...
ca-certificates-java (20190909) wird eingerichtet ...
head: '/etc/ssl/certs/java/cacerts' kann nicht zum Lesen geöffnet
werden: Datei oder Verzeichnis nicht gefunden
Error: A JNI error has occurred, please check your installation and try
again
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
     at
java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:857)
     at
java.base/sun.launcher.LauncherHelper$ResourceBundleHolder.<clinit>(LauncherHelper.java:125)

     at
java.base/sun.launcher.LauncherHelper.getLocalizedMessage(LauncherHelper.java:472)

     at
java.base/sun.launcher.LauncherHelper.abort(LauncherHelper.java:636)
     at
java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:801)

     at
java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:675)

dpkg: Fehler beim Bearbeiten des Paketes ca-certificates-java
(--configure):
  »installiertes ca-certificates-java-Skript des Paketes
post-installation«-Unterprozess gab den Fehlerwert 1 zurück
zeitgeist-core (1.0.3-4ubuntu1) wird eingerichtet ...
activity-log-manager (0.9.7-0ubuntu28) wird eingerichtet ...
libadwaitaqt1:amd64 (1.4.1-1) wird eingerichtet ...
zeitgeist-datahub (1.0.3-4ubuntu1) wird eingerichtet ...
rhythmbox-plugin-zeitgeist (3.4.4-5ubuntu1) wird eingerichtet ...
Trigger für rsyslog (8.2112.0-2ubuntu2.2) werden verarbeitet ...
Trigger für man-db (2.10.2-1) werden verarbeitet ...
Trigger für libc-bin (2.35-0ubuntu3.1) werden verarbeitet ...
Trigger für ca-certificates (20211016) werden verarbeitet ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

Error: A JNI error has occurred, please check your installation and try
again
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
     at
java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:857)
     at
java.base/sun.launcher.LauncherHelper$ResourceBundleHolder.<clinit>(LauncherHelper.java:125)

     at
java.base/sun.launcher.LauncherHelper.getLocalizedMessage(LauncherHelper.java:472)

     at
java.base/sun.launcher.LauncherHelper.abort(LauncherHelper.java:636)
     at
java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:801)

     at
java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:675)

E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
Fehler traten auf beim Bearbeiten von:
  ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)
ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ ^C
ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ ^C
ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ ^C
ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ ^C
ck@ck-System-Product-Name-Invalid-entry-length-16-Fixed-up-to-11:~$ sudo
apt-get reinstall ca-certificates-java
[sudo] Passwort für ck:
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht
mehr benötigt:
   binutils-common bsdmainutils chromium-browser-l10n cpp-7 cpp-9
dvd+rw-tools enchant gcc-10-base gcc-9-base gir1.2-accounts-1.0
gir1.2-appindicator3-0.1 gir1.2-clutter-gst-3.0
   gir1.2-gnomebluetooth-1.0 gir1.2-signon-1.0
gnome-getting-started-docs gnome-software-common growisofs hddtemp
ippusbxd iputils-arping libadwaitaqt1 libadwaitaqtpriv1 libamtk-5-0
libamtk-5-common
   libaom0 libapt-pkg-perl libasn1-8-heimdal libatomic1 libavcodec57
libavutil55 libb-hooks-op-check-perl libboost-date-time1.65.1
libboost-date-time1.71.0 libboost-filesystem1.65.1
   libboost-filesystem1.71.0 libboost-iostreams1.71.0
libboost-locale1.71.0 libboost-system1.65.1 libboost-thread1.71.0
libbrlapi0.6 libbrlapi0.7 libc-dev-bin libcamel-1.2-62 libcbor0.6 libcc1-0
   libcdio18 libcmis-0.5-5v5 libcodec2-0.9 libcpanel-json-xs-perl
libcrypt-dev libcrystalhd3 libdc1394-22 libdevel-callchecker-perl
libdevel-size-perl libdns-export1109 libdouble-conversion1 libdvdread7
   libdynaloader-functions-perl libedataserver-1.2-24
libedataserverui-1.2-2 libenchant1c2a libextutils-pkgconfig-perl
libfakeroot libfcgi-bin libfcgi-perl libfcgi0ldbl
libfile-copy-recursive-perl
   libfluidsynth2 libfuse2 libfuture-perl libfwupdplugin1
libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libgeoip1 libgmime-3.0-0
libgssapi3-heimdal libgssdp-1.0-3 libgtksourceview-3.0-common
   libgupnp-1.2-0 libgutenprint2 libhandy-0.0-0 libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhogweed5 libhx509-5-heimdal
libicu66 libigdgmm11 libilmbase24 libio-pty-perl libiptc0
   libisl19 libisl22 libitm1 libjson-c4 libjson-maybexs-perl libjte1
libjuh-java libjurt-java libkrb5-26-heimdal libldap-2.4-2
liblibreoffice-java liblinux-epoll-perl libllvm11 libllvm12 libmms0
   libmozjs-68-0 libmysofa0 libmysqlclient21 libnet-ip-perl libnettle7
libntfs-3g883 libofa0 libopenexr24 liborcus-0.15-0
libparams-classify-perl libperl5.30 libperlio-gzip-perl libpgm-5.2-0
   libphonenumber7 libplymouth4 libpoppler97 libprocps6 libprotobuf17
libpython2-stdlib libpython3.6-minimal libpython3.8 libpython3.8-minimal
libpython3.8-stdlib libqpdf26 libqt5script5 libraw16
   libraw19 libreadline7 libreadonly-perl libref-util-perl
libreoffice-style-tango libridl-java libroken18-heimdal libsane
libsignon-glib1 libsnmp35 libsrt1 libswresample2 libswscale4 libtepl-4-0
   libtest-fatal-perl libtest-refcount-perl libtext-glob-perl
libtext-levenshtein-perl libtracker-control-2.0-0 libtracker-miner-2.0-0
libtracker-sparql-2.0-0 libunoloader-java liburl-dispatcher1
   libusrsctp1 libvpx5 libvpx6 libwebp6 libwind0-heimdal libwmf0.2-7
libwxgtk3.0-0v5 libx264-152 libx264-155 libx265-146 libx265-179 libxmlb1
libyaml-libyaml-perl libzeitgeist-1.0-1
   linux-headers-5.4.0-122 linux-headers-5.4.0-122-generic
linux-image-5.4.0-122-generic linux-modules-5.4.0-122-generic
linux-modules-extra-5.4.0-122-generic ltrace lz4 manpages-dev
mysql-common ncal
   nplan perl-modules-5.30 pkg-config popularity-contest python-cairo
python-enum34 python-ipaddress python-six python2 python2-minimal
python2.7 python2.7-minimal python3-asn1crypto python3-entrypoints
   python3-oauth python3-requests-unixsocket python3-simplejson
python3-sip python3-soupsieve python3-zope.interface python3.6-minimal
python3.8 python3.8-minimal ruby2.7 syslinux syslinux-common
   syslinux-legacy unity-lens-applications unity-lens-music
unity-lens-video unity-scope-tomboy unity-scope-video-remote
unity-scope-virtualbox unity-scopes-runner ure-java
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden aktualisiert (Upgrade):
   ca-certificates-java
1 aktualisiert, 0 neu installiert, 0 zu entfernen und 364 nicht
aktualisiert.
1 nicht vollständig installiert oder entfernt.
Es müssen 12,0 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 1.024 B Plattenplatz freigegeben.
Holen:1 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64
ca-certificates-java all 20190909ubuntu1.1 [12,0 kB]
Es wurden 12,0 kB in 0 s geholt (94,2 kB/s).
(Lese Datenbank ... 279929 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereitung zum Entpacken von
.../ca-certificates-java_20190909ubuntu1.1_all.deb ...
Entpacken von ca-certificates-java (20190909ubuntu1.1) über (20190909) ...
ca-certificates-java (20190909ubuntu1.1) wird eingerichtet ...
Neue Version der Konfigurationsdatei
/etc/ca-certificates/update.d/jks-keystore wird installiert ...
head: '/etc/ssl/certs/java/cacerts' kann nicht zum Lesen geöffnet
werden: Datei oder Verzeichnis nicht gefunden
Error: A JNI error has occurred, please check your installation and try
again
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
     at
java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:857)
     at
java.base/sun.launcher.LauncherHelper$ResourceBundleHolder.<clinit>(LauncherHelper.java:125)

     at
java.base/sun.launcher.LauncherHelper.getLocalizedMessage(LauncherHelper.java:472)

     at
java.base/sun.launcher.LauncherHelper.abort(LauncherHelper.java:636)
     at
java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:801)

     at
java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:675)

dpkg: Fehler beim Bearbeiten des Paketes ca-certificates-java
(--configure):
  »installiertes ca-certificates-java-Skript des Paketes
post-installation«-Unterprozess gab den Fehlerwert 1 zurück
Trigger für ca-certificates (20211016) werden verarbeitet ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

Error: A JNI error has occurred, please check your installation and try
again
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
     at
java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:857)
     at
java.base/sun.launcher.LauncherHelper$ResourceBundleHolder.<clinit>(LauncherHelper.java:125)

     at
java.base/sun.launcher.LauncherHelper.getLocalizedMessage(LauncherHelper.java:472)

     at
java.base/sun.launcher.LauncherHelper.abort(LauncherHelper.java:636)
     at
java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:801)

     at
java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:675)

E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
Fehler traten auf beim Bearbeiten von:
  ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.