[Bug 1892825] Re: update-locale not perform correctly sanity checks
Steve Langasek
1892825 at bugs.launchpad.net
Mon Dec 13 06:02:04 UTC 2021
Hello bs, or anyone else affected,
Accepted glibc into focal-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/glibc/2.31-0ubuntu9.4
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: glibc (Ubuntu Focal)
Status: New => Fix Committed
** Tags added: verification-needed verification-needed-focal
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1892825
Title:
update-locale not perform correctly sanity checks
Status in glibc package in Ubuntu:
In Progress
Status in pam package in Ubuntu:
New
Status in glibc source package in Bionic:
New
Status in pam source package in Bionic:
New
Status in glibc source package in Focal:
Fix Committed
Status in pam source package in Focal:
New
Status in glibc source package in Hirsute:
New
Status in pam source package in Hirsute:
New
Status in glibc source package in Impish:
New
Status in pam source package in Impish:
New
Bug description:
[impact]
A simple typo using the update-locale script can render a system inoperable without booting into single user mode or similar:
$ sudo update-locale LANGUAGE = en_US.UTF-8
$ sudo -s
sudo: pam_open_session: Bad item passed to pam_*_item()
sudo: policy plugin failed session initialization
[test case]
$ cp /etc/default/locale /tmp/locale
$ update-locale --locale-file /tmp/locale LANGUAGE = en_US.UTF-8
"diff -u /etc/default/locale /tmp/locale" should be empty.
[original description]
By passing wrong input as following:
sudo update-locale LANGUAGE = en_US.UTF-8
result is:
...
#LANGUAGE=en
=
This "equal" sign that was added makes system completely
unusable(can't run sudo anymore):
bentzy at bentzy-nb:~$ sudo vim /etc/default/locale
sudo: pam_open_session: Bad item passed to pam_*_item()
sudo: policy plugin failed session initialization
Fixed it booting from installation disk and fixing corrupted
/etc/default/locale
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: locales 2.31-0ubuntu9
Uname: Linux 5.5.4-050504-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.6
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Tue Aug 25 09:36:03 2020
InstallationDate: Installed on 2020-08-17 (7 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1892825/+subscriptions
More information about the Ubuntu-sponsors
mailing list