This has been around since forever. I fix this on every server I
install. Note the uppercase UTF instead of lowecase as the locale output
reports.

sudo locale-gen sv_SE.UTF-8
Generating locales...
  sv_SE.UTF-8... done
Generation complete.

Steps to reproduce:
1. install ubuntu server, any recent version
2. select english for everything except keyboard layout
3. install a package on the commandline and watch perl complain like this:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "",
        LC_TIME = "sv_SE.utf-8",
        LC_CTYPE = "en_US.utf-8",
        LC_MONETARY = "sv_SE.utf-8",
        LC_COLLATE = "en_US.utf-8",
        LC_ADDRESS = "sv_SE.utf-8",
        LC_TELEPHONE = "sv_SE.utf-8",
        LC_MESSAGES = "en_US.utf-8",
        LC_NAME = "sv_SE.utf-8",
        LC_MEASUREMENT = "sv_SE.utf-8",
        LC_IDENTIFICATION = "en_US.utf-8",
        LC_NUMERIC = "sv_SE.utf-8",
        LC_PAPER = "sv_SE.utf-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


My guess is that the installer forgets to create the locale. 

Feb  9 16:51:18 localechooser: Generating locales...
Feb  9 16:51:18 localechooser:   en_US.UTF-8... 
Feb  9 16:51:20 localechooser: done
Feb  9 16:51:20 localechooser: Generation complete.
Feb  9 16:51:20 localechooser: Generating locales...
Feb  9 16:51:20 localechooser:   en_US.UTF-8... 
Feb  9 16:51:20 localechooser: up-to-date
Feb  9 16:51:20 localechooser: Generation complete.
Feb  9 16:51:20 preseed: perl: warning: Setting locale failed.
Feb  9 16:51:20 preseed: perl: warning: Please check that your locale settings:
Feb  9 16:51:20 preseed:        LANGUAGE = (unset),
Feb  9 16:51:20 preseed:        LC_ALL = (unset),
Feb  9 16:51:20 preseed:        LANG = "C.UTF-8"
Feb  9 16:51:20 preseed:     are supported and installed on your system.
Feb  9 16:51:20 preseed: perl: warning: Falling back to the standard locale 
("C").
Feb  9 16:51:20 preseed: locale: Cannot set LC_CTYPE to default locale: No such 
file or directory
Feb  9 16:51:20 preseed: locale: Cannot set LC_MESSAGES to default locale: No 
such file or directory
Feb  9 16:51:20 preseed: locale: Cannot set LC_ALL to default locale: No such 
file or directory
<snip>
Feb  9 17:00:03 finish-install: info: Running 
/usr/lib/finish-install.d/05localechooser

-- 
"setting locale failed" if using other keyboard layout then language
https://bugs.launchpad.net/bugs/229699
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to