Package: apt-cacher
Version: 1.5.3
Severity: normal

Though this could be somehow related to #334500, it's nevertheless different and happens in the more recent version.

This bug should reproducible following this sequence.

After installing and configuring apt-cacher on an etch box (hostnamed myserver in that exemple) with locale set to fr_FR.utf8, run :

myserver $ cp /var/cache/apt/archives/*.deb /var/cache/apt-cacher/import

then

myserver $ /usr/share/apt-cacher/apt-cacher-import.pl
No import directory specified as the first argument, using /var/cache/apt-cacher/import
[.. snip ..]
Importing: openoffice.org-base_2.0.4~rc3-1_i386.deb
Importing: openoffice.org-calc_2.0.4~rc3-1_i386.deb
Importing: openoffice.org-common_2.0.4~rc3-1_all.deb
Importing: openoffice.org-core_2.0.4~rc3-1_i386.deb
Importing: openoffice.org-draw_2.0.4~rc3-1_i386.deb
Importing: openoffice.org-help-fr_2.0.4~rc3-1_all.deb
Importing: openoffice.org-impress_2.0.4~rc3-1_i386.deb
Importing: openoffice.org-java-common_2.0.4~rc3-1_all.deb
Importing: openoffice.org-kde_2.0.4~rc3-1_i386.deb
Importing: openoffice.org-l10n-fr_2.0.4~rc3-1_all.deb
Importing: openoffice.org-math_2.0.4~rc3-1_i386.deb
Importing: openoffice.org-writer_2.0.4~rc3-1_i386.deb
Importing: openoffice.org_2.0.4~rc3-1_i386.deb
.....

Please note the ~ in openoffice package names.

Now (from now on I only take one file for sake of simplicity though the problem happened here with every ~ files) :

myserver $ ls /var/cache/apt-cacher/packages/openoffice.org-help*
/var/cache/apt-cacher/packages/openoffice.org-help-fr_2.0.4~rc3-1_all.deb


Then, from another box (etch too, fr_FR.utf8 too, this one named myclient) configured to use the apt-cacher server, run :

myclient $ apt-get install  openoffice.org-help-fr
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Les NOUVEAUX paquets suivants seront installés :
  openoffice.org-help-fr
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 11,9Mo dans les archives.
Après dépaquetage, 25,7Mo d'espace disque supplémentaires seront utilisés.
Réception de : 1 http://myserver testing/main openoffice.org-help-fr 2.0.4~rc3-1 [11,9MB]
11,9Mo réceptionnés en 2m29s (79,4ko/s)
Sélection du paquet openoffice.org-help-fr précédemment désélectionné.
(Lecture de la base de données... 211884 fichiers et répertoires déjà installés.) Dépaquetage de openoffice.org-help-fr (à partir de .../openoffice.org-help-fr_2.0.4~rc3-1_all.deb) ...
Paramétrage de openoffice.org-help-fr (2.0.4~rc3-1) ...

Though both machines are on the same switch, note the download rate : the package undoubtedly came through the dsl connection and that was confirmed by a tcpdump. Now, let's have a look at the apt-cacher archive now :

myserver $ ls /var/cache/apt-cacher/packages/openoffice.org-help*
/var/cache/apt-cacher/packages/openoffice.org-help-fr_2.0.4%7erc3-1_all.deb
/var/cache/apt-cacher/packages/openoffice.org-help-fr_2.0.4~rc3-1_all.deb

7e is certainly the correct ascii code for ~, but...

I don't know what should be the correct spelling for the filenames (though it should probably be the one with the "true" tilde rather than the url-encoded value) but it should be consistent whatever the way apt-cacher get the file in into its archive : script imported or through a client request.

If I proceed, then, by removing the file and apt-cleaning the client then regetting it, the download is 1 second long as one should expect for a home network.

Or else, what did I do wrong ?

In case it helps, on both boxes :

$ dpkg -s libc6 | grep ^Version
Version: 2.3.6.ds1-4
$ dpkg -s perl | grep ^Version
Version: 5.8.8-6.1

Cheers,

phep


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to