Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I got a new server but unfortunately the hoster only installs me Ubuntu 8.04 in german.

So the upgrade worked smoothly, but now I am trying to change the system to english.

I adapted /etc/environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LANG="en_us.UTF-8"
LANGUAGE="de_DE:en_US:de_LU:de_CH:de_BE:de_AT"

And after searching forums I installed update-locale which generated the file /etc/default/locale

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LANG="en_us.UTF-8"
LANGUAGE="de_DE:en_US:de_LU:de_CH:de_BE:de_AT"

(this is the file i commonly remember from debian systems to hold the locale)

then i did dpkg-reconfigure locales which configured all the locales and after log out and relogin almost everything was in english.

almost

the welcome messages is. the programs come in english. but for example apt is not:

prag341:~# apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut       
Status-Informationen einlesen... Fertig
Die folgenden Pakete werden aktualisiert:
  linux-image-generic
1 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 4,346B an Archiven heruntergeladen werden.
Nach dieser Operation werden 0B Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]? 

which is a very bad thing because then the default arguments Y/N become exchanged by J/N etc.

How can i correctly change the locale to default us english in uft8 as if i had installed it from the beginnig?

share|improve this question
    
Have a look at this link: help.ubuntu.com/community/Locale. –  Khaled Jan 29 '11 at 12:03
    
thats what i already looked like. one file did not exist in the first place and was added be update-locale. i configured both accordintly –  The Shurrican Jan 29 '11 at 12:13

1 Answer 1

up vote 5 down vote accepted

You're very close! You just need to change your preferred language list

From this

LANGUAGE="de_DE:en_US:de_LU:de_CH:de_BE:de_AT"

To this

LANGUAGE="en_US"

Once this is done reboot your server and all the system languages should be in English

share|improve this answer
    
thanks! it worked. but can you explain why? i just re arranged them and put en_us in the front. why did that not work?? –  The Shurrican Jan 29 '11 at 13:56
    
No need to reboot, you can do export LANGUAGE="en_US" in the command line or just source /etc/profile right? May not be applied for all programs but apt-get was in English after I did that –  Sam Stoelinga Jun 15 '12 at 6:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.