Install new locales on Ubuntu
I’ve spent sometime trying to figure out how to install a locale that I need on one of my servers that runs Ubuntu 8.x. I try to find which package owns the needed file on my laptop that runs kubuntu, but it seems that the file ar not owned by no package.
After googling a bit I’ve found this solution:
1. Check the name of the needed locale:
$ grep es_ES /usr/share/i18n/SUPPORTED es_ES.UTF-8 UTF-8 es_ES ISO-8859-1 es_ES@euro ISO-8859-15
We want utf8 support, so…
2. Generate choosen locale:
$ sudo locale-gen es_ES.UTF-8 Generating locales... es_ES.UTF-8... done Generation complete.
3. Check it?
$ locale -a
C
en_US.utf8
es_ES
es_ES.utf8
POSIXThat’s all!

