APT

gdebi rejects a package that dpkg does accept

Bug #192939 reported by Lars Friedrichs
4
Affects Status Importance Assigned to Milestone
APT
Fix Released
Low
Michael Vogt

Bug Description

I have created a deb file by hand. the base was a debuild deb file for hardy and I had to cut down the dependencies (it's a quick and dirty hack, I know!) to make it work with feisty and gutsy. I am the upstream author, I know it works with the lower deps.
So I have unpacked the old package with
ar x xxx.deb
untar'ed the control.tar.gz with
tar xvzf control.tar.gz
and have changed the control file by hand.
I did a
sudo chown root.root *
to make all files owned by root and recreated the control.tar.gz by
rm control.tar.gz
sudo tar cvzf control.tar.gz postinst prerm md5sums control
afterwards I changed the deb file via
ar r xxx.deb control.tar.gz
the resulting file can be installed via dpkg without a problem. Gdebi tells me it is either not readable or corrupt.

Revision history for this message
Lars Friedrichs (l-friedrichs) wrote :

Here is the file in question

Revision history for this message
Lars Friedrichs (l-friedrichs) wrote :

Forgot to mention - I have Feisty running here...

Revision history for this message
Michael Bienia (geser) wrote :

That also happens on hardy.
I digged through GDebi's code to understand where and why it happened and got to line 49 in DebPackage.py.

$ python -c "import apt_inst; control = apt_inst.debExtractControl(open('blueproximity_1.2.4-0ubuntu1~feisty1_all.deb'))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
SystemError: E:This is not a valid DEB archive, missing 'debian-binary' member

So it looks like the deb is broken.

Michael Vogt (mvo)
Changed in gdebi:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Andy Balcombe (andy-balcombe) wrote :

I think the invalid deb package is caused by the use of "ar" to build the deb file. See this post for more info.
http://wilmer.gaast.net/blog/archives/3-.deb-files-are-ar-archives,-but-....html

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This is a bug in libapt and its fixed in the jaunty version of apt.

Changed in gdebi:
assignee: nobody → mvo
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.