Bug#585737: locales: upgrade not atomic
When locales is upgraded at the same time as other packages, there are
quite a few things that run between the removal of the old locales and
the generation of the new ones. This is most visible with the perl
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_COLLATE = "C",
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_ALL to default locale: No such file or directory
which appears a lot in the configuration of other packages or in some
triggers (but not at all when locales isn't being upgraded).
Some packages seem to have a way to tell apt that they want to be
upgraded alone, I wonder if locales deserves the same...
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages locales depends on:
ii debconf [debconf-2.0] 1.5.32 Debian configuration management sy
ii libc6 [glibc-2.11-1] 2.11.1-3 Embedded GNU C Library: Shared lib
locales recommends no packages.
locales suggests no packages.
-- debconf information:
* locales/default_environment_locale: en_US.UTF-8
* locales/locales_to_be_generated: All locales