locale: Cannot set LC_CTYPE to default locale: No such file or directory locale
Solution 1:
Insert into /etc/default/locale
:
LC_CTYPE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LANG="en_US.UTF-8"
And regarding the missing locales, to generate them: sudo dpkg-reconfigure locales
Solution 2:
This one worked for me.
sudo -i
locale
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
reboot