Can't find what's incorrectly referencing "utillinux" instead of "util-linux"

Hello!

When running “sudo nixos-rebuild switch --flake /etc/nixos#default” I’m getting this error message:

building the system configuration...
warning: Git tree '/etc/nixos' is dirty
error:
       … while calling the 'head' builtin
         at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1575:11:
         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'
         at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts.etc.text':

       … while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/etc/etc-activation.nix':

       … while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/etc/etc.nix':

       … while evaluating the option `environment.etc.dbus-1.source':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: 'utillinux' has been renamed to/replaced by 'util-linux'

When I run this command trying to find where I’m calling utillinux: “grep -r “utillinux” /etc/nixos”

I find nothing. Would anyone know where this error could be from? Maybe it’s a dependency? Here’s the “–show-trace” btw: warning: Git tree '/etc/nixos' is dirtybuilding the system configuration...w - Pastebin.com

I’m getting the exact same thing and I don’t have any references to utillinux…

Once aliases: keep the `utillinux` alias until `node2nix` is phased out by samueltardieu · Pull Request #349783 · NixOS/nixpkgs · GitHub is in nixos-unstable it’ll be fixed

https://nixpk.gs/pr-tracker.html?pr=349783

From the strace it looks like apostrophe is the cause because it depends on nodePackages.mathjax

Oh. I thought this was the problem:
utillinux = if pkgs ? utillinux then pkgs.utillinux else pkgs.util-linux;

in “node-env.nix”
So I changed it to:
utillinux = if (pkgs ? utillinux) && (builtins.tryEval pkgs.utillinux).success then pkgs.utillinux else pkgs.util-linux;

and I thought that would do the trick…

Did you get any solution…I’m also stuck here

utillinux = if pkgs ? util-linux then pkgs.util-linux else pkgs.utillinux;

Please tell me where do i apply this fix so that nixos-rebuild works

1 Like

This issue will be fixed in the next channel update. In the meantime you can rollback your channel.

I just removed the apostrophe package because it was easier, FYI to anyone reading, considering the util-linux change was on the 19th, you may need to switch to something before then. Good luck!