question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dpkg on debian buster fails due to zstd compressed files in lua-basexx and lua-cjson

See original GitHub issue

Description:

I recently updated my Jitsi Meet installation on a debian buster system, where the packages lua-basexx and lua-cjson (which are coming out of the jitsi repository) returned some apt failures. Those are triggered due a incompatibiliy - the mentioned packages are shipping zstd compressed files, which are from my knownledge are currently only supported on the dpkg of Ubuntu - but not on debians dpkg.

Steps to reproduce:

  1. Install Jitsi Meet on a debian buster based system

Expected behavior:

dpkg should be able to decompress the delivered deb packages

Actual behavior:

dpkg fails to decompress the zstd compressed files in the packages lua-basexx_0.4.1-jitsi1_all.deb and lua-cjson_2.1.0.10-jitsi1_amd64.deb

Server information:

  • Jitsi Meet version: 2.0.7648-1
  • Operating System: Debian 10 (buster)

Client information:

  • Browser / app version: -
  • Operating System: -

Additional information:

root@jitsi:~# apt upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete werden aktualisiert (Upgrade):
  lua-basexx lua-cjson
2 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 26,8 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 105 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] y
Holen:1 https://download.jitsi.org stable/ lua-basexx 0.4.1-jitsi1 [4.284 B]  
Holen:2 https://download.jitsi.org stable/ lua-cjson 2.1.0.10-jitsi1 [22,5 kB]
Es wurden 26,8 kB in 1 s geholt (24,7 kB/s).
dpkg-deb: Fehler: Archiv »/var/cache/apt/archives/lua-basexx_0.4.1-jitsi1_all.deb« verwendet unbekannte Komprimierung für Element »control.tar.zst«, Abbruch
Traceback (most recent call last):
  File "/usr/share/apt-listchanges/DebianFiles.py", line 124, in readdeb
    output = subprocess.check_output(command)
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archives/lua-basexx_0.4.1-jitsi1_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 281, in <module>
    main(config)
  File "/usr/bin/apt-listchanges", line 96, in main
    pkg = DebianFiles.Package(deb)
  File "/usr/share/apt-listchanges/DebianFiles.py", line 215, in __init__
    parser.readdeb(self.path)
  File "/usr/share/apt-listchanges/DebianFiles.py", line 128, in readdeb
    {'what': file, 'errmsg': str(ex)}) from ex
NameError: name 'file' is not defined
dpkg-deb: Fehler: Archiv »/var/cache/apt/archives/lua-basexx_0.4.1-jitsi1_all.deb« verwendet unbekannte Komprimierung für Element »control.tar.zst«, Abbruch
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/lua-basexx_0.4.1-jitsi1_all.deb (--unpack):
 »dpkg-deb --control«-Unterprozess gab den Fehlerwert 2 zurück
dpkg-deb: Fehler: Archiv »/var/cache/apt/archives/lua-cjson_2.1.0.10-jitsi1_amd64.deb« verwendet unbekannte Komprimierung für Element »control.tar.zst«, Abbruch
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/lua-cjson_2.1.0.10-jitsi1_amd64.deb (--unpack):
 »dpkg-deb --control«-Unterprozess gab den Fehlerwert 2 zurück
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/lua-basexx_0.4.1-jitsi1_all.deb
 /var/cache/apt/archives/lua-cjson_2.1.0.10-jitsi1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@jitsi:~# apt install -y zstd
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
zstd ist schon die neueste Version (1.3.8+dfsg-3+deb10u2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
root@jitsi:~# 

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
damenchocommented, Sep 21, 2022

Packages are back in stable and unstable and should be fine installing those. The updates are that those support now lua 5.3 and 5.4.

1reaction
damenchocommented, Sep 21, 2022

This is fixed in stable. We will work on updating unstable with the correct packages later today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

#892664 - dpkg: Please add decompression support for zstd
Subject: dpkg: Please add support for zstd (Zstandard) compressed packages ... programs generated by the dpkg source package [1]. Thanks.
Read more >
zst compression not supported by apt/dpkg
Debian's dpkg package doesn't support zstd compression. It may support it in the future, but it doesn't yet.
Read more >
Bug #1923845 “Please compress packages with zstd by default”
The original plan was compressing only the internal data.tar .deb member, but dpkg uses uniform compression by default since dpkg 1.19.0 thus I' ......
Read more >
Newest packages not installable on Debian
dpkg -deb: error: archive 'lua-cjson_2.1.0.10-jitsi1_amd64.deb' uses unknown compression for ... Zstd compression is an Ubuntu-only feature.
Read more >
Unable to install duplicati_2.0.6.103-1_all.deb on Raspberry ...
I get the below error: Also zstd is already installed. ... Unknown compression error when installing latest canary on Debian.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found