Херь:
perl: warning: Setting locale failed.
Антихерь:
locale-gen en_US en_US.UTF-8 ru_RU ru_RU.UTF-8 dpkg-reconfigure locales
Или
locale-gen en_US en_US.UTF-8 ru_RU ru_RU.UTF-8 update-locale LANG=ru_RU.UTF-8
Херь:
perl: warning: Setting locale failed.
Антихерь:
locale-gen en_US en_US.UTF-8 ru_RU ru_RU.UTF-8 dpkg-reconfigure locales
Или
locale-gen en_US en_US.UTF-8 ru_RU ru_RU.UTF-8 update-locale LANG=ru_RU.UTF-8