[SOLVED] Locales were not being generated by dpkg-reconfigure locales on Debian
Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Locales were not being generated by dpkg-reconfigure locales on Debian
Hey, it's my first post, but I've been lurking here for a while and found a lot of solutions for my previous questions. Now I've been having a question according to locales on Debian Buster, release 10.12.
I have solved my problem by running sudo apt-get install locales. But one question - what is sudo dpkg-reconfigure locales actually doing? Somebody said (somewhere else on the internet), that it is generating chosen locales. But for me - it wasn't doing anything. The locales were nowhere to be found on the system, thus those lines were popping up:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
After running the command once again (sudo dpkg-reconfigure locales) - after installing them by apt-get install of course, and by choosing en_US.UTF-8 in the dpkg-reconfigure locales GUI, a message popped up:
Which is understandable. I have just downloaded a package with all of the locales. So why dpkg-reconfigure locales didn't generate it first? Is it doing the same thing as apt-get install locales-all? But just installing certain locales, not all of them?
Very good question, but isn't really related to programming: it would fit better into some Debian-specific forum. Nonetheless, you can find out what scripts in some *.deb package do, if you unpack the package with `ar x <somepackagefile.deb>` (Midnight Commander is able to 'enter' into *.deb files, too.)
Very good question, but isn't really related to programming: it would fit better into some Debian-specific forum. Nonetheless, you can find out what scripts in some *.deb package do, if you unpack the package with `ar x <somepackagefile.deb>` (Midnight Commander is able to 'enter' into *.deb files, too.)
Holy. I'm so sorry. I've somehow posted in that section, but it was supposed to land in Linux - Newbie corner. Probably because I was lurking this section and somehow swapped cards with the correct one. Can I ask someone here for moving that thread?
You're right. I didn't ask for a solution since it works now, but after uncommenting some of these lines, it has generated required locales. So I could do that by editing locale.gen and using locale-gen command, or by using dpkg-reconfigure locales and previously uncommenting lines in locale.gen, OR by installing all of the locales by installing locales-all package, right?
I guess this solves the problem. I have checked now dpkg-reconfigure locales, and after generating those - it has those previously generated with locale-gen marked with an asterisk. Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.