Errors about locale when dist-upgrade from dapper to edgy.

Bug #67054 reported by Matt Sicker
2
Affects Status Importance Assigned to Milestone
belocs-locales-bin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If I attempt to do an apt-get dist-upgrade from dapper to edgy, most packages emit this error when configured:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_GB:en_US:en_GB:en",
        LC_ALL = "en_GB.UTF-8",
        LC_PAPER = "en_US.UTF-8",
        LC_ADDRESS = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_TELEPHONE = "en_US.UTF-8",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Now if this truly isn't setting the locale anymore, isn't this going to piss off a bunch of non-USians who don't speak en_US?

Also, this problem seems to happen in Debian Etch and Debian Sid, so you probably inherited the issue.

Revision history for this message
Matt Sicker (jvz) wrote :

I've just tried doing a dist-upgrade from a LiveCD, and this issue doesn't exist. Therefore, the problem must obviously have something to do with an old version of locales or some other weird configuration that was default in Dapper but doesn't work in Edgy.

Revision history for this message
Matt Sicker (jvz) wrote :

Oh, and this seems to happen from a clean install of Dapper (and with security updates) to Edgy. I hope that this isn't screwing up people's locales else they get pissed about losing them (bad PR yo).

Revision history for this message
Matt Sicker (jvz) wrote :

*ding* I've figured out how to fix this (in a debootstrap chroot at least): after doing the base install, run 'locale-gen en_GB.UTF-8 en_US.UTF-8' as root. Installs don't complain about locales anymore after that's done!

Revision history for this message
Scott Kitterman (kitterman) wrote :

It looks like this may be a duplicate of Bug #1524. I think that perhpaps this bug should be closed to Bug #1524. Still present in Feisty chroot install.

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

No, this is not a duplicate of Bug #1524. That bug is very specific to just sloccount AFAICS in that it is sloccount's meddling with $LANG in a textual way that causes later problems. I doubt sloccount is involved at all with the upgrade described in this bug above.

Revision history for this message
Matt Sicker (jvz) wrote :

This could also be due to this apt.conf bit included by default:
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};

Either that, or I noticed that the new locales package that causes the problem is not configured and set up before everything else is. I don't know much about the deb packaging system, but if that can be configured to configure and set up itself before configuring and setting up everything else, I think the problem should be solved.

Revision history for this message
Andres Mujica (andres.mujica) wrote :

It's confirmed i'm assigning to the locales-gen package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.