Full switch locale: Ubuntu server installed with no locales, how to enable locales systemwide?

I would generate the English (United States) locale.

sudo locale-gen en_US.UTF-8

The system wide locales are stated in /etc/default/locale in Ubuntu, so give that file the contents:

LANG=en_US.UTF-8

I have to investigate it deeper and this solution helps me to solve it:

dpkg-reconfigure locales

choose cs_CZ.UTF-8 UTF-8 (default) and/or en_US.UTF-8 UTF-8

apt-get install console-data
dpkg-reconfigure console-data

set pc / qwerty / Czech / Standard / Standard or any other on your choice

dpkg-reconfigure console-setup

set Encoding to use on the console: UTF-8 set Charecter set: Latin2 - central Europe and Romanian, Fixed, 16 or any other on your coice

in file /etc/default/locale set

LANG=cs_CZ.UTF-8
LANGUAGE=cs_CZ.UTF-8
LC_ALL=cs_CZ.UTF-8
LC_CTYPE=cs_CZ.UTF-8

I dont know which steps are necessary, but after this all fonts and especially all ftp transfers and all tar-gzip actions work well.