Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should create a deb not using zst compression #891

Closed
an0mal1a opened this issue Aug 31, 2023 · 5 comments
Closed

should create a deb not using zst compression #891

an0mal1a opened this issue Aug 31, 2023 · 5 comments
Labels
area/packaging New release or supporting a package manger
Milestone

Comments

@an0mal1a
Copy link

  • os: Parrot OS 5.3
  • lsd --version: 1.0.0

When try to install the .deb lsd:

dpkg-deb --info lsd_1.0.0_amd64.deb
dpkg-deb: error: el archivo lsd_1.0.0_amd64.deb' contiene un miembro de datos control.tar.zst' ininteligible, abandono

@marceldegraaf
Copy link

marceldegraaf commented Sep 7, 2023

I have the same issue here, on Debian 11.7:

$ sudo dpkg -i lsd_1.0.0_amd64.deb

dpkg-deb: error: archive 'lsd_1.0.0_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive lsd_1.0.0_amd64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 lsd_1.0.0_amd64.deb

Seems related to dpkg version < 1.21.18 (Debian 11.7 has dpkg 1.20.12) not supporting zstd: https://unix.stackexchange.com/questions/669004/zst-compression-not-supported-by-apt-dpkg

@rckgomz
Copy link

rckgomz commented Sep 13, 2023

Same here.

@zwpaper
Copy link
Member

zwpaper commented Sep 13, 2023

Hi @marceldegraaf, thanks for the info, I searched from StackOverflow, and might found a solution, you could try to re-package it locally:

ar x lsd_1.0.0_amd64.deb # this is the only place to specify the lsd deb name
# Uncompress zstd files an re-compress them using xz
zstd -d < control.tar.zst | xz > control.tar.xz
zstd -d < data.tar.zst | xz > data.tar.xz
# Re-create the Debian package in /tmp/
ar -m -c -a sdsd ./lsd_1.0.0_local.deb debian-binary control.tar.xz data.tar.xz
# Clean up
rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst

and then install the lsd_1.0.0_local.deb

cc @rckgomz @an0mal1a

@zwpaper
Copy link
Member

zwpaper commented Sep 13, 2023

we use the latest ubuntu to do the package, it should be why zst is used to package deb.

@zwpaper zwpaper added the area/packaging New release or supporting a package manger label Sep 13, 2023
@zwpaper zwpaper added this to the v1.1.0 milestone Sep 13, 2023
@zwpaper zwpaper changed the title File Error (installing) should create a deb not using zst cp Sep 22, 2023
@zwpaper zwpaper changed the title should create a deb not using zst cp should create a deb not using zst compression Sep 22, 2023
@zwpaper
Copy link
Member

zwpaper commented Dec 21, 2023

fixed, will release in v1.1.0

@zwpaper zwpaper closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging New release or supporting a package manger
Projects
None yet
Development

No branches or pull requests

4 participants