Unable to install dolibarr_15.0.2-4_all.deb on Debian 11 (Bullseye)

On Debian 11 with latest updates, I cannot install the official package 15.0.2 ; However version 15.0.1 installation works fine.
The output on the console is:

root@dolibarr:~# dpkg -i dolibarr_15.0.2-4_all.deb
dpkg-deb: error: archive ‘dolibarr_15.0.2-4_all.deb’ uses unknown compression for member ‘control.tar.zst’, giving up
dpkg: error processing archive dolibarr_15.0.2-4_all.deb (–install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
dolibarr_15.0.2-4_all.deb

Note: On my Debian 11 instance, the package zstd is installed.

As a quick workaround, I unpack the .deb file and repack it using xz instead of zstd.
My shell script is:

#!/bin/sh
ar x dolibarr_15.0.2-4_all.deb
unzstd control.tar.zst
unzstd data.tar.zst
xz control.tar
xz data.tar
rm dolibarr_15.0.2-4_all.deb
ar cr dolibarr_15.0.2-4_all.deb debian-binary control.tar.xz data.tar.xz

1 Like

Same problem for me :frowning:

Thanks for the workaround, I will test it :wink:

EDIT : it worked :wink: Just add to install binutils via apt install binutils to get ar tool before using your script

You also need to have zstd installed, apt install zstd

Any guide for this? to install ZSTD?

Just read the above post

Latest update dolibarr_15.0.3-4_all.deb does not fix the problem.
We still need to apply the script/fix.
Enclosed an update of the initial script.

#!/bin/bash

TARGET=dolibarr_15.0.3-4_all.deb

if [ ! -f $TARGET ];
then
echo “File $TARGET does not exist. Abort”
exit
fi

ret=$(apt list binutils zstd | wc -l)
if [ $ret -ne 3 ];
then
echo Package binutils and zstd are needed. Install them first with 'apt install binutils zstd'
exit
fi

cp -a $TARGET $TARGET.org
ar x $TARGET
unzstd control.tar.zst
unzstd data.tar.zst
xz control.tar
xz data.tar
rm $TARGET
ar cr $TARGET debian-binary control.tar.xz data.tar.xz