Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Cannot upload deb file to feed
-
I am trying to upload the current check_mk agent deb file (check-mk-agent_2.0.0p3-1_all.deb) to the feed I created using the webinterface. This produces the following error:
this is the full text of the error message:
System.IO.InvalidDataException: archive is corrupt or not a debian package at Inedo.ProGet.Feeds.Debian.ArReader.ReadAsync(Stream stream) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGetCoreEx\Feeds\Debian\ArReader.cs:line 38 at Inedo.ProGet.Feeds.Debian.DebianPackage.FromStreamAsync(String component, Stream packageStream) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGetCoreEx\Feeds\Debian\DebianPackage.cs:line 41 at Inedo.ProGet.Feeds.Debian.DebianFeed.InstallPackageInternalAsync(String component, Stream packageStream, InstallPackageOptions options, Boolean promoted) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGetCoreEx\Feeds\Debian\DebianFeed.cs:line 300 at Inedo.ProGet.WebApplication.Pages.Debian.Packages.UploadDebianPackagePage.<>c__DisplayClass7_0.<<CreateChildControls>b__0>d.MoveNext() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E130753\Src\ProGet.WebApplication\Pages\Debian\Packages\UploadDebianPackagePage.cs:line 66
I can install this deb file without any problems using
apt install /tmp/check-mk-agent_2.0.0p3-1_all.deb
Uploading other deb files works
-
Hello; can you share this file to us?
Feel free to email it to support at inedo dot com, but please add
[QA-586]
to the subject, so we can track this internally.
-
Hello just confirming we received it! We can now begin the investigation of the problem from here.
-
Hi,
It looks like that file isn't a valid debian package file. According to the .deb file specifications, a file named
debian-binary
should be the first item, but instead, there's one nameddebian-binary/
. You can see this by opening the file with a text editor:Do you know what was used to generate the package?
-
Hi,
thanks for the information. I do not know how it was created as it comes as part of the opensource monitoring project checkmk. With your information I was able to repack it using the following commands
fakeroot sh -c ' mkdir tmp dpkg-deb -R file.deb tmp dpkg-deb -b tmp file-new.deb '
Afterwards I was able to upload it.
Nevertheless you might want to consider allowing trailing slashes in a future release as the link you provided states they are allowed:
...Only the common ar archive format is supported, with no long file name extensions, but with file names containing an optional trailing slash, which limits their length to 15 characters (from the 16 allowed)....
-
Looks like that was our mistake, and we missed that line in the spec. This has now been logged as PG-1964, and it will be fixed in ProGet 5.3.30, scheduled for release on May 28.
Thanks for pointing it out, and sorry for the inconvenience!