error generating locale

PmUserZFS

Renowned Member
Feb 2, 2018
144
9
83
root@pve:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "us_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
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_GB.UTF-8... done
en_US.UTF-8... done
sv_SE.UTF-8... done
Generation complete.

I need just english output and swedish keyboard.
 
Last edited:
Hi,

re-run the `dpkg-reconfigure locales` command again, and this time, make sure to select `en_US.UTF-8` as the default locale when prompted. And then check the `/etc/default/locale` file, then run `source /etc/default/locale` command or restart your session.


Regarding change the keyboard to Swedish, you can edit the `/etc/default/keyboard` or using `setxkbmap` tool, e.g., `setxkbmap se`.
 
  • Like
Reactions: PmUserZFS