Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1754  / 3 Years ago, tue, june 15, 2021, 2:34:14

I found, that on my home server, running Ubuntu Server 18.04, I've selected quite a few locales, I actually don't need. I only want en_US.UTF-8 and de_DE.UTF-8, since the whole system is configured to use only these.


So, first, I tried the "Debian way" by running dpkg-reconfigure locales and then deselected all besides the two I actually wanted. After that the system automatically regenerates the locales, but, unfortunately, more than I selected:


Generating locales (this might take a while)...
de_DE.UTF-8... done
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IL.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZM.UTF-8... done
en_ZW.UTF-8... done

Then I tried directly editing /etc/locale.gen, but it's all fine in there, since only the two I actually want are not commented out, so it should work. I've checked the file multiple times from top to bottom.


Still, running locale-gen manually, yields the same result as above.


So I wonder if this is a bug or a feature? Is the file maybe cached somewhere or is there another configuration file I'm not aware of? I've already tried restarting the system, but as expected, this didn't change anything.


More From » 18.04

 Answers
0

The many English locales are probably there because you installed the English language packs. You should see them by running:


cat /var/lib/locales/supported.d/en

So a way to make the list shorter is to remove the English language packs:


sudo apt purge language-pack-en language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base

[#2185] Wednesday, June 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ilityushing

Total Points: 18
Total Questions: 100
Total Answers: 113

Location: Senegal
Member since Wed, May 13, 2020
4 Years ago
ilityushing questions
Sat, Apr 1, 23, 03:07, 1 Year ago
Wed, Mar 2, 22, 12:25, 2 Years ago
Sun, Aug 15, 21, 18:44, 3 Years ago
Wed, Apr 6, 22, 00:57, 2 Years ago
;