ubuntu@localhost:~$ sudo locale-gen en_US en_US.UTF-8 hu_HU hu_HU.UTF-8
Generating locales (this might take a while)...
en_US.ISO-8859-1... done
en_US.UTF-8... done
hu_HU.ISO-8859-2... done
hu_HU.UTF-8... done
Generation complete.
ubuntu@localhost:~$ dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en
en",
LC_ALL = (unset),
LC_PAPER = "en",
LC_ADDRESS = "en",
LC_MONETARY = "en",
LC_NUMERIC = "en",
LC_TELEPHONE = "en",
LC_IDENTIFICATION = "en",
LC_MEASUREMENT = "en",
LC_TIME = "en",
LC_NAME = "en",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/sbin/dpkg-reconfigure must be run as root
ubuntu@localhost:~$