You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a deb package containing a directory using type: 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 reports List of files for 'package.deb' could not be read in the Included 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 file
name: packagemaintainer: Testcontents:
- src: directorydst: /var/lib/directorytype: tree
The package will have the issues described above. However, a package generated with the following will not
_____ ____ __ __
_ __ | ___| _ \|\/||'_ \| |_ | |_) | |\/| || | | | _| | __/| | | ||_| |_|_| |_| |_| |_|nfpm: a simple and 0-dependencies apk, arch linux, deb, ipk, and rpm packager written in Gohttps://nfpm.goreleaser.comGitVersion: 2.40.0GitCommit: db338d012a43be3c7f9c5a450eca2e279c973de4GitTreeState: falseBuildDate: 2024-08-29T11:36:48ZBuiltBy: goreleaserGoVersion: go1.23.1Compiler: gcModuleSum: h1:M6WaaHeTCgNopUo9e8zgeHlOiN65LZAKqogzCJXBwYQ=Platform: linux/amd64
Search
I did search for other open and closed issues before opening this.
Code of Conduct
I agree to follow this project's 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:
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: