-
Notifications
You must be signed in to change notification settings - Fork 446
[Error] Failed to set locale error on Fedora image #258
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
Comments
Oh, wow, the fedora image seems to be missing systemd altogether. That might cause it, I guess :) |
So the same issue is present in the Spoke too soon: Oddly, I also cannot run any systemd commands in the I get (e.g.):
I have no such problems with container based on the Ubuntu image. Is there room here for Distrobox to do better than toolbox and fix this during container initialisation? |
From inside the container:
Related: containers/toolbox#60 |
Solution: From within the Fedora container:
This installs the full English language pack (instead of the minimal) – about a 3MB download (so not huge). You can also install Please feel free to close this issue unless you feel Distrobox can do something here during container initialisation to improve this experience. |
Hi @aral thanks for the report! Problem here is that... well I can't reproduce it 😞 Here are 2 examples with fedora-toolbox image and with a normal fedora image: In both cases, locale is:
|
@89luca89 I believe this happens when the locale of your base system is anything but the base language. I’m assuming the base OS (running in a VM) has its locale set to |
No my base OS has:
|
Thinking of it, are you exporting LC_* stuff inside dotfiles or something like that? that may be the reason 🤔 |
@89luca89 Hah, interesting… and no, not that I know of. You know what, I wouldn’t worry too much about it. Feel free to close this issue for now. It’s documented really well here. If someone else runs into it they (a) have a workaround (b) might be able to get us to narrow it down further. It’s probably not worth wasting your time over at the moment :) |
Cool, thanks for the discussion! |
I just wanted to comment that I had this issue also, today, on the default Fedora 38 image. Just installing
|
Summary
When you install a Fedora image (:latest) with Distrobox, running commands that require a locale to be set (e.g., dnf) show a warning.
To Reproduce
dnf --version
What should happen
You should see the version string.
What actually happens
It appears that
localectl
is also not present in the container.Proposed solution
Set the locale of the image when configuring it (to match the locale of the host).
Desktop (please complete the following information):
Additional context
Note that the locale on the host system is set properly.
🔒 ~ 5m 41s ❯ localectl System Locale: LANG=en_IE.UTF-8 VC Keymap: us-mac X11 Layout: us X11 Variant: mac
The text was updated successfully, but these errors were encountered: