-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
type: tree
creates issues in deb
packages
#856
Comments
Sorry for the late reply. It seems like Still, I thought the possible causes. Without I think the problem may be solved by removing the following lines (my comment there is not true (anymore?!)): Lines 441 to 443 in 9708afd
Before removing the lines, we should test this hypothesis on Ubuntu 22 first. |
hmm interesting hypothesis, and I think it makes sense... I'll try to test this with docker sometime this week. |
As far as I understood it, it only affects graphical package managers. I was able to install it just fine with apt using Docker images for Ubuntu 22. |
I was able to reproduce the issue and my hunch ended up being correct, but it requires some additional changes. |
What happened?
Creating a
deb
package containing a directory usingtype: tree
causes issues with the package on Ubuntu.On Ubuntu 20 and 22, opening the package with
Software Install
fails with the error message `Failed to install file: not supported.On Ubuntu 24,
App Center
opens and installs the package without issues.On all three Ubuntu versions,
gdebi
reportsList of files for 'package.deb' could not be read
in theIncluded files
tab.How can we reproduce this?
Create a directory containing a single file using
mkdir directory && echo content > directory/file
.Generate a
deb
package using the following config fileThe package will have the issues described above. However, a package generated with the following will not
nfpm version
Search
Code of Conduct
Additional context
The problem seems to come from the
data.tar
archive's format. The issue affects the package regardless of compression setting and decompressing and recompressing it does not solve the issue.However, extracting the tar archive and recreating it creates a working package.
The text was updated successfully, but these errors were encountered: