retitle 594990 apt-listbugs: HTTP GET fails with it_IT.UTF8 locale thanks On Wed, 01 Sep 2010 09:11:31 +0200 Paolo Sala wrote:
> Francesco Poli scrisse in data 31/08/2010 22:41:
> > I assume that you get the quoted error with any apt-listbugs invocation.
> > On my test system, the following command succeeds without a glitch:
> >
> > $ env LC_ALL=C apt-listbugs list apt-listbugs
> > Reading package fields... Done
> > Reading package status... Done
> > Retrieving bug reports... Done
> > Parsing Found/Fixed information... Done
> >
> > Could you please issue this very same command and paste the output in
> > your reply?
> >
> Hi Francesco in effect with the environment LC_ALL variable set the bugs
> disappears:
>
> $ env LC_ALL=C apt-listbugs list apt-listbugs
> Reading package fields... Done
> Reading package status... Done
> Retrieving bug reports... Done
> Parsing Found/Fixed information... Done
Hence, it seems that your problem is triggered by the it_IT.UTF8
locale...
Nonetheless, I've been trying to reproduce the bug on a test system
(actually chroot environment) where I installed a few locales, but I am
still unable to reproduce it... :-(
# locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
# apt-listbugs list apt-listbugs
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
# locale
LANG=it_IT.UTF-8
LC_CTYPE=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LC_COLLATE=it_IT.UTF-8
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES=it_IT.UTF-8
LC_PAPER=it_IT.UTF-8
LC_NAME=it_IT.UTF-8
LC_ADDRESS=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION=it_IT.UTF-8
LC_ALL=
# apt-listbugs list apt-listbugs
Lettura dei campi dei pacchetti... Fatto
Lettura dello stato dei pacchetti... Fatto
Recupero delle segnalazioni di bug... Fatto
Analisi delle informazioni... Fatto
# locale
LANG=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
# apt-listbugs list apt-listbugs
Lecture des champs des paquets... Fait
Lecture de l'état des paquets... Fait
Récupération des rapports de bogue... Fait
Analyse des informations Trouvé/Corrigé... Fait
In summary, on my test system, apt-listbugs seems to work flawlessly
with different locale settings...
>
> > [...]
> > Please issue the following command:
> >
> > $ env LC_ALL=C apt-listbugs -d list apt-listbugs
> >
> > and paste *the whole* output in your reply.
> >
> I think it is not necessary any more...
Since I am still unable to reproduce the bug, it may still be useful to
see the detailed errors on *your* system.
Please issue the following command (this time without altering your
italian locale settings):
$ apt-listbugs -d list apt-listbugs
and paste *the whole* output in your reply.
>
> > Finally, do you use or need to use a proxy server for HTTP connections?
> > What's the output of the following command on your system?
> >
> I don' use a proxy...
OK, this excludes a number of possible causes of the issue...
>
> In effect LC_ALL is not set... please can you say me the best way to
> have it set?
I don't think you should be worried about the fact that LC_ALL is not
set: I have your exact locale settings, except that I have en_US
wherever you have it_IT (despite being an Italian native speaker
myself!).
Needless to say, apt-listbugs works correctly on the systems I use
and/or administer! :-o
> I remember that in the previous debian versions LC_ALL was
> set configuring the locales package. Now doesn't seems to set even if I
> execute dpkg-reconfigure locales:
>
> $ locale
> LANG=it_IT.UTF-8
> LC_CTYPE="it_IT.UTF-8"
> LC_NUMERIC="it_IT.UTF-8"
> LC_TIME="it_IT.UTF-8"
> LC_COLLATE="it_IT.UTF-8"
> LC_MONETARY="it_IT.UTF-8"
> LC_MESSAGES="it_IT.UTF-8"
> LC_PAPER="it_IT.UTF-8"
> LC_NAME="it_IT.UTF-8"
> LC_ADDRESS="it_IT.UTF-8"
> LC_TELEPHONE="it_IT.UTF-8"
> LC_MEASUREMENT="it_IT.UTF-8"
> LC_IDENTIFICATION="it_IT.UTF-8"
> LC_ALL=
>
> Thank you very much Francesco, indeed!!!
As a temporary workaround (until we figure out what's wrong on your
system), you can edit /etc/apt/apt.conf.d/10apt-listbugs and change the
line
DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt || exit 10";};
into
DPkg::Pre-Install-Pkgs {"env LC_ALL=C /usr/sbin/apt-listbugs apt || exit 10";};
This way, apt-listbugs should be able to work, when invoked by apt-get
or similar package managers.
It will write English messages, but, at least, it should work...
--
http://www.inventati.org/frx/progs/scripts/pdebuild-hooks.html
Need some pdebuild hook scripts?
..................................................... Francesco Poli .
GnuPG key fpr == C979 F34B 27CE 5CD8 DC12 31B5 78F4 279B DD6D FCF4
pgpH2spbvtc80.pgp
Description: PGP signature

