Change locales on Reform

I don’t know if questions about the operating system that are not directly related to the reform are also answered here.

In any case, I made a mistake when converting locales to de_DE.UTF-8.

First, I tried:

“sudo dpkg-reconfigure locales,” then:

“sudo locale-gen de_DE.UTF-8 && update-locale LANG=de_DE.UTF-8”

Since then, the following has been appearing in the terminal:

bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory

I am at my wit’s end with my already limited knowledge and would be grateful for any help.

Micha

The commands you ran generate the locale data. You set the locale per process via environment variables. One such process is bash and it sources the environment variables from a variety of places like /etc/profile.d or your ~/.bashrc.

What is your output of:

env | grep "^LC_"

You will probably see various variables starting with LC_ being set for your bash and you have to figure out who sets them. You can have a look at the locations I mentioned above or you could even grep your /etc or $HOME to find who still has these variables set to en_US.UTF8

Often they are. :slight_smile:

Hi Josch,

micha@mntremk:~$ env | grep "^LC_"
micha@mntremk:~$ 

Micha

It would help to know what you have to do to get his output:

Because apparently your bash shell does not know about these environment variables.

These messages appear in the terminal without me doing anything when I open it. So I start bash and the message is there.

When I delete the text in the terminal with “clear,” close it with “exit,” and restart it with SUPER+ENTER, the message reappears.