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

APK: Invalid tar files #2032

Open
td94 opened this issue Oct 31, 2023 · 0 comments
Open

APK: Invalid tar files #2032

td94 opened this issue Oct 31, 2023 · 0 comments

Comments

@td94
Copy link

td94 commented Oct 31, 2023

Hello,
I'm trying to build pretty simple packages containing 2 small files and a simple post-install script.
This is working fine on deb and rpm packages, but I get problems with apk files.

The resulting apk seems to be correct and, interestingly, can also be installed directly from file. However, when I try to host them on an Artifactory alpine repository, the same file cannot be installed (Error: BAD Signature)

Digging further into it and comparing it to "official" apk packages, it looks like fpm produces somehow invalid tar files. From my understanding, apk files are just gzipped tarballs and can be extracted via tar -xzf .apk - at least, this can be done on the official packages. When trying to extract an apk file built with fpm, however, I get an error tar: invalid tar header checksum.

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