[DRE-maint] Bug#594990: libhttpclient-ruby1.8: invalid HTTP header on some locales

Paolo Sala piviul at riminilug.it
Fri Sep 3 07:42:38 UTC 2010


Francesco Poli scrisse in data 02/09/2010 23:39:
> I suggest you don't change your general locale settings (I mean, not
> just for this bug, at least!).
>   
OK.

> Instead, I think you should temporary work around this bug, by editing
> /etc/apt/apt.conf.d/10apt-listbugs, as I previously suggested, and wait
> for this bug to be really fixed!
>   
The workaround doesn't work:

$ cat /etc/apt/apt.conf.d/10apt-listbugs | grep Pre-Install-Pkgs
DPkg::Pre-Install-Pkgs {"env LC_ALL=C /usr/sbin/apt-listbugs apt || exit
10";};
$ apt-listbugs list apt-listbugs
Lettura dei campi dei pacchetti... Fatto
Lettura dello stato dei pacchetti... Fatto
Recupero delle segnalazioni di bug... 0% Fallito
 E: HTTP GET non riuscita

> For reasons explained below, I think the workaround may be made even
> less invasive: when you edit /etc/apt/apt.conf.d/10apt-listbugs , you
> may change the line
>
> DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt || exit 10";};
>
> into
>
> DPkg::Pre-Install-Pkgs {"env LC_NUMERIC=C /usr/sbin/apt-listbugs apt || exit 10";};
>
> This should be enough to temporary work around the bug, while letting
> apt-listbugs speak in your language of choice!
> Please test it out and see if it works...
>   
doesn't work too... furthermore now if I execute aptitude safe-upgrade
when aptitude invoke apt-listbugs I get the following error:

E: Il sottoprocesso /usr/sbin/apt-listbugs apt || exit 10 ha restituito
un codice d'errore (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
Errore durante l'installazione di un pacchetto. Tentativo di ripristino:

I have write someting wrong in /etc/apt/apt.conf.d/10apt-listbugs?

> It seems that the problem lies in the HTTP headers.
> Please note that "HTTP/1,1" ...
> It should be "HTTP/1.1" instead!
> The HTTP version should be in integer-dot-integer form, rather than in
> integer-comma-integer form.
>   
Great, I think you hare right!

> You seem to access the Internet through a transparent HTTP proxy (named
> nethsecurity.csa.lan on your local network).
> The wrong HTTP header makes this proxy angry, causing it to close the
> connection.
>   
Yes, is a squid proxy configured as a transparent proxy

> [...]
> Finally, I have to admit that I am still unable to reproduce the bug:
> I've been trying to get that "HTTP/1,1" header in apt-listbugs debug
> wire dump, but no success yet...   :-(
>   
I think something wrong happened during the upgrade process because I
have two others little bugs; the first one arise when I run
dpkg-reconfigure --all: all seems to work when after reconfigured the
console-data package I get the following error:

$ dpkg-reconfigure --all
[...]
Looking for keymap to install:
it
Looking for keymap to install:
it
Ignoring nonregistered document `lct'
 * Setting console screen modes and fonts
cannot (un)set powersave mode
[14;30] * Stopping periodic command scheduler cron                     
[ OK ]
dpkg-maintscript-helper: error: couldn't identify the package

The second bug arise in the tty{1..6} console (the console you can reach
pressing ctrl-alt-f1 ... ctrl-alt-f6) I get strange echos. For example
when I type the password during the logon process the password is shown
in clear; furthermore if i press the arrows up to display the previous
command I can see only ^[[A; the autocompletion doesn't work because the
tab is shown as a tab... in other words the tty consoles are unusable.

I haven't opened other bugs reports for these little bugs because I hope
they are tied all together.

Have a great day

Piviul






More information about the Pkg-ruby-extras-maintainers mailing list