Comment 4 for bug 545951

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 545951] Re: langpack installation/removal should rebuild gnome menu cache

Hello Valentijn,

Valentijn Sessink [2010-03-25 11:54 -0000]:
> Mar 25 11:22:36 in-target: Uitpakken van language-pack-nl (uit .../language-pack-nl_1%3a10.04+20100320_all.deb) ...
> Mar 25 11:22:36 in-target: Overschrijven van de bestanden in het oude pakket language-pack-nl-base ...
> Mar 25 11:22:37 in-target: Instellen van language-pack-nl (1:10.04+20100320) ...
> Mar 25 11:22:37 in-target: Instellen van language-pack-nl-base (1:10.04+20100313) ...
> (so here's language-pack installed)

Please note that you need to look for language-pack-gnome-nl and
-base, since it's those packages which have the .desktop translations
for GNOME packages.

> Mar 25 11:32:42 in-target: Rebuilding /usr/share/applications/desktop.nl_NL.utf8.cache...
> (this is the last time desktop.nl_NL.utf8.cache is rebuilt; it contains wrong information here)
>
> By the way, Perl keeps complaining:
> Mar 25 11:34:30 log-output: perl: warning: Setting locale failed.
> Mar 25 11:34:30 log-output: perl: warning: Please check that your locale settings:
> Mar 25 11:34:30 log-output: LANGUAGE = (unset),
> Mar 25 11:34:30 log-output: LC_ALL = (unset),
> Mar 25 11:34:30 log-output: LANG = "C.UTF-8"

This is really strange. Why is $LANG suddenly set to C.UTF-8? Do you
have the full install log still, and could you attach it? I wonder at
which point the locale package gets installed and configured (i. e. at
which point you actually have working locales).

> Now we do the postinstall preseed-stuff and see:
> Mar 25 11:34:36 log-output: locale:
> Mar 25 11:34:36 log-output: Cannot set LC_ALL to default locale
> Mar 25 11:34:36 log-output: : No such file or directory
> Mar 25 11:34:36 log-output:
> Mar 25 11:34:36 log-output: Rebuilding /usr/share/applications/desktop.C.utf8.cache...
>
> Huh?

It seems that somewhere in between the locale ($LANG) gets changed or
dropped. I have no real idea why, it doesn't happen on a normal
install from CD.

A full install log might help.

Thanks,

Martin

--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)