≡ Menu

Locale sv_SE.UTF-8

Vid en installation av Ubuntu 9.04 Jaunty som jag kör på min VPS var jag tvungen att ställa in locale till sv_SE.UTF-8.

När jag installerade program fick jag detta felmeddelande:

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

Alternativt detta felmeddelande:


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

För att ställa in dessa till sv_SE.UTF-8 var jag tvungen att köra locale-gen och sedan dpkg-reconfigure locales. För sv_SE.UTF-8, gör följande:

locale-gen sv_SE.UTF-8
dpkg-reconfigure locales

Nu skall du slippa se meddelandet om att LC_MESSAGES, LC_ALL och LC_CTYPE inte är inställda korrekt.

{ 0 comments… add one }

Leave a Comment

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close