Skip to content

Fix Locale Issue - Debian 12

Locale Issue Fix

After applying these three steps, the locale issue should be solved.

1. Generate the locales

sudo locale-gen

2. Modify the system's default locale

Open the locale configuration file:

sudo vim /etc/default/locale

Ensure it contains the following settings:

LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_ALL="en_US.UTF-8"

3. Restart the systemd-localed service

sudo systemctl restart systemd-localed

It didn't work?

Try exiting the shell and re-entering it, it should solve your issue.