twilio-cli: Error upgrading on Debian 11
Issue Summary
When I attempt to upgrade the Twilio CLI package via apt on Debian I get the following error:
dpkg-deb: error: archive '/var/cache/apt/archives/twilio_5.3.0-1_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
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.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archives/twilio_5.3.0-1_amd64.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 323, in <module>
main(config)
File "/usr/bin/apt-listchanges", line 104, in main
pkg = DebianFiles.Package(deb)
File "/usr/share/apt-listchanges/DebianFiles.py", line 358, in __init__
parser.readdeb(self.path)
File "/usr/share/apt-listchanges/DebianFiles.py", line 127, in readdeb
raise RuntimeError(_("Error processing '%(what)s': %(errmsg)s") %
RuntimeError: Error processing '/var/cache/apt/archives/twilio_5.3.0-1_amd64.deb': Command '['dpkg-deb', '-f', '/var/cache/apt/archives/twilio_5.3.0-1_amd64.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.
Preconfiguring packages ...
dpkg-deb: error: archive '/tmp/apt-dpkg-install-cwYneZ/0-twilio_5.3.0-1_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /tmp/apt-dpkg-install-cwYneZ/0-twilio_5.3.0-1_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
From this SE post, I gather that the package is using a compression format that Debian’s version of dpkg
doesn’t understand.
Steps to Reproduce
- Run
apt update && apt upgrade
on Debian 11 Bullseye
Technical details:
- twilio-cli version: Current: 5.2.2, Attempting to upgrade to: 5.3.0
- node version: 16.18.0
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 5
- Comments: 33 (6 by maintainers)
I’m testing the code changes in this PR. Testing on amd64 arch of debian is completed and is working fine. Trying to figure out if this is working well on armel arch of debian. Will provide an update soon
Yeah, Twilio CLI is repeatedly blowing up my upgrades. Currently, same error as is reported here:
Seems this compression method was added by Ubuntu, and Debian may be grudgingly adding support also, but has not yet:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664
Therefore Twilio should avoid using it, at least for deb, for now.
Note:
sudo apt install --fix-broken
appears to repair the rest of Debian after the update bails due to Twilio, or maybe it was always fine except Twilio.