Having Issue doing a nixos-rebuild switch

Hi, I would love to get some help. I’ve just ran the following:

sudo nixos-channel --update
sudo nixos-rebuild switch

the following error came up indicating that the gnome-initial-setup-45.0 does not exists. My nix configuration has not changed since I’ve updated it from 23.05

  /nix/store/b62cc81jnqf6yby59dgq5m7fpijanrx4-nixos-tmpfiles.d.drv
  /nix/store/q6pimv8iqhjmmvc5cjwd87bbgh2p75ii-tmpfiles.d.drv
  /nix/store/z446bc1h249k1xfi698p8sq6vcsgsv0x-set-environment.drv
  /nix/store/r1pinhdj86g9hiyb5kkm6vvwasix9r4p-etc-profile.drv
  /nix/store/2jkrpr1cyyzpwv0v1ihgh677ih7bpq5a-unit-docker.service.drv
  /nix/store/c437dlyjz2p86w4nlqsp2ff5n019gwcz-unit-dbus.service.drv
  /nix/store/rdpj4b5wyqsjgc1nal9dq8nqzxdfyx24-user-units.drv
  /nix/store/gqf1x19s93fryzih4hyr58padcdw19pn-thunderbird-115.5.1.drv
  /nix/store/yv4m10k6z7gp2p164j5dbfn0mi85hsx3-user-environment.drv
  /nix/store/yzh7sb07fm475sjjx7kf13xlhl9wpv5d-etc-pam-environment.drv
  /nix/store/234l72psfkpxvcbcb3z950a33f4qpln2-etc.drv
  /nix/store/scgscsicw97q2z4r61mxz4qyyizga6yf-linux-6.1.69-modules.drv
  /nix/store/mc227ngg0bi5i7skkcg6vcba8d8c9wpg-linux-6.1.69-modules-shrunk.drv
  /nix/store/q3qj1amw5lapx296z5h62gj4gf94y29v-initrd-linux-6.1.69.drv
  /nix/store/41g1m0lwyk0c5nhkclca0qpvgk49qj02-boot.json.drv
  /nix/store/yv6qpls0fqph55sdndxxdq6qi8vnckjl-kernel-modules.drv
  /nix/store/6vnfck9l0zbla4n2423icvxs7v3ridji-nixos-system-Dads-NixOS-23.11.2217.d02d818f22c7.drv
this path will be fetched (96.76 MiB download, 600.21 MiB unpacked):
  /nix/store/18xjrgzqnm0dhphcqhbk3jkmxmgams0z-linux-6.1.69-dev
building '/nix/store/2jkrpr1cyyzpwv0v1ihgh677ih7bpq5a-unit-docker.service.drv'...
building '/nix/store/ll1hf19zwhhmhnfvqacvs55xcviwcg7x-unit-docker.service.drv'...
building '/nix/store/cx1c6ml6rvah3rv7s2igq1vk5clywh6s-python3.12-3.12.1-doc.drv'...
error: getting status of '/nix/store/6r5v724ynnpa86q9x5v3vhmbqkmkd993-gnome-initial-setup-45.0': No such file or directory

Hm, is your store corrupted? Does nix-store --verify --check-contents help?

If not, can we get your system info?

nix-shell -p nix-info --run "nix-info -m"
1 Like

Hi @TLATER Thanks for the advice. I ened up running:

sudo nix-store --verify --check-contents --repair

I guess my packages were corrupted somehow and the verify and repair did the trick. Thanks for the help.

2 Likes