-
Notifications
You must be signed in to change notification settings - Fork 446
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
dpkg error: archive has premature member #1067
Comments
Thanks for your bug report 😀 What was the previous native-packager version you used that worked? Can you take a look inside the Debian file an see if there are any differences between the working and new version? |
Last dpkg version that worked was 1.17.5 and then it worked so I'm pretty sure it's related to changes in dpkg. But it's a good idea to dig deeper into the deb file and see what's different. I will do that. |
control.tar.gz is 1822 bytes big in the one generated by dpkg 1.19 and 20480 in the one generated by 1.17. But I can't see any difference in the content of the extracted folders. |
Thanks for checking. Have you found any stackoverflow questions regarding this error message? What you can also do ist to do the following $ sbt debian:stage should generate a staging folder in |
The binary is different but the same byte size and the "DEBIAN/conffiles" is in a different order. But other than that I haven't managed to find any difference. |
Thanks for digging further into this. This [bug request|https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1730627] seems to capture this error. Does your system configuration looks similar? |
Thanks for digging further into this. This bug request seems to capture this error. Does your system configuration looks similar? |
I have similar issue, and, indeed, it looks like With older dpkg versions, I was getting
It looks like there could be some way to tell dpkg which control.tar / control.tar.gz / control.tar.xz to generate? |
Thanks a lot @GreyCat There should be some way to configure the generated control file format. What I forgot to ask: The plan is to find the configuration parameter for |
I found something interesting: We already have debianNativeBuildOptions := Seq.empty and see if the issue remains? |
I've experimented with |
Thanks for investigating this. I'm not sure what we should put as a sensible default. Maybe we turn off the |
Looks like it's all extremely messy :( Deb packages undergone several major revisions in the last few years, which uncovered that there were quite a few different implementations of tools that work with debs, and many have compliance problems — https://wiki.debian.org/Teams/Dpkg/DebSupport I've stumbled upon this by trying to submit a .deb package built by newer sbt-native-packager on a box with a newer dpkg-deb to BinTray. After talking to their support them, it turned out that they only support My best bet would be to document this as a known problem and let the end-user decide. Probably the sanest default would be just sticking to whatever default settings a particular dpkg-deb installation has — i.e. newer versions would generate |
You are awesome 🤩 @GreyCat |
I wasn't able to resolve the issue using the |
FYI this is on it's way to being resolved with dpkg 1.17.5ubuntu5.8 Link to source packages for testing follows: |
Thanks for the information 🤗 |
Upgrading dpkg to 1.17.5ubuntu5.8 worked for me! |
Thanks for sharing. |
I have used sbt native packager for a while to build our play projects to a deb package. But after updating the packages in Debian today I started to get this error when installing the application on our Ubuntu 14.04 server.
Information
sbt native packager version: 1.3.2
sbt version: 0.13.16
dpkg version: 1.19.0.4
The text was updated successfully, but these errors were encountered: