Debian perl locale warning messages
Question
How to get rid of the following annoying perl warning messages on a fresh Debian system:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MESSAGES = "en_US.UTF-8",
LC_COLLATE = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Answer
Run this command:
dpkg-reconfigure locales
and configure missing locales (en_US.UTF-8 in the above example).