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

Some deb files with xz compression files can not be opened #125

Closed
ZetaTwo opened this issue Apr 3, 2023 · 2 comments
Closed

Some deb files with xz compression files can not be opened #125

ZetaTwo opened this issue Apr 3, 2023 · 2 comments

Comments

@ZetaTwo
Copy link

ZetaTwo commented Apr 3, 2023

Attached is an archive with .deb files, all taken from the Ubuntu or Debian package repository. They all use XZ compression and none of them can currently be opened with the library. They all result in one of the following errors:

  1. xz: file format not recognized
  2. xz: data is truncated or corrupt

problem-deb2.tgz

@ZetaTwo ZetaTwo changed the title Some .xz files can not be opened Some deb files with xz compression files can not be opened Apr 3, 2023
@ZetaTwo
Copy link
Author

ZetaTwo commented Apr 3, 2023

Ok, I think this is because they are in the old format so this is essentially a dupe of #50

@ZetaTwo
Copy link
Author

ZetaTwo commented Apr 3, 2023

nvm, I was accessing the data via: debFile.ArContent -> arEntry.Tarfile() which breaks when xz is the underlying compression because the same input stream is read twice. The correct way is to just read debFile.Data

@ZetaTwo ZetaTwo closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant