Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Boria138 opened this issue May 19, 2024 · 4 comments
Closed

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

Boria138 opened this issue May 19, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Boria138
Copy link
Contributor

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):

  • Are you using podman, docker or lilipod? : podman
  • Which version or podman, docker or lilipod?: 5.0.3-1
  • Which version of distrobox? :1.7.2.1-1
  • Which host distribution?: Arch Linux
  • How did you install distrobox?: From repo

Additional context
Add any other context about the problem here.

@Boria138 Boria138 added the bug Something isn't working label May 19, 2024
@Boria138
Copy link
Contributor Author

After generating the desired locale via

sudo dpkg-reconfigure locales 

All bugs related to the lack of locale were fixed

@Boria138
Copy link
Contributor Author

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

Boria138 added a commit to Boria138/distrobox that referenced this issue May 22, 2024
Boria138 added a commit to Boria138/distrobox that referenced this issue May 22, 2024
Boria138 added a commit to Boria138/distrobox that referenced this issue May 22, 2024
@Boria138
Copy link
Contributor Author

Fixed this in #1404

89luca89 added a commit that referenced this issue Jun 18, 2024
* Generate host locales in container (fixed issue #1399)

* init: add fallback values for lang variables

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>

* init: fix linting

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>

---------

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Co-authored-by: Luca Di Maio <luca.dimaio1@gmail.com>
@89luca89
Copy link
Owner

Fixed in #1404 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants