Categories
ubuntu

Repair Perl Locale Errors on Ubuntu Server

Installed Ubuntu Server Karmic just fine and noticed this perl error on the first “apt-get upgrade” i ran.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = "en_US",
	LC_CTYPE = "en_US.UTF-8",
	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_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

After a bit of looking around on the internets i found out the solution:

sudo apt-get install language-pack-en-base
sudo dpkg-reconfigure locales

That’s it 🙂

2 replies on “Repair Perl Locale Errors on Ubuntu Server”

Thanks for posting this – it was much shorter than the other solutions around the web. However I noticed language-pack-en-base includes firefox-locale-en and language-pack-en. Perhaps `sudo apt-get install languagel-pack-en` would be sufficient and leaner?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.