update-locale not perform correctly sanity checks

Bug #1892825 reported by bs on 2020-08-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Gunnar Hjalmarsson

Bug Description

By passing wrong input as following:
 sudo update-locale LANGUAGE = en_US.UTF-8
result is:

This "equal" sign that was added makes system completely unusable(can't run sudo anymore):

bentzy@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)

bs (bentzy-sagiv) wrote :
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for your report. Submitted merge request which ought to prevent this from happening.


Changed in glibc (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → Medium
status: New → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers