error generating locale

PmUserZFS

Well-Known Member
Feb 2, 2018
77
2
48
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!