[Debconf-devel] Bug#1002636: debconf: dpkg-reconfigure locales crashes because /sbin is not in $PATH

Lucio Messina luciotuttominuscolo at inventati.org
Sun Dec 26 09:52:47 GMT 2021


Package: debconf
Version: 1.5.79
Severity: normal
Tags: l10n newcomer
X-Debbugs-Cc: luciotuttominuscolo at inventati.org

Dear Maintainer,

STEP TO REPRODUCE:
1. have a debian fresh install
2. run `/usr/sbin/dpkg-reconfigure locales`
3. select the locales to generate
4. select the default locale

EXPECTED OUTCOME
locales are regenerated without errors

ACTUAL OUTCOME
dpkg-reconfigure crashes with error 
/var/lib/dpkg/info/locales.postinst: 64: locale-gen: not found

REASON
/usr/sbin is not in PATH by default, so the executable for locale-gen is not
found. Manually running `/usr/bin/locale-gen` finishes the process as expected.
Adding /usr/sbin to PATH before running `locale-gen` also works.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debconf depends on:
ii  perl-base  5.32.1-6

Versions of packages debconf recommends:
ii  apt-utils     2.3.13
ii  debconf-i18n  1.5.79

Versions of packages debconf suggests:
pn  debconf-doc                <none>
pn  debconf-kde-helper         <none>
pn  debconf-utils              <none>
ii  libgtk3-perl               0.038-1
pn  libnet-ldap-perl           <none>
pn  libterm-readline-gnu-perl  <none>
ii  perl                       5.32.1-6
ii  whiptail                   0.52.21-5+b1

-- debconf information:
  debconf/frontend: Dialog
  debconf-apt-progress/media-change:
  debconf/priority: high
  debconf-apt-progress/info:
  debconf-apt-progress/title:
  debconf-apt-progress/preparing:



More information about the Debconf-devel mailing list