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

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

Closed
2 tasks done
elmarsto opened this issue Oct 22, 2024 · 20 comments
Closed
2 tasks done

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

elmarsto opened this issue Oct 22, 2024 · 20 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@elmarsto
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

flake-based config ran fine until build today. Last build was a week ago, maybe two. Did nix flake update (this is flake-based build) and then home-manager switch --flake. Got:

image

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
- host os: `Linux 6.6.53, NixOS, 24.11 (Vicuna), 24.11.20241020.1997e4a`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.24.9`
- channels(lattice): `""`
- channels(root): `"nixos-23.11"`
- nixpkgs: `/etc/nix/path/nixpkgs`
@elmarsto elmarsto added bug triage Issues or feature request that have not been triaged yet labels Oct 22, 2024
@robhanlon22
Copy link

This is an upstream issue with the node-env package in nixpkgs. I was able to work around this in my flake by pointing nixpkgs to nixpkgs-unstable.

@robhanlon22
Copy link

NixOS/nixpkgs#349783

@elmarsto
Copy link
Author

@robhanlon22 my nixpkgs is nixpkgs-unstable:

image

@elmarsto
Copy link
Author

I guess I'll wait for the upstream fix and see what shakes in a day or two.

@robhanlon22
Copy link

robhanlon22 commented Oct 22, 2024

@elmarsto you’re on nixos-unstable, which lags behind nixpkgs-unstable.

@kyp0717
Copy link

kyp0717 commented Oct 23, 2024

@robhanlon22 Thank you! That was it! Make sure you are referencing nixpkgs-unstable NOT nixos-unstable.

@robhanlon22
Copy link

They’re so easy to mix up!

@pinpox
Copy link
Contributor

pinpox commented Oct 23, 2024

Note that running from nixpkgs-unstable is quite adventurous and not something I would recommend long-term.

@M4RC3L05
Copy link

Hey, I am facing the same error but I am not using flakes I did the standalone install, what should I do in my case?

@pinpox
Copy link
Contributor

pinpox commented Oct 23, 2024

You can create an overlay with an alias to the old package name until the fix has reached your nixpkgs branch. Something long these lines should work:

    nixpkgs.overlays = [ (self: super: { utillinux = super.util-linux; })];

@M4RC3L05
Copy link

Thx will try

@M4RC3L05
Copy link

Hey, it not did it for me

{
  config,
  pkgs,
  lib,
  ...
}:
let
  nixgl = import <nixgl> { };
  nixpkgsUnstable = import <nixpkgs-unstable> { };
in
{
  nixpkgs.overlays = [
    (self: super: {
      utillinux = super.util-linux;
    })
  ];
  ...
}

But doing home-manager switch still get the error error: 'utillinux' has been renamed to/replaced by 'util-linux'.

Tried to use nixpkgsUnstable.util-linux instead of super.util-linux, but it did not work either.

Still a bit noob with the hole nix and home-manager stuff, so please bear with me.

@Yohh
Copy link

Yohh commented Oct 23, 2024

Hey, it not did it for me

{
  config,
  pkgs,
  lib,
  ...
}:
let
  nixgl = import <nixgl> { };
  nixpkgsUnstable = import <nixpkgs-unstable> { };
in
{
  nixpkgs.overlays = [
    (self: super: {
      utillinux = super.util-linux;
    })
  ];
  ...
}

But doing home-manager switch still get the error error: 'utillinux' has been renamed to/replaced by 'util-linux'.

Tried to use nixpkgsUnstable.util-linux instead of super.util-linux, but it did not work either.

Still a bit noob with the hole nix and home-manager stuff, so please bear with me.

worked for me by adding it in configuration.nix

@M4RC3L05
Copy link

M4RC3L05 commented Oct 23, 2024

I am on arch linux and i only have a home.nix file with the contents i posted above. Do i need to do something extra since i am not using nixos?

@Yohh
Copy link

Yohh commented Oct 23, 2024

not sure, but you should have at least a configuration module called by your flake (same as your home-manager), that's the way I installed it on a macbook, it seems this is where you should add it

@M4RC3L05
Copy link

I do not use flakes, i did the standalone installation, after installing nix using the single-user installation.

@Yohh
Copy link

Yohh commented Oct 23, 2024

and you don't have any ~/.nixpgs/configuration.nix? if not I m sorry, that's outside of my skills

@M4RC3L05
Copy link

nope, no file there

@JonnieCache
Copy link

JonnieCache commented Oct 23, 2024

I managed to fix this using the overlay given above by following this material:

https://nixos-and-flakes.thiscute.world/nixpkgs/overlays

I had to create a separate module, I couldn't find a place to drop the snippet directly into my flake.nix.

manuelbb-upb added a commit to manuelbb-upb/nixos that referenced this issue Oct 23, 2024
Set `nixpkgs` to follow `nixpkgs-unstable` instead of `nixos-unstable`
due to nix-community/home-manager#5991, caused
by NixOS/nixpkgs@a9e1f4e
reverted by NixOS/nixpkgs#349783
Should eventually be fixed in home-manager itself.

Also pointed scientific-fhs to my fork:
* new Julia versions
* work around olynch/scientific-fhs#20
manuelbb-upb added a commit to manuelbb-upb/nixos that referenced this issue Oct 23, 2024
Set `nixpkgs` to follow `nixpkgs-unstable` instead of `nixos-unstable`
due to nix-community/home-manager#5991, caused
by NixOS/nixpkgs@a9e1f4e
reverted by NixOS/nixpkgs#349783
Should eventually be fixed in home-manager itself.

Also pointed `scientific-fhs` to my fork:
* new Julia versions
* work around olynch/scientific-fhs#20

Everything caused because I need this pull request
catppuccin/nix#358
for KDE theming.
NireBryce added a commit to NireBryce/nixos-configs that referenced this issue Oct 24, 2024
…a depedency is broken thanks to utillinux being renamed to util-linux
@rycee
Copy link
Member

rycee commented Oct 24, 2024

Home Manager itself has no reference to utillinux, so I think this can be closed. Any problem you encounter w.r.t utillinux will be due to something external to HM.

@rycee rycee closed this as completed Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

10 participants