locale-gen with purge does not work
- Clean /usr/lib/locale/ (delete everything, do a backup if you are afraid).
- Delete unneeded locale from /etc/default/locale file (do not delete this file, edit and delete the locales)
- Delete unneeded locale from /var/lib/locales/supported.d/* files (do not delete this files, edit them and delete the locales)
- Regenerate locales (locale-gen --purge).
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