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.
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