Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-19-2007, 10:52 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Advice (not a question) on locale config for ubuntu/debian. Specially for de (german)

I've had trouble getting the locale set up on various new servers I have had to configure. For some reason, it seems the latest debian (4, etch, or whatever it is called) is not so nice in this respect, especially if you are configuring for something other than us_EN.

I'm used to doing dpkg-reconfigure localeconf and everything works, but not anymore.

But I seem to have resolved my issues. So, in case this helps anyone, I will post my notes on getting the locale configured for a new debian/ubuntu box. (The thing that used to work with dpkg-reconfigure localedonf, but doesn't anymore.)

There are probably some mistakes here, I didn't edit it so well. Sorry, but hopefully still some help.


Sorry the following "instructions" are a bit impressionistic. I'm not completely clear what got the environment sorted out, and I've run out of places to test it. But do something along these lines, and you'll probably be okay.

Debian / Ubuntu

de_DE@euro env var should be:

duo2:~# echo de_DE@euro

You may need to change /etc/environment to achieve this, then log out and log back in.

duo2:~# cat /etc/environment

You should be able to run the following command without errors

$ perl -e

Hopefully de_DE@euro is already configured as locale. But if not try

dpkg-reconfigure localeconf
dpkg-reconfigure locales

If that fails, try

apt-get install localeconf
apt-get install locales

and then try dpkg-reconfigure again.

In dpkg-reconfigure, you get some interactive menus

For default system locale. choose: de_DE@euro ISO-8859-15
Environment settings that should override the default locale: LC_MESSAGES (so star this and nothing else)
default system message locale: de_DE@euro ISO-8859-15
(or on some systems, en_IE@euro ISO-8859-15 also seems to work.
why sometimes de_DE and sometimes en_IE? don't know.

The above configuration steps seem to have changed with later versions of debian/ubuntu. The process has gotten simpler. (Fewer screens to fill out.)

Other impressionistic tips:

# not sure this is really necessary
# $ apt-get install language-pack-de-base language-pack-en-base
# $ pico /etc/environment
# LANG und LC_MESSAGES setzen (sofern LC_MESSAGES ne andere sprache als LANG sein soll)
# dpkg-reconfigure locales

Good luck, pilgrim.
Old 02-19-2007, 11:26 AM   #2
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 56
I use this
It sets the proper things in /etc/environment.
The best is to use UTF8 if your applications support it (because a good part of etch does support utf8).

my /etc/environment:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Official German Ubuntu Boxed Set From Open Source Press LXer Syndicated Linux News 0 05-21-2006 09:33 AM
ubuntu goof needs debian question answered aquaboot Debian 2 10-14-2005 12:43 PM
Yahoo IM, AOL IM and a few other packages, plus Debian and Ubuntu question webwolf70 Ubuntu 5 05-11-2005 11:30 AM
new debian user. need help with scim and locale. damienduff Debian 2 04-05-2005 01:16 PM
Debian - Network Config Question ptesone Linux - Networking 4 04-04-2004 11:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration