Locale error

Bug #59062 reported by Kurt Kraut
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I was doing update-manager -c -d to upgrade from Dapper to Edgy Knot 2 when I got this error in /var/log/dist-upgrade/term.log

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "pt_BR.UTF-8",
        LC_ALL = (unset),
        LANG = "pt_BR.UTF-8"
    are supported and installed on your system.

I don't know even if it is a update-manager issue but I suppose that it should'nt happen. I use my Ubuntu system in Portuguese (Brazilian), pt_BR.

Revision history for this message
John Vivirito (gnomefreak) wrote :

After its done upgrading you shouldnt see it anymore. try installing a package or doing updates and see if you still get it. towards the end of the upgrade locales get set up but try it and make sure you dont get them any longer. if so let me know what you do to receive it. Thank you for your bug report

Changed in update-manager:
status: Unconfirmed → Needs Info
Michael Vogt (mvo)
Changed in update-manager:
importance: Untriaged → Medium
Revision history for this message
Kurt Kraut (kurtkraut) wrote : No more data

Unfortunately, I found so many errors during the upgrade that it was unable to finish and left my Dapper with some Edgy packages, creating some incompatibility that I needed or to reinstall Dapper or make a clean install of Edgy.

I did a clean install of Edgy in order to have some problems fixed. So I cannot give further details in this errors. But please, pick up a testing machine and try to upgrade from Dapper to Edgy. You will find several errors that must be fixed.

Revision history for this message
John Vivirito (gnomefreak) wrote :

i see those error when i upgrade but once the upgrade is done they are fixed and that is normal afaik since the packages are being upgraded before the locales are being upgraded and generated so you will see those errors until the locales are installed and generated. I will be doing another install again on monday/tuesday of next week so i will go for the upgrade from dapper to edgy and see if its changed since friday the 1st of sept.

Revision history for this message
John Vivirito (gnomefreak) wrote :

I was not able to reproduce this on dapper > edgy upgrade. Is this still a problem for you?

Revision history for this message
Kurt Kraut (kurtkraut) wrote : No futher data

As I mentioned before, this unsuccessful upgrade leaded my system to a very unstable state, with Dapper and Edgy packages mixed. So I had to make a clean install of Edgy in order to get things working again. So I can't say to you if this still a problem.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Your bug lacks information we would need to investigate further. We
are now going to close the bug - please reopen if you have more
information at hand.

Changed in update-manager:
status: Needs Info → Rejected
Revision history for this message
fith (fithmo) wrote :

I've been getting the same error dozens of times in my attempt to upgrade from Dapper to Edgy.

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

Revision history for this message
Christian Gunning (helmingstay) wrote :

I just got hit by this when upgrading a modified dapper server to edgy from commandline using apt-get.

I successfully completed "apt-get upgrade" but choked on "apt-get dist-upgrade".
Looking in /usr/share/locale, I see my locale no longer present.
I'm able to continue by prepending my commandline with an LC_ALL assignment, i.e.

$ sudo LC_ALL=C apt-get dist-upgrade

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Christian Gunning,
Make sure your locale is installed by running the following commands:
$ sudo locale-gen pt_BR.UTF-8 (or whatever locale you want)

Revision history for this message
Luis (luis94855510) wrote :

It's simple:

$ sudo locale-gen pt_BR.UTF-8
$ sudo dpkg-reconfigure locales

good luck

Revision history for this message
David Greaves (david-dgreaves) wrote :

I upgraded 8.04 to 8.10 and this affected me.
david@larch:~$ sudo locale-gen en_GB.UTF-8
Generating locales...
  en_GB.UTF-8... up-to-date
Generation complete.
david@larch:~$ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "en_GB",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
david@larch:~$

Revision history for this message
asala (asala) wrote :

I also was affected when upgrading from 9.10 to 10.4, both in 32 bit and 64 bit in two different computers.
Renamed the /usr/lib/locale folder and excecuted dpkg-reconfigure locales
and ALSO edited /etc/environment and /etc/default/locale
to set LC_ALL="es_ES.utf8".
Then, I have a Spanish Ubuntu. However, not good if I want both a catalan and Spanish account...
Seems that a sort of regression is here.

Revision history for this message
asala (asala) wrote :

And same issue in TWO computers from 10.10 to 11.04.

cd usr/lib/locale
sudo mv locale-archive locale-archive.old
sudo LANG="C" LC_ALL="C" dpkg-reconfigure locales
sudo LANG="C" LC_ALL="C" apt-get update
sudo LANG="C" LC_ALL="C" apt-get upgrade
sudo LANG="C" LC_ALL="C" dpkg-reconfigure -a

(I think I had to do it a couple of times...)
solved the issue and avoided a "fresh" install.

My computers had in common that three languages were installed (Spanish/English/Catalan) in one and (Spanish/English/German) in another...

Anyway I guess that 3 years later no one will read this...

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

Other bug subscribers

Related questions

Remote bug watches

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