PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Creating debian package with ar
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Creating debian package with ar

Réponse
 
LinkBack Outils de la discussion
Vieux 11/04/2007, 17h30   #1
Mathieu Malaterre
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Creating debian package with ar

Hello there,

I have been following the tutorial from:
http://www.debian-administration.org/articles/337

In the end I have a file:
svnyoungest_0.1_i386.deb

Now for the fun part ! I then extract everybody:

ar x svnyoungest_0.1_i386.deb

(creates debian-binary, control.tar.gz and data.tar.gz), which I then repackage:

ar r svnyoungest_0.1_i386.deb debian-binary control.tar.gz data.tar.gz

The very first time I get:

$ dpkg -i svnyoungest_0.1_i386.deb
dpkg-deb: file `svnyoungest_0.1_i386.deb' is not a debian binary
archive (try dpkg-split?)
dpkg: error processing svnyoungest_0.1_i386.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
svnyoungest_0.1_i386.deb


After some googling around I found out I need to replace the trailing
/ of each filename with space (using hexedit). Now the package works:

$ dpkg -i svnyoungest_0.1_i386.deb
Selecting previously deselected package svnyoungest.
(Reading database ... 100969 files and directories currently installed.)
Unpacking svnyoungest (from svnyoungest_0.1_i386.deb) ...
Setting up svnyoungest (0.1) ...


The trouble here is that I cannot reproduce my initial bug anymore. I
have tried a couple of things to clean the cache:

apt-get clean
apt-get autoclean
apt-get --purge remove svnyoungest

No luck, I cannot reproduce my initial problem...

Where is this cached .deb file that is being used when I call:

$ dpkg -i svnyoungest_0.1_i386.deb

thanks,
--
Mathieu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/04/2007, 18h40   #2
Kevin Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Creating debian package with ar

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Apr 11, 2007 at 06:22:36PM +0200, Mathieu Malaterre wrote:
> Hello there,

<snip about manipulating deb files>
>
> Where is this cached .deb file that is being used when I call:
>
> $ dpkg -i svnyoungest_0.1_i386.deb
>
> thanks,
> --
> Mathieu

When you use apt-get or similar, the debs are downloaded in
/var/cache/apt/archives. But if you use 'dpkg -i *.deb', this file is
not stored in the above location, so there is no cached deb in this
case.
- --
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to Debian! |
|_______ Unless I ask to be CCd, assume I am subscribed _______|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGHRwSv8UcC1qRZVMRArHgAJ4t/wG9iuiJlflidISSMyRB0MtIagCffmXm
Yklx0a2yiwSqZXdqcILuXdY=
=B4tL
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h54.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09696 seconds with 10 queries