[lubuntu-devel] LANG=C; ubuntu-support-status --show-unsupported fails from non-English language
Nio Wiklund
nio.wiklund at gmail.com
Sat Mar 12 12:45:01 UTC 2016
Hi again Lubuntuers,
Standard Ubuntu is also affected, so it is not a Lubuntu bug ;-)
I used the last 'current' iso file.
http://cdimage.ubuntu.com/daily-live/current/xenial-desktop-amd64.iso
Please mark this bug 'affects me too' to confirm it :-)
---
ubuntu at ubuntu:~$ df
Sys. de fichiers blocs de 1K Utilisé Disponible Uti% Monté sur
udev 1948832 0 1948832 0% /dev
tmpfs 392684 6384 386300 2% /run
/dev/sda2 22319620 6445340 14717368 31% /isodevice
/dev/loop0 1540096 1540096 0 100% /cdrom
/dev/loop1 1490432 1490432 0 100% /rofs
/cow 1963420 55168 1908252 3% /
tmpfs 1963420 620 1962800 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1963420 0 1963420 0% /sys/fs/cgroup
tmpfs 1963420 4 1963416 1% /tmp
cgmfs 100 0 100 0% /run/cgmanager/fs
tmpfs 392684 56 392628 1% /run/user/999
/dev/sda1 64511 6615 57897 11% /media/ubuntu/lub14042-32
/dev/sda3 8259600 2052208 5771592 27% /media/ubuntu/casper-rw
tmpfs 392684 8 392676 1% /run/user/108
ubuntu at ubuntu:~$ setxkbmap se
ubuntu at ubuntu:~$ ubuntu-support-status --show-unsupported
Résumé de l'état du support de « ubuntu » :
Vous avez 1820 paquets (96.8%) pris en charge jusqu'à March 2021 (5y)
Vous avez 13 paquets (0.7%) pris en charge jusqu'à March 2019 (3y)
Vous avez 47 paquets (2.5%) pris en charge jusqu'à December 2016 (9m)
Vous avez 0 paquets (0.0%) qui ne peuvent pas ou plus être téléchargés
Vous avez 0 paquets (0.0%) qui ne sont pas pris en charge
Ne sont plus téléchargeables :
Non pris en charge :
ubuntu at ubuntu:~$ LANG=C
ubuntu at ubuntu:~$ ubuntu-support-status --show-unsupported
Traceback (most recent call last):
File "/usr/bin/ubuntu-support-status", line 145, in <module>
print(_("Support status summary of '%s':") % os.uname()[1])
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in
position 1: ordinal not in range(128)
ubuntu at ubuntu:~$ uname -a
Linux ubuntu 4.4.0-10-generic #25-Ubuntu SMP Wed Mar 2 14:55:50 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux
ubuntu at ubuntu:~$ test -d /sys/firmware/efi/ && echo efi || echo bios
efi
ubuntu at ubuntu:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1948832 0 1948832 0% /dev
tmpfs 392684 6344 386340 2% /run
/dev/sda2 22319620 6445340 14717368 31% /isodevice
/dev/loop0 1540096 1540096 0 100% /cdrom
/dev/loop1 1490432 1490432 0 100% /rofs
/cow 1963420 55276 1908144 3% /
tmpfs 1963420 412 1963008 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1963420 0 1963420 0% /sys/fs/cgroup
tmpfs 1963420 4 1963416 1% /tmp
cgmfs 100 0 100 0% /run/cgmanager/fs
tmpfs 392684 64 392620 1% /run/user/999
/dev/sda1 64511 6615 57897 11% /media/ubuntu/lub14042-32
/dev/sda3 8259600 2052208 5771592 27% /media/ubuntu/casper-rw
---
As you can see 'df' works with 'LANG=C', but not
'ubuntu-support-status'. It is possible that other command line programs
fail too.
Best regards
Nio
Den 2016-03-12 kl. 13:07, skrev Nio Wiklund:
> Hi Julien and Jörn,
>
> I tested and this bug affects French and German too (when installed in a
> system originally booted in English).
>
> So I think it will be hard to avoid this bug in UEFI mode, when there is
> only boot from grub (and no syslinux language menu).
>
> -----
> I made sure it also affects the amd64 version in UEFI mode:
> ---
> lubuntu at lubuntu:~$ ubuntu-support-status --show-unsupported
> Sammandrag av supportstatus för ”lubuntu”:
>
> Du har 183 paket (14.6%) som stöds till March 2019 (3y)
> Du har 1062 paket (84.8%) som stöds till March 2021 (5y)
> Du har 7 paket (0.6%) som stöds till December 2016 (9m)
>
> Du har 0 paket (0.0%) som inte (längre) kan hämtas
> Du har 1 paket (0.1%) som inte stöds
>
> Inte längre möjliga att hämta:
>
> Stöds inte:
> aspell-sv
>
> lubuntu at lubuntu:~$ LANG=C
> lubuntu at lubuntu:~$ ubuntu-support-status --show-unsupported
> Traceback (most recent call last):
> File "/usr/bin/ubuntu-support-status", line 145, in <module>
> print(_("Support status summary of '%s':") % os.uname()[1])
> UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in
> position 29: ordinal not in range(128)
>
> lubuntu at lubuntu:~$ uname -a
> Linux lubuntu 4.4.0-12-generic #28-Ubuntu SMP Wed Mar 9 00:33:55 UTC
> 2016 x86_64 x86_64 x86_64 GNU/Linux
>
> lubuntu at lubuntu:~$ test -d /sys/firmware/efi/ && echo efi || echo bios
> efi
> lubuntu at lubuntu:~$
> -----
>
> I suspect that it might affect other command line application programs too.
>
> Best regards
> Nio
>
> Den 2016-03-12 kl. 12:13, skrev Nio Wiklund:
>> Hi,
>>
>> I have found Bug #1556399. I seems to be caused by ubuntu-support-status
>> which belongs to update-manager-core, but maybe it is a Lubuntu bug.
>>
>> The live system is using Swedish. I try to get the output in English, so
>> I used LANG=C.
>>
>> lubuntu at lubuntu:~$ ubuntu-support-status --show-unsupported
>> Sammandrag av supportstatus för ”lubuntu”:
>>
>> Du har 1061 paket (85.8%) som stöds till March 2021 (5y)
>> Du har 171 paket (13.8%) som stöds till March 2019 (3y)
>> Du har 3 paket (0.2%) som stöds till December 2016 (9m)
>>
>> Du har 0 paket (0.0%) som inte (längre) kan hämtas
>> Du har 1 paket (0.1%) som inte stöds
>>
>> Inte längre möjliga att hämta:
>>
>> Stöds inte:
>> aspell-sv
>>
>> lubuntu at lubuntu:~$ LANG=C
>> lubuntu at lubuntu:~$ ubuntu-support-status --show-unsupported
>> Traceback (most recent call last):
>> File "/usr/bin/ubuntu-support-status", line 145, in <module>
>> print(_("Support status summary of '%s':") % os.uname()[1])
>> UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in
>> position 29: ordinal not in range(128)
>>
>>
>> *This is why I suspect that it may be a Lubuntu bug*
>>
>> See the bug report's comment #2:
>>
>> https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1556399
>>
>> This bug affects systems originally booted in English, where Swedish was
>> installed/set via the Lubuntu menu 'Preferences - Language Support'.
>> This is the [only] way to do it when booting from grub, and a possible
>> way to do it when booting from syslinux.
>>
>> I put Swedish at the top of the list (of installed languages), applied
>> system-wide, logged out and logged in again as the user lubuntu.
>>
>> It is also affecting my installed xenial system, which I am running in
>> Swedish.
>>
>> -o-
>>
>> But when I set the Swedish language via the first menu of syslinux boot,
>> the live can to get English output via
>>
>> LANG=C; ubuntu-support-status --show-unsupported
>>
>> Maybe it is not a bug of 'update-manager' but a bug of the Lubuntu
>> package for language support.
>>
>> Best regards
>> Nio
>
More information about the Lubuntu-devel
mailing list