89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.43k stars 385 forks source link

[Error] All locales are not generated in Debian 11 container #1399

Closed Boria138 closed 3 weeks ago

Boria138 commented 1 month ago

Describe the bug When I enter the locale -a command, I get this output

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
C
C.UTF-8
POSIX
en_US.utf8

In Fedora 40 I get an output with all locales that are available because of this, when trying to enter any other characters than English in Debian 11 I get “????”, but when I roll back to 1.6.0.1 the error disappears.

To Reproduce distrobox create debian --image debian:11

Expected behavior All locales are generated and everything works, or at least the user's locale is generated in addition to the English locale

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Boria138 commented 1 month ago

After generating the desired locale via

sudo dpkg-reconfigure locales 

All bugs related to the lack of locale were fixed

Boria138 commented 1 month ago

Just checked on arch linux rolling to an older version really helped, but in Fedora it doesn't, strange

Boria138 commented 1 month ago

Fixed this in https://github.com/89luca89/distrobox/pull/1404

89luca89 commented 3 weeks ago

Fixed in #1404 :)