Monday, November 6. 2006.deb files are ar archives, but ...Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
no longer works.... cant seem to recreate a deb file using ar anymore (can still extract one) aw well....
Yes, that's exactly what I meant. ;-)
You mean that it used to work BTW?
Any chance of updating this to include how one WOULD take those nasty little files and glue 'em back together w/o using ar so that the repository doesn't puke?
IIRC there is no real fix, the only thing you can do is use apt-ftparchive (or something like that) instead of the standard dpkg tool. I don't remember the details, it's been a while since I worked on this. Good luck! And if you figure this out, can you post it here as a comment? It seems that people end up on this page every now and then when they have this problem.
Not quite what I was looking for but I did manage this:
ar -x original.deb mkdir -p tmp/DEBIAN cd tmp tar -xzvpf ../data.tar.gz cd DEBIAN tar -xzvpf ../../control.tar.gz cp ../../debian-binary ./ # Make some tweak to preinst/postinst/etc... cd ../../ dpkg-deb -b tmp new.deb # new.deb should not cause the same complaints
This will create a valid debian package:
CODE: ar r package.deb debian-binary control.tar.gz data.tar.gz The order is important!
Even with GNU ar?
Have to keep in mind that this post is nearly six years old, so things might have changed. But thanks for the hint, definitely!
I was working on that yesterday.
I'm running Debian Wheezy. And I checked it, it's gnu ar. So this info is up-to-date. :) |
Calendar
BlogrollRecent comments about Google Public DNS
2013-04-16 09:42
Since I'm getting questions fr
om people every now and then w
ondering whether I was serious
here: Sorry guys, no, I [...]
2012-08-30 18:31
I was working on that yesterda
y.
I'm running Debian Wheez
y.
And I checked it, it's g
nu ar.
So this info i [...]
2012-08-30 06:39
Even with GNU ar?
Have to k
eep in mind that this post is
nearly six years old, so thing
s might have changed.
[...]
2012-08-29 22:53
This will create a valid debia
n package:
CODE:ar r package.deb debian-binary control.tar.gz data.tar.gz [...]
2012-08-24 01:43
Thank you SO much for this! Th
is stupid freaking !#@$()!@$
thing made my "file uploader"
in coldfusion TOTALLY n [...]
BitlBee newsFacebook chat disabled for no clear reason Saturday, January 19. 2013 BitlBee 3.2 Sunday, January 6. 2013 BitlBee 3.0.6 Sunday, October 14. 2012 QuicksearchCategories |
|||||||||||||||||||||||||||||||||||||||||||||||||