Skip to main content

Hello all,

i’m trying to upgrade from 23.10 to 24.04 on debian 11.

i followed the instructions as described in this link.

But the upgrade fails:

 

# apt install --only-upgrade centreonj

...

Preparing to unpack .../15-libjmx4perl-perl_1.13-bullseye_all.deb ...

Unpacking libjmx4perl-perl (1.13-bullseye) ...

dpkg-deb (subprocess): decompressing archive '/tmp/apt-dpkg-install-wNo3XS/15-libjmx4perl-perl_1.13-bullseye_all.deb' (size=302176) member 'data.tar': lzma error: compressed data is corrupt

dpkg-deb: error: <decompress> subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-wNo3XS/15-libjmx4perl-perl_1.13-bullseye_all.deb (--unpack):

 cannot copy extracted data for './usr/share/perl5/JMX/Jmx4Perl/Nagios/SingleCheck.pm' to '/usr/share/perl5/JMX/Jmx4Perl/Nagios/SingleCheck.pm.dpkg-new': unexpected end of file or stream

...

Errors were encountered while processing:

 /tmp/apt-dpkg-install-wNo3XS/15-libjmx4perl-perl_1.13-bullseye_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Found the package here. Installation not possible: 

 

# dpkg -i libjmx4perl-perl_1.13-1_all.deb

dpkg-deb: error: archive 'libjmx4perl-perl_1.13-1_all.deb' uses unknown compression for member 'control.tar.zst', giving up

dpkg: error processing archive libjmx4perl-perl_1.13-1_all.deb (--install):

 dpkg-deb --control subprocess returned error exit status 2

Errors were encountered while processing:

 libjmx4perl-perl_1.13-1_all.deb

 

While I am writing this I have found a solution...so, this is not really a question anymore...

Found this helpful link.  I installed zstd and binutils, repacked it and installation is possible.

ar x libjmx4perl-perl_1.13-1_all.deb

zstd -d < control.tar.zst | xz > control.tar.xz

zstd -d < data.tar.zst | xz > data.tar.xz

ar -m -c -a sdsd /tmp/libjmx4perl-perl_1.13-1_all.deb debian-binary control.tar.xz data.tar.xz

apt-get install /tmp/libjmx4perl-perl_1.13-1_all.deb 

apt-mark hold libjmx4perl-perl

 

Afterwards upgrade to 24.04 works fine.

 

Be the first to reply!

Reply