Issue with resolveconf when upgrading

Hello- I’m trying to upgrade my system and stuck on this issue:

May 19 10:14:31 nixos systemd[1]: Starting resolvconf update...
May 19 10:14:31 nixos resolvconf-start[3667179]: /nix/store/xricrkqhi694h0nvl6hq55nkiza7zy0k-openresolv-3.13.2/libexec/resolvconf/libc: line 246: /etc/resolv.conf: Operation not permitted
May 19 10:14:31 nixos resolvconf-start[3667211]: chgrp: changing group of '/etc/resolv.conf': Operation not permitted
May 19 10:14:31 nixos systemd[1]: resolvconf.service: Main process exited, code=exited, status=1/FAILURE
May 19 10:14:31 nixos systemd[1]: resolvconf.service: Failed with result 'exit-code'.
May 19 10:14:31 nixos systemd[1]: Failed to start resolvconf update.

Does anyone have any idea how to fix this?

System info:

  • system: "x86_64-linux"
  • host os: Linux 6.12.7, NixOS, 24.11 (Vicuna), 24.11.718103.74b4de8529c4
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.14
  • channels(root): "nixos-24.11-small"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

I worked around this by removing the immutable flag from the file:

chattr -i /etc/resolv.conf

not sure how or why it became immutable, and I feel like this isn’t the declarative nix way to do this, but it seems to be working now :person_shrugging:

1 Like