Post image for Locale sv_SE.UTF-8

Locale sv_SE.UTF-8

by J.Backlund on 18/05/2009

in Linux

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.

Leave a Comment

Previous post:

Next post: