perl: warning: Setting locale failed. perl: warning: Please check that your locale...

glanc

Renowned Member
Mar 19, 2010
21
0
66
After installed some tool i get this annoying locale error. I've done this but when rebooting error comes back:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales



root@proxmox:~# qm list
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID
100 SBS2011 running 16384 120.00 2459
101 win7pro1 running 2048 32.00 2439

There's a lot of suggestions on the web/forum, does anyone know the proper fix? Thanks.
 
Re: perl: warning: Setting locale failed. perl: warning: Please check that your local

The only fix that worked was to add in root .bashrc, this:

export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8

I've tried:

dpkg-reconfigure locales
locale-gen
etc.
 
Re: perl: warning: Setting locale failed. perl: warning: Please check that your local

thanks!
 
You can use this command found elsewhere in this forum :
sed -i 's/.*AcceptEnv LANG LC_\*.*/AcceptEnv LANG LC_PVE_* # Fix for perl: warning: Setting locale failed./' /etc/ssh/sshd_config
service ssh reload

Disconnect and reconnect and you should be good