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.
Edit the
LANGUAGE
variable to removewhatever language that needs removed
. Thenreboot
.After that you can run
localepurge
to remove old locale files.Sure? you have run it as
root
or usingsudo
: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: