I use the --purge
option to remove existing locales before generating new one, but seems cannot remove existing locales?
e.g.
# locale-gen --purge en_US
# locale -a
C
en_AG
en_AU.utf8
en_BW.utf8
en_US
en_US.utf8
POSIX
zh_TW
I use the --purge
option to remove existing locales before generating new one, but seems cannot remove existing locales?
e.g.
# locale-gen --purge en_US
# locale -a
C
en_AG
en_AU.utf8
en_BW.utf8
en_US
en_US.utf8
POSIX
zh_TW
Also you can try localepurge as Juice sad earlier.
sudo edit /etc/default/locale
Edit the LANGUAGE
variable to remove whatever language that needs removed
. Then reboot
.
sudo apt-get install localepurge
After that you can run localepurge
to remove old locale files.
Sure? you have run it as root
or using sudo
:
sudo locale-gen --purge en_US
Because it doesn't raise any error if you run it as regular user
Just do the following command if it is Ubuntu 18.04:
sudo apt-get purge -y language-pack-en-base