Nextcloud Documentation for Command Line Client mentions to use Ubuntu PPA for Debian but that does not work
In Nextcloud Client Manual at Nextcloud Command Line Client Install for "Ubuntu/Debian" it is described to:
sudo add-apt-repository ppa:nextcloud-devs/client but when I try that and want to install nextcloud-client, I see following errors.
According to a question on Unix & Linux Stack Exchange is zst compression not supported by apt/dpkg.
It is advised not to use Ubuntu PPA with Debian.
EDIT: There is a package nextcloud-desktop-cmd in debian repository, so this should be used instead the Ubuntu PPA.
# date
Sun Sep 25 20:59:03 UTC 2022
# cat /etc/debian_version
bookworm/sid
# dpkg -l | grep zstd
ii libzstd1:amd64 1.5.2+dfsg-1 amd64 fast lossless compression algorithm
ii zstd 1.5.2+dfsg-1 amd64 fast lossless compression algorithm -- CLI tool
# apt install nextcloud-client
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libnextcloudsync0 nextcloud-desktop nextcloud-desktop-cmd nextcloud-desktop-common nextcloud-desktop-doc nextcloud-desktop-l10n
Suggested packages:
dolphin-nextcloud nautilus-nextcloud nemo-nextcloud caja-nextcloud
The following NEW packages will be installed:
libnextcloudsync0 nextcloud-client nextcloud-desktop nextcloud-desktop-cmd nextcloud-desktop-common nextcloud-desktop-doc nextcloud-desktop-l10n
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7585 kB of archives.
After this operation, 21.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
dpkg-deb: error: archive '/tmp/apt-dpkg-install-oQWB1B/0-libnextcloudsync0_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-oQWB1B/0-libnextcloudsync0_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive '/tmp/apt-dpkg-install-oQWB1B/1-nextcloud-desktop-common_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-oQWB1B/1-nextcloud-desktop-common_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive '/tmp/apt-dpkg-install-oQWB1B/2-nextcloud-desktop-l10n_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-oQWB1B/2-nextcloud-desktop-l10n_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive '/tmp/apt-dpkg-install-oQWB1B/3-nextcloud-desktop_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-oQWB1B/3-nextcloud-desktop_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive '/tmp/apt-dpkg-install-oQWB1B/4-nextcloud-desktop-cmd_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-oQWB1B/4-nextcloud-desktop-cmd_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive '/tmp/apt-dpkg-install-oQWB1B/5-nextcloud-desktop-doc_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-oQWB1B/5-nextcloud-desktop-doc_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
dpkg-deb: error: archive '/tmp/apt-dpkg-install-oQWB1B/6-nextcloud-client_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-oQWB1B/6-nextcloud-client_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/tmp/apt-dpkg-install-oQWB1B/0-libnextcloudsync0_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb
/tmp/apt-dpkg-install-oQWB1B/1-nextcloud-desktop-common_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb
/tmp/apt-dpkg-install-oQWB1B/2-nextcloud-desktop-l10n_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb
/tmp/apt-dpkg-install-oQWB1B/3-nextcloud-desktop_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb
/tmp/apt-dpkg-install-oQWB1B/4-nextcloud-desktop-cmd_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb
/tmp/apt-dpkg-install-oQWB1B/5-nextcloud-desktop-doc_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_all.deb
/tmp/apt-dpkg-install-oQWB1B/6-nextcloud-client_3.6.0-20220906.073332.ccc9f8930-1.0~kinetic1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
According to this thread, the issue is you need to update dpkg to a newer version.
Thank you for the pointer, according to that thread at least dpkg version 1.15.6 is needed. I tried to install nextcloud-client using Debian/testing (actually v12 bookworm) and here dpkg is at version 1.21.9. So the newer version does not help, maybe zstd is not supported here (yet?).