Setting locale failed

JohnnyD

Member
Mar 4, 2023
68
2
8
Both my master and node are now showing this error. How do I fix it please?

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TERMINAL = "iTerm2",
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
 
Seems like there is something wrong with your locale settings, try fixing them via:

Code:
dpkg-reconfigure locales
 
  • Like
Reactions: ryva_82
Seems like there is something wrong with your locale settings, try fixing them via:

Code:
dpkg-reconfigure locales
I have tried that and i get the following

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LC_TERMINAL = "iTerm2",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LC_TERMINAL = "iTerm2",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
 
Can you try the following?


Code:
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
 
Can you try the following?


Code:
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
Yes that works OK now, what happened there then, that is from the debian ISO installer. Thank You
 
Hmmm still having a few issues here, if i type date in the console it shows the correct time (UK time) but the gateway GUI shows 1 hour ahead, and delivered emails are also timed 1 hour ahead of what they should be, how do I fix this please?
 
You should be able to set your time zone via the GUI: 'Configuration' > 'Network/Time'
 
Yep that was set correctly, it seems it's the Mac Mini I am on playing up, it's got confused as to where it is time zone wise as it travels to and from France LoL, i am having to set it manually for it to correctly locate in the UK, thank you for the response though :)
 

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!