[Bug 1913609] [NEW] Ungraceful failure when locale postinstallation script can't modify files it shouldn't

Avamander 1913609 at bugs.launchpad.net
Thu Jan 28 15:42:58 UTC 2021


Public bug reported:

When the files /etc/locale.gen, /etc/default/locale and
/var/lib/locales/supported.d/en are locked down to avoid any unnecessary
modifications done to them, the post-installation script of locales
fails ungracefully when trying to sed (due to write permission denial).

Those files are locked down because some updates decide to suddenly
start generating a massive amount of locales and it can have disastrous
effects if there's not a lot of storage e.g.
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1908928

There should really be no need to overwrite or modify those files by the
package's installation without asking, this needs an user prompt or the
user config must be kept.

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- Ungraceful failure when locale postinstallation script can't modify files
+ Ungraceful failure when locale postinstallation script can't modify files it shouldn't

** Description changed:

  When the files /etc/locale.gen, /etc/default/locale and
  /var/lib/locales/supported.d/en are locked down to avoid any unnecessary
  modifications done to them, the post-installation script of locales
- fails ungracefully when trying to sed.
+ fails ungracefully when trying to sed (due to write permission denial).
  
  Those files are locked down because some updates decide to suddenly
  start generating a massive amount of locales and it can have disastrous
  effects if there's not a lot of storage e.g.
  https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1908928
  
  There should really be no need to overwrite or modify those files by the
  package's installation without asking, this needs an user prompt or the
  user config must be kept.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1913609

Title:
  Ungraceful failure when locale postinstallation script can't modify
  files it shouldn't

Status in glibc package in Ubuntu:
  New

Bug description:
  When the files /etc/locale.gen, /etc/default/locale and
  /var/lib/locales/supported.d/en are locked down to avoid any
  unnecessary modifications done to them, the post-installation script
  of locales fails ungracefully when trying to sed (due to write
  permission denial).

  Those files are locked down because some updates decide to suddenly
  start generating a massive amount of locales and it can have
  disastrous effects if there's not a lot of storage e.g.
  https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1908928

  There should really be no need to overwrite or modify those files by
  the package's installation without asking, this needs an user prompt
  or the user config must be kept.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1913609/+subscriptions



More information about the foundations-bugs mailing list