-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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: selector 'glibc-locales' matches no derivations #183960
Comments
Are you sure that It's not included in glibc as far as I can tell:
As an aside, you don't need to configure Edit: I do see that there are some translations for it in some packages:
If you want to use those you should configure the |
Hey, thanks for your answer. I don't particularly want to use en_AT, I'm not sure why it is being set. Even when I set LC_TIME to "en_US.UTF-8" in extraLocaleSettings it seems to be set to en_AT. You're also right about en_US without UTF-8, that was just me trying to cargo-cult my way out of this. But without this (or for that matter, no locale settings in my config) I still get the |
Have you tried rebooting, or just unsetting |
After reboot forcing LC_TIME does work and indeed seems to fix the problem. I guess the en_AT is indeed not working. Thanks a lot! |
I was a bit too optimistic - the error is still showing when I |
If you reduce your locale settings down to just Because you're probably currently booted in the old broken configuration, something that you can verify by checking the contents of Edit2: Edit: or you could try booting the even older, but it should have been working generation? before you tried to change your locale settings and things blew up, and then do a |
Only setting defaultLocale (followed by
and a bit more errors when doing a rebuild (after reboot - any commands that invokes perl gives this, I just use nixos-rebuild switch as an example):
I should clarify this was broken before I started changing the locale settings - otherwise I would not have touched them. There is no working generation to fall back to, AFAIK this was broken on my fresh install. Curiously, locale.conf looks fine (?)
|
The warnings don't really matter, they're just perl complaining because More importantly, to see exactly what part of the activation script outputs the error, could you try running Though before doing that, it's probably worth seeing if
Points to something that exists. |
This seems to point at something
The strace:
|
Sorry, I should have probably specified with Anyway, if The only thing that comes to mind is that this is caused by something like the activation script doing a If you reboot now, as you noted, your current locale.conf looks good, and so you'd think that things should™ work. |
https://gist.github.com/tmnvanderberg/f55b51e4ab0cc8bc441e2e7317028eb3 It's quite a dump. Rebooting doesn't help unfortunately. |
Yeah, I'm at a bit of a loss... You can see the error message here: https://github.com/NixOS/nix/blob/17e54a602ef2a767ae3fe5d8789bc4658f439c37/src/nix-env/nix-env.cc#L230 The strace unfortunately doesn't help that much given that the error message isn't captured. Though that does point to your users service manager as a possible culprit, but we could have also found that by simply having a look at the relevant part of the activation script:
Late night edit: you might also want to check that the contents of your nix store isn't in a bad state with something like |
Notice I overlooked this yesterday.
If this really was always broken your best bet might be to boot an up to date install medium and run Unless someone with deeper knowledge ends up sweeping in and saving the day that is. |
(click to open some confused analysis)Could the errors be related to: I have two machines with near identical configuration (and no intentional changes in locale config AFAICT). $ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 5.15.59, NixOS, 22.11 (Raccoon), 22.11pre398503.4bdf4169ad2`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.10.3`
- channels(root): `"nixos"`
- channels(eddy): `"home-manager"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
$ env | grep -i locale
LOCALE_ARCHIVE_2_27=/nix/store/s3bf05my50y37v88mm6krs1x4s7399rn-glibc-locales-2.35-163/lib/locale/locale-archive
LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive Note the The path does seem to be present on both machines, and if I set it the right value, I have no idea what sets that env var, if I'm going to lose it next time I upgrade, etc. Nevermind, did more testing, I'm pretty sure I was only affected by this: It only just so happens that I only have |
Describe the bug
While running
nixos-rebuild switch
i get the following output:Also, whenever I open a terminal I get
Steps To Reproduce
Run
sudo nixos-rebuild switch
with my config.Expected behavior
Locales not broken :)
Additional context
I tried the following to no effect. Also some combination of similar settings, as you can see in my config linked above..
Removing all packages does not fix the error.
Locale looks like this:
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: