2020-12-11 19:03:32 |
Julian Andres Klode |
bug |
|
|
added bug |
2020-12-11 19:06:15 |
Julian Andres Klode |
description |
[Impact]
In bug 1161743 we discovered that if a system is configured with multiple locales, only the locales of the user who generated the apt-cache will be available for translated descriptions.
[Test case]
# apt install locales-all # get the locale
# export LANG=sv_SE.UTF-8
# locale
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=
# apt update
# apt-cache show tasksel | grep Desc
Description-sv: tool for selecting tasks for installation on Debian systems
Description-md5: cbbb747708986d11ea77c80b9b038fec
# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: sv
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-sv
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
[...]
So far so good, but now assume the root user actually has C configured as locale, and e.g. runs apt-cache show (or apt-daily.service does an update):
root@g:~# rm /var/cache/apt/*.bin
root@g:~# LANG=C apt-cache show tasksel
[...]
Description-en: tool for selecting tasks for installation on Debian systems
This package provides 'tasksel', a simple interface for users who
want to configure their system to perform a specific task.
root@g:~# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
This should show the sv locale as well given that it's still around, but it only generated the cache with the english language description in here.
[Where problems could occur]
Unknown so far, we've not investigated the cause or solution yet.
[Other Info]
N/A |
[Impact]
In bug 1161743 we discovered that if a system is configured with multiple locales, only the locales of the user who generated the apt-cache will be available for translated descriptions.
[Test case]
# apt install locales-all # get the locale
# export LANG=sv_SE.UTF-8
# locale
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=
# apt update
# apt-cache show tasksel | grep Desc
Description-sv: tool for selecting tasks for installation on Debian systems
Description-md5: cbbb747708986d11ea77c80b9b038fec
# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: sv
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-sv
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
[...]
So far so good, but now assume the root user actually has C configured as locale, and e.g. runs apt-cache show (or apt-daily.service does an update):
root@g:~# rm /var/cache/apt/*.bin
root@g:~# LANG=C apt-cache show tasksel
[...]
Description-en: tool for selecting tasks for installation on Debian systems
This package provides 'tasksel', a simple interface for users who
want to configure their system to perform a specific task.
root@g:~# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
This should show the sv locale as well given that it's still around (also we are still running with LANG=sv_SE.UTF-8), but it only generated the cache with the english language description in here.
[Where problems could occur]
Unknown so far, we've not investigated the cause or solution yet.
[Other Info]
N/A |
|
2020-12-11 19:07:40 |
Gunnar Hjalmarsson |
bug |
|
|
added subscriber Gunnar Hjalmarsson |
2020-12-17 16:13:34 |
Matthieu Clemenceau |
tags |
rls-hh-incoming |
fr-1017 rls-hh-incoming |
|
2020-12-22 09:47:09 |
vofka |
bug |
|
|
added subscriber vofka |
2020-12-22 09:48:17 |
Launchpad Janitor |
apt (Ubuntu): status |
New |
Confirmed |
|
2021-01-07 19:34:45 |
Brian Murray |
tags |
fr-1017 rls-hh-incoming |
fr-1017 |
|
2021-01-07 19:34:53 |
Brian Murray |
nominated for series |
|
Ubuntu Hirsute |
|
2021-01-07 19:34:53 |
Brian Murray |
bug task added |
|
apt (Ubuntu Hirsute) |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Groovy |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Groovy) |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Xenial |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Xenial) |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Focal |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Focal) |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Bionic |
|
2021-01-27 11:52:04 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Bionic) |
|
2021-01-27 11:53:59 |
Julian Andres Klode |
description |
[Impact]
In bug 1161743 we discovered that if a system is configured with multiple locales, only the locales of the user who generated the apt-cache will be available for translated descriptions.
[Test case]
# apt install locales-all # get the locale
# export LANG=sv_SE.UTF-8
# locale
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=
# apt update
# apt-cache show tasksel | grep Desc
Description-sv: tool for selecting tasks for installation on Debian systems
Description-md5: cbbb747708986d11ea77c80b9b038fec
# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: sv
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-sv
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
[...]
So far so good, but now assume the root user actually has C configured as locale, and e.g. runs apt-cache show (or apt-daily.service does an update):
root@g:~# rm /var/cache/apt/*.bin
root@g:~# LANG=C apt-cache show tasksel
[...]
Description-en: tool for selecting tasks for installation on Debian systems
This package provides 'tasksel', a simple interface for users who
want to configure their system to perform a specific task.
root@g:~# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
This should show the sv locale as well given that it's still around (also we are still running with LANG=sv_SE.UTF-8), but it only generated the cache with the english language description in here.
[Where problems could occur]
Unknown so far, we've not investigated the cause or solution yet.
[Other Info]
N/A |
[Impact]
In bug 1161743 we discovered that if a system is configured with multiple locales, only the locales of the user who generated the apt-cache will be available for translated descriptions.
[Test case]
An automated test case has been included as a snippet in test/integration/test-bug-490000-search-in-all-translations which runs during autopkgtest. That's sufficient for validation.
Manual test:
# apt install locales-all # get the locale
# export LANG=sv_SE.UTF-8
# locale
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=
# apt update
# apt-cache show tasksel | grep Desc
Description-sv: tool for selecting tasks for installation on Debian systems
Description-md5: cbbb747708986d11ea77c80b9b038fec
# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: sv
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-sv
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
[...]
So far so good, but now assume the root user actually has C configured as locale, and e.g. runs apt-cache show (or apt-daily.service does an update):
root@g:~# rm /var/cache/apt/*.bin
root@g:~# LANG=C apt-cache show tasksel
[...]
Description-en: tool for selecting tasks for installation on Debian systems
This package provides 'tasksel', a simple interface for users who
want to configure their system to perform a specific task.
root@g:~# apt-cache showpkg tasksel
Package: tasksel
Versions:
3.34ubuntu16 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_binary-amd64_Packages
MD5: cbbb747708986d11ea77c80b9b038fec
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_groovy_main_i18n_Translation-en
MD5: cbbb747708986d11ea77c80b9b038fec
This should show the sv locale as well given that it's still around (also we are still running with LANG=sv_SE.UTF-8), but it only generated the cache with the english language description in here.
[Where problems could occur]
People might end up seeing a wrong translation if other code paths are wrong, but then they'd already see them if they explicitly configured multiple languages and then switched the preferred one. |
|
2021-01-31 21:17:35 |
Launchpad Janitor |
apt (Ubuntu Xenial): status |
New |
Confirmed |
|
2021-01-31 21:17:35 |
Launchpad Janitor |
apt (Ubuntu Bionic): status |
New |
Confirmed |
|
2021-01-31 21:17:35 |
Launchpad Janitor |
apt (Ubuntu Focal): status |
New |
Confirmed |
|
2021-01-31 21:17:35 |
Launchpad Janitor |
apt (Ubuntu Groovy): status |
New |
Confirmed |
|
2021-02-18 15:44:14 |
Julian Andres Klode |
apt (Ubuntu Groovy): status |
Confirmed |
Triaged |
|
2021-02-18 15:44:20 |
Julian Andres Klode |
apt (Ubuntu Hirsute): status |
Confirmed |
Fix Committed |
|
2021-02-19 23:05:29 |
Launchpad Janitor |
apt (Ubuntu Hirsute): status |
Fix Committed |
Fix Released |
|
2021-03-05 18:59:16 |
Julian Andres Klode |
apt (Ubuntu Groovy): status |
Triaged |
In Progress |
|
2021-03-24 22:34:48 |
Brian Murray |
apt (Ubuntu Groovy): status |
In Progress |
Fix Committed |
|
2021-03-24 22:34:50 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2021-03-24 22:34:53 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2021-03-24 22:34:57 |
Brian Murray |
tags |
fr-1017 |
fr-1017 verification-needed verification-needed-groovy |
|
2021-03-25 13:35:09 |
Łukasz Zemczak |
apt (Ubuntu Focal): status |
Confirmed |
Fix Committed |
|
2021-03-25 13:35:16 |
Łukasz Zemczak |
tags |
fr-1017 verification-needed verification-needed-groovy |
fr-1017 verification-needed verification-needed-focal verification-needed-groovy |
|
2021-03-25 13:42:28 |
Łukasz Zemczak |
apt (Ubuntu Bionic): status |
Confirmed |
Fix Committed |
|
2021-03-25 13:42:36 |
Łukasz Zemczak |
tags |
fr-1017 verification-needed verification-needed-focal verification-needed-groovy |
fr-1017 verification-needed verification-needed-bionic verification-needed-focal verification-needed-groovy |
|
2021-03-30 09:31:07 |
Julian Andres Klode |
tags |
fr-1017 verification-needed verification-needed-bionic verification-needed-focal verification-needed-groovy |
fr-1017 verification-done verification-done-bionic verification-done-focal verification-done-groovy |
|
2021-04-06 18:04:32 |
Launchpad Janitor |
apt (Ubuntu Groovy): status |
Fix Committed |
Fix Released |
|
2021-04-06 18:05:00 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2021-04-07 02:17:59 |
Launchpad Janitor |
apt (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2021-04-07 02:21:00 |
Launchpad Janitor |
apt (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|