preseeded value of "locales/locales_to_be_generated" lost on `locales.postinst configure` action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
in attempting to track down why locales are unset, i noticed this issue (perhaps related to https:/
to reproduce (1):
# debconf-
# debconf-show locales
* locales/
* locales/
# /var/lib/
Generating locales (this might take a while)...
Generation complete.
# debconf-show locales
* locales/
* locales/
# cat /etc/default/locale
# File generated by update-locale
# grep -v ^\# /etc/locale.gen
[empty and locale errs continue]
on the other hand, setting the same value via an interactive `dpkg-reconfigure locales` works:
# debconf-show locales
* locales/
* locales/
# dpkg-reconfigure locales (nb. en_US.UTF-8 UTF-8 is NOT pre-selected, but once manually selected and dpkg-reconfigure has finished the locales errors are gone)
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
# grep -v ^\# /etc/locale.gen
en_US.UTF-8 UTF-8
# cat /etc/default/locale
# File generated by update-locale
LANG=en_US.UTF-8
when i watch the postinst script it can be seen in an unsuccessful run that `db_get locales/
+ db_get locales/
+ _db_cmd GET locales/
+ _db_internal_IFS=
+ IFS=
+ printf %s\n GET locales/
+ IFS=
+ IFS=
read -r _db_internal_line
+ RET=
+ return 0
+ SELECTED_LOCALES=
+ echo
+ sed -e s/, /\n/g
+ SELECTED_LOCALES=
the immediately prior `db_get locales/
when locales/
setting the value via ansible's debconf module also results in failure.
than you for your time and effort in supporting ubuntu.
andy
1) as the locales are not configured at this point, most debconf commands result in an additional error of:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
i have left these out of this description but included them in the full output attachment
2) see attached, generated via `debconf-
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: locales 2.23-0ubuntu3
ProcVersionSign
Uname: Linux 4.4.0-24-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Sat Jul 2 00:08:05 2016
PackageArchitec
ProcEnviron:
TERM=rxvt-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in glibc (Ubuntu): | |
importance: | Undecided → High |
Changed in glibc (Ubuntu): | |
importance: | High → Medium |
full output