February 8, 2007 · General · Email This Post

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

For those of you who are used to running “dpkg-reconfigure locales” on Debian to select and generate locales you may be a bit disappointed at the seemingly broken way it is done under Ubuntu.

When I say broken “sudo dpkg-reconfigure locales” does not yield an interface that allows you to select and deselect locales. It simply generates the locales mentioned in “/var/lib/locales/supported.d/local” file. Therefore if you want to generate a bunch of locales you will need to add them to this file and re-run “dpkg-reconfigure locales”.

NOTE: One locale per line.

For a list of valid locales you can search through “/usr/share/i18n/SUPPORTED”.

This tip from here

  • Share/Save/Bookmark

Related Articles

3 Comments to “How to select and generate locales on Ubuntu”

  1. Ghislain LEVEQUE says:

    Great ! I was looking for that ! Thank you

  2. ’sudo’ should be used with the dpkg-reconfigure command (enabling the command to be issued as the super user).

    That kind of information should not be left out or assumed when you’re giving instructions on how to manipulate the base functioning of a system.

  3. admin says:

    @greg

    Thanks for your comment.I have updated the article.

Leave a Reply