I’m suddenly unable to rebuild my configuration.nix. The only thing I did was add cron to systemPackages.
Here is the error I’m getting:
$ sudo nixos-rebuild switch --upgrade-all
[sudo] password for [user]:
unpacking channels...
unpacking channels...
this derivation will be built:
/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv
building '/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv'...
/nix/store/ymi8xq5lxkjhyhk6sfb5d32nkbqz9pvg-substitute.sh: line 23: installManPage: command not found
error: builder for '/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv' failed with exit code 127
building Nix...
building the system configuration...
these 30 derivations will be built:
...
error: builder for '/nix/store/jxj95vsq0apyijlcqz3w2qwliwsrsxl5-nixos-install.drv' failed with exit code 127
error: builder for '/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv' failed with exit code 127
error: 1 dependencies of derivation '/nix/store/bwy1gyilsjs365afr0026j74h48mfgl4-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q2b9f0pz0pna0q3n7p7ax39l4z8f9nzj-unit-script-nixos-upgrade-start.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i5xqlnj7q1hwqcr6jl4gb1b2gvw5q1dp-nixos-system-thinkpad-24.05.6122.080166c15633.drv' failed to build
In the process of trying to fix this, one post included a garbage collection so I’ve lost my generations history – but between the last few generations the linux kernel toggled between 6.6.57 and 6.6.58 a couple of times. That’s the only other thing (besides adding cron) that I’m aware was changed.
Generation Build-date NixOS version Kernel Configuration Revision Specialisation
223 current 2024-10-27 06:21:02 24.05.5993.cd3e8833d706 6.6.58
Any help or suggestions would be greatly appreciated.
…if I include the --show-trace flag, I get more errors (and more derivations attempting to build):
$ sudo nixos-rebuild switch --upgrade-all --show-trace
unpacking channels...
unpacking channels...
this derivation will be built:
/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv
building '/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv'...
/nix/store/ymi8xq5lxkjhyhk6sfb5d32nkbqz9pvg-substitute.sh: line 23: installManPage: command not found
error: builder for '/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv' failed with exit code 127
building Nix...
building the system configuration...
these 66 derivations will be built:
/nix/store/01ah95l0rr1hr3yr4syr402win5356g9-string-hosts.drv
/nix/store/0f2636n8wwn1gmvvqmx1sw1y1aamzxmj-unit-gdm.service-disabled.drv
/nix/store/107ivzyfghdrdcacj4ci3lq9287ynzxh-nixos-manual-html.drv
/nix/store/14xqw0hxgp9zq49qh2ay0470jf6iasg0-shutdown-ramfs-contents.drv
/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv
/nix/store/q2b9f0pz0pna0q3n7p7ax39l4z8f9nzj-unit-script-nixos-upgrade-start.drv
/nix/store/3h9697jy3znzkwahafx7ygv9h52z4q6y-unit-nixos-upgrade.service.drv
/nix/store/vp2nmzlaq3a05fs4szi0dpg1jvnmcika-systemd-boot.drv
/nix/store/47ng1nqgnd9daprm5l5smnrj8pz4g7xd-install-systemd-boot.sh.drv
/nix/store/4j4aim045phny9vyhnhb8lbgfyfjr6s0-udev-rules.drv
/nix/store/iw6abs9sp1mmlvr6v7i5rk5wnkd1g6di-nixos-version.drv
/nix/store/yll32hrgvh5x3m3v8qz6dyn3ah0xqa84-torbrowser.desktop.drv
/nix/store/jnbi0qhmn80w5jqv0v0hpz68fh6cncyq-tor-browser-14.0.1.drv
/nix/store/jxj95vsq0apyijlcqz3w2qwliwsrsxl5-nixos-install.drv
/nix/store/sdzdg4w4y97rn2yvna1h33svzvmr928a-nixos-help.drv
/nix/store/zn28xwww1krl96s9mvclrpp7dyl8p2rl-nixos-help.drv
/nix/store/bwy1gyilsjs365afr0026j74h48mfgl4-system-path.drv
/nix/store/51hwxzbmkf485x3vp8qykwrzdy0bq6b8-unit-accounts-daemon.service.drv
/nix/store/i0g4wrgnza84fq1ci9q7g675hgdazzh3-gdm.drv
/nix/store/rmw9zg8bb5bf9308hxgdi849nvaiv4sv-gnome-initial-setup.drv
/nix/store/6rynqhp651qcw1n3nvbza2fvxjmn89jl-dconf-system-config.drv
/nix/store/7yvk0gcw66n9473j3rk6g3h2alkf8n6c-system-shutdown.drv
/nix/store/akf6l485q6b89rc8fhwlndnj9np93grs-tmpfiles.d.drv
/nix/store/sx3n4wmjfswxks55maja25i7hhrq37np-dbus-1.drv
/nix/store/ww6y2f3k1ix1wp5cgxny371c62xssni4-X-Restart-Triggers-dbus.drv
/nix/store/7998bz0cxdgkbainp2ik8xind5fvv75k-unit-dbus.service.drv
/nix/store/dh8cr1y8gyc0l39s7xkhng8yjdyq0ppx-user-units.drv
/nix/store/dhfjyr46pqd7zgsvjmsbzivzc25h6baq-nix.conf.drv
/nix/store/i3fvkwbp3yy7vjj9palsblyxva5x015g-hwdb.bin.drv
/nix/store/lh6mclm1ybhwsqd05sy5fqnr0jh4gmny-user-environment.drv
/nix/store/rv72wa9656f5jg4z4wc54fplqnf2llw4-fontconfig-etc.drv
/nix/store/dwqzbyjb8qh2lgfn92f13wzgw1wy4njw-desktops.drv
/nix/store/v25caljhgrlfid2q46grcafcckf84h10-etc-pam-environment.drv
/nix/store/vasrxjrcp4qm251l4bz6awf4xn1i3q7s-system-generators.drv
/nix/store/vfhzkj1fffj8sfcrwz6ssny9f7vwixxc-hosts.drv
/nix/store/xh75mgjslyjind4wrbxpnibxmzhk54v4-set-environment.drv
/nix/store/55qzi9lax3k9myx4vc933x36pdzbjcpf-unit-console-getty.service-disabled.drv
/nix/store/p2mi8bfldaa6l9q5hj21sb37caygn3cg-X-Restart-Triggers-systemd-tmpfiles-resetup.drv
/nix/store/59jwazqw99ca2q2x3zbmv55ilxlzizrk-unit-systemd-tmpfiles-resetup.service.drv
/nix/store/72swpkmi8mxzzzgxr4irpqy1yiz6crrb-unit-nix-optimise.service.drv
/nix/store/hb0y67pc3ds61fjmmn9kb74ar891xpbs-X-Restart-Triggers-polkit.drv
/nix/store/93ir7k81vy55x3d5s0mgy8cwc8qjdwii-unit-polkit.service.drv
/nix/store/9gwng3blfwwliafnn5z54q3bxmkq6kqq-unit-wireplumber.service-disabled.drv
/nix/store/ciwx2zp9g2qbdr581bvm1gdddcwrcw04-unit-generate-shutdown-ramfs.service.drv
/nix/store/lm0wb84963sa13cbi1mph7226p0jxnpg-nftables-rules.drv
/nix/store/dzv5z7m9z7k27k4jsas5hhyd58lrjhg5-unit-nftables.service.drv
/nix/store/gjzyrm351r1hinh1d0xgg134jsbqsfm8-unit-script-nix-gc-start.drv
/nix/store/g8rr65z4crjnxqkrwn4l20xl86pzf8pc-unit-nix-gc.service.drv
/nix/store/qrxffifhkmbdd15d81294vjrn4cx3f42-unit-script-display-manager-start.drv
/nix/store/hal27w6irmhfp63hdzzd8ib3jb79y1b4-unit-display-manager.service.drv
/nix/store/iiq8b1bcdkcn813njxadfnv1bksvvwa6-unit-pipewire.socket-disabled.drv
/nix/store/kxj7lbn6jp38drp0nxrqf48sd1icslnl-unit-pipewire.service-disabled.drv
/nix/store/ni65m9qz3jwmlr420ycdwmg0h2z7x3j1-unit-dbus.service.drv
/nix/store/sp61gadrl8bk1gmp9jkd7hchnx62khd1-X-Restart-Triggers-systemd-udevd.drv
/nix/store/sm3skp4dv5dpn0spdd5b6g59565kqyv7-unit-systemd-udevd.service.drv
/nix/store/67540milbgfx9s8dayqlgyg0czkq9n9g-X-Restart-Triggers-nix-daemon.drv
/nix/store/vl483x5qzgk94jifx5nv309kz5q25mz7-unit-nix-daemon.service.drv
/nix/store/xzpkg8hxkfm66jaw4i9n4370rbpz7hdg-system-units.drv
/nix/store/y6a0hvsi511fmsva5rpay0y1x55zic07-etc-profile.drv
/nix/store/528l4gzwd0jd8fl5rir8awsvr248l1qr-etc.drv
/nix/store/sd6m46yqxwa6kcvqpnb3rdcgph8kwns9-linux-6.6.58-modules.drv
/nix/store/a5qbg5kaylqr32dqb9sibhf9i5yi5mic-linux-6.6.58-modules-shrunk.drv
/nix/store/wrwvsy4pr5r0vwiasx0r5cv6mqn6mpcy-stage-1-init.sh.drv
/nix/store/llaxyg7gk1klzibiq9lg7kddlp708pvr-initrd-linux-6.6.58.drv
/nix/store/p00z5mmnkx0hccqj34wrr5h1frhip3wp-boot.json.drv
/nix/store/i5xqlnj7q1hwqcr6jl4gb1b2gvw5q1dp-nixos-system-thinkpad-24.05.6122.080166c15633.drv
these 61 paths will be fetched (494.99 MiB download, 1438.53 MiB unpacked):
/nix/store/4ibrw2afjwz5zfrvzf7dncbwv375c1dc-alsa-lib-1.2.11-dev
/nix/store/ibw76ifhbc8w9lza5176fkaws8v8yn32-auto-patchelf-hook
/nix/store/si9c1ncjikjq2hl5m8i6dzrfznmsz7g5-binutils-wrapper-2.41
/nix/store/w0k2k9x26wzv18c3zkvgcg3zqksq4mln-binutils-wrapper-2.41
/nix/store/s7274780s6jq33vmbjxkl0jbh5c1gz35-bisq-desktop-1.9.15
/nix/store/yihv7jjrjd17pwb8sz4vanqmas5bica8-bisq-tor
/nix/store/sla29qvjdiqh51z9jw0xxg3nqmx697qm-dbus-glib-0.112-dev
/nix/store/xp400zj9kmllwld23mvr37az864dzinb-documentation-highlighter
/nix/store/zkk5cnv8h35x69s2qwi4rgpyck7ijp3j-electron-32.1.1
/nix/store/q206v5dd3x9libh5s2lw2jg53gy6lvfk-electron-unwrapped-32.1.1
/nix/store/b3mcdijf2h98nzv4yn9d4kykqlbaabnq-element-desktop-1.11.82
/nix/store/k5s80gd9gx9g94k2zg8dkl4zv287mppk-expand-response-params
/nix/store/sf915hs92m1vksvh1dhf41klq3ch0s1l-expand-response-params
/nix/store/bclcvk7n5ylciimklhncpgwzb79nclsd-fc-00-nixos-cache.conf
/nix/store/jdmsfhl8dpk2lin37h2s76y3zr3bqhh5-fc-cache
/nix/store/y1ckj126c6686ndn60w9grms8z2brkv9-firefox-132.0
/nix/store/ixjwispzpi4pp7i1609rajhky949vrm5-firefox-unwrapped-132.0
/nix/store/4xp51rm65hgvll0iw7h6g9mg285dkqs0-fontconfig-conf
/nix/store/r6k305g2rn0qqkvdxfvzqg7mhh7rw679-gcc-wrapper-13.2.0
/nix/store/1llwdvihd19v0x5jz5x58rawq3kkpjny-gdm-46.2
/nix/store/9487rx05xg2nvn41bjxzb71ib4kqwyb6-gnome-browser-connector-42.1
/nix/store/ny81nwx919mxmdp4h0hxz97fb1amrkm4-gnome-control-center-46.2
/nix/store/ylfz18m89lcb3mh9yl1xpaly9n7dfvfw-gnome-gsettings-overrides
/nix/store/gpjn6l82sr0l41xq2kgmy4mlzy7dzzck-gnome-initial-setup-46.2
/nix/store/9kd2qk8jjw8yihb4bsndj4g5ihx8qpim-gnome-session-46.0
/nix/store/l6n183xkfr507zn1jf8zh7qcrwa43f1s-gnome-session-46.0-sessions
/nix/store/fn424130j8yjky1zacgkjkrja0z95d8l-gnome-shell-46.2
/nix/store/0x90crca9mrfazrn8y68fdhn0p3rhpwb-keymap
/nix/store/mrc745kh1db9fc3fwgyzf21lvr6wxkkv-kmod-31-dev
/nix/store/218hhm3cnpgfw81hw442ncanv2nwydid-libarchive-3.7.4-dev
/nix/store/nr5q12bcab7qnqwv9rc2z4s2i2jw1w57-libredirect-0
/nix/store/h70wvqfibwzbnaw19f907mgznh0sgsxc-link-units
/nix/store/qf8nbw2s6rchr7l63n3kjbwdxj1r4c4b-lkl-2022-08-08-lib
/nix/store/ifh7bm8n5syhka1kzirbaxyhf0ywcdjm-make-binary-wrapper-hook
/nix/store/550qbd6mwglsfl1kpbgdaqxjvq5y3pw6-make-shell-wrapper-hook
/nix/store/ydh90p60l5l7wq914qn76kfvc0xjgcfq-mutter-46.2
/nix/store/5mnx5pgchj5j8ynm82a9c99h5h157fkx-nixos-render-docs-0.0
/nix/store/js060hclsb55xmjasp2kzmy5070rdmd1-nixos-test-driver-docstrings
/nix/store/hryvppqpddlpb1va8liq13awq0g2apmg-nss-3.106
/nix/store/74vgi24ip5kqkbr79yh4kndsd9yfqfhs-nuke-references
/nix/store/6gra549czdh6r32dzbsj686n5zaq4282-options.json
/nix/store/c8livzcvaxq589mq6dgy3dbvziy37py4-options.json
/nix/store/7dwsrsqqp4cvdwwxlpadbk375z7xfdc1-patchelf-0.18.0-unstable-2024-01-15
/nix/store/vg326ppi4f7k00zcph0bg404h95k1126-python3-3.11.9-env
/nix/store/wwf1dzxiwsldwwc888hsz4rd2px6njd1-python3.11-markdown-it-py-3.0.0
/nix/store/l4ghpqszighn3rbrzzdxds1b92p9q7r8-python3.11-mdit-py-plugins-0.4.0
/nix/store/iv4rcz0m3sm469657m7azgsqpcm6n35y-python3.11-mdurl-0.1.2
/nix/store/x6w4yvg3f944a9m7xrmlb6a2q7xf99dq-python3.11-pyelftools-0.31
/nix/store/9qiy2hyyd4v96s9zwinhlf4q2ab1sazn-sparrow-modules-1.9.1
/nix/store/y73hypf74slfr0g5xrr8zjqc8r70g2rd-sparrow-unwrapped-1.9.1
/nix/store/479jddljb3spih04qb01qlyv39qb2zn9-stdenv-linux
/nix/store/wvkmvd1l3izbasb7qmfg93470c3vxzsf-systemd-default-tmpfiles
/nix/store/qyvz82c9asikwv1d3pgwvgdvb8bl0c96-texinfo-7.0.3
/nix/store/7i5qcshkq7brb8n0bxdkmb1vfm1pwbbc-tor-0.4.8.13
/nix/store/bvj9ifbansv4wc2m44b0w8clvbqqd348-udev-rules
/nix/store/31im4vmd4r0qyg431k6xcv8k400k6g7c-unifont-15.1.05
/nix/store/kqa6a9kkl8q0ndpigwf45al30j3qw7vx-wrap-gapps-hook
/nix/store/5c6v72vz13zljyrwcbwjz1ricvjr58kf-xf86-input-evdev-2.11.0
/nix/store/h3a533hiipngraha21wpgqyhf2wxag8x-xf86-input-libinput-1.5.0
/nix/store/6v3i4vjnxjjxjwliii937c8yd3r0vk8c-xserver.conf
/nix/store/l7wnw0wddygxypb57c7g7wfvvkvgqib2-xwayland-24.1.4
building '/nix/store/sd6m46yqxwa6kcvqpnb3rdcgph8kwns9-linux-6.6.58-modules.drv'...
copying path '/nix/store/qyvz82c9asikwv1d3pgwvgdvb8bl0c96-texinfo-7.0.3' from 'https://cache.nixos.org'...
copying path '/nix/store/7i5qcshkq7brb8n0bxdkmb1vfm1pwbbc-tor-0.4.8.13' from 'https://cache.nixos.org'...
copying path '/nix/store/5c6v72vz13zljyrwcbwjz1ricvjr58kf-xf86-input-evdev-2.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/h3a533hiipngraha21wpgqyhf2wxag8x-xf86-input-libinput-1.5.0' from 'https://cache.nixos.org'...
building '/nix/store/dhfjyr46pqd7zgsvjmsbzivzc25h6baq-nix.conf.drv'...
building '/nix/store/jxj95vsq0apyijlcqz3w2qwliwsrsxl5-nixos-install.drv'...
building '/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv'...
building '/nix/store/iw6abs9sp1mmlvr6v7i5rk5wnkd1g6di-nixos-version.drv'...
building '/nix/store/vp2nmzlaq3a05fs4szi0dpg1jvnmcika-systemd-boot.drv'...
copying path '/nix/store/4ibrw2afjwz5zfrvzf7dncbwv375c1dc-alsa-lib-1.2.11-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/sla29qvjdiqh51z9jw0xxg3nqmx697qm-dbus-glib-0.112-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/xp400zj9kmllwld23mvr37az864dzinb-documentation-highlighter' from 'https://cache.nixos.org'...
copying path '/nix/store/ylfz18m89lcb3mh9yl1xpaly9n7dfvfw-gnome-gsettings-overrides' from 'https://cache.nixos.org'...
copying path '/nix/store/0x90crca9mrfazrn8y68fdhn0p3rhpwb-keymap' from 'https://cache.nixos.org'...
copying path '/nix/store/h70wvqfibwzbnaw19f907mgznh0sgsxc-link-units' from 'https://cache.nixos.org'...
copying path '/nix/store/550qbd6mwglsfl1kpbgdaqxjvq5y3pw6-make-shell-wrapper-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/js060hclsb55xmjasp2kzmy5070rdmd1-nixos-test-driver-docstrings' from 'https://cache.nixos.org'...
copying path '/nix/store/6gra549czdh6r32dzbsj686n5zaq4282-options.json' from 'https://cache.nixos.org'...
copying path '/nix/store/c8livzcvaxq589mq6dgy3dbvziy37py4-options.json' from 'https://cache.nixos.org'...
copying path '/nix/store/7dwsrsqqp4cvdwwxlpadbk375z7xfdc1-patchelf-0.18.0-unstable-2024-01-15' from 'https://cache.nixos.org'...
copying path '/nix/store/9qiy2hyyd4v96s9zwinhlf4q2ab1sazn-sparrow-modules-1.9.1' from 'https://cache.nixos.org'...
building '/nix/store/i0g4wrgnza84fq1ci9q7g675hgdazzh3-gdm.drv'...
building '/nix/store/rmw9zg8bb5bf9308hxgdi849nvaiv4sv-gnome-initial-setup.drv'...
created 3 symlinks in user environment
kernel version is 6.6.58
Validating generated nix.conf
/nix/store/4vq3350zc6sqnibkqpgic2d6cvi1r9hq-substitute-all.sh: line 19: installManPage: command not found
/nix/store/ymi8xq5lxkjhyhk6sfb5d32nkbqz9pvg-substitute.sh: line 23: installManPage: command not found
/nix/store/4vq3350zc6sqnibkqpgic2d6cvi1r9hq-substitute-all.sh: line 19: installManPage: command not found
building '/nix/store/14xqw0hxgp9zq49qh2ay0470jf6iasg0-shutdown-ramfs-contents.drv'...
building '/nix/store/01ah95l0rr1hr3yr4syr402win5356g9-string-hosts.drv'...
error: builder for '/nix/store/jxj95vsq0apyijlcqz3w2qwliwsrsxl5-nixos-install.drv' failed with exit code 127
error: builder for '/nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv' failed with exit code 127
copying path '/nix/store/218hhm3cnpgfw81hw442ncanv2nwydid-libarchive-3.7.4-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/mrc745kh1db9fc3fwgyzf21lvr6wxkkv-kmod-31-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/nr5q12bcab7qnqwv9rc2z4s2i2jw1w57-libredirect-0' from 'https://cache.nixos.org'...
copying path '/nix/store/qf8nbw2s6rchr7l63n3kjbwdxj1r4c4b-lkl-2022-08-08-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/hryvppqpddlpb1va8liq13awq0g2apmg-nss-3.106' from 'https://cache.nixos.org'...
copying path '/nix/store/74vgi24ip5kqkbr79yh4kndsd9yfqfhs-nuke-references' from 'https://cache.nixos.org'...
copying path '/nix/store/wvkmvd1l3izbasb7qmfg93470c3vxzsf-systemd-default-tmpfiles' from 'https://cache.nixos.org'...
copying path '/nix/store/bvj9ifbansv4wc2m44b0w8clvbqqd348-udev-rules' from 'https://cache.nixos.org'...
copying path '/nix/store/31im4vmd4r0qyg431k6xcv8k400k6g7c-unifont-15.1.05' from 'https://cache.nixos.org'...
copying path '/nix/store/l7wnw0wddygxypb57c7g7wfvvkvgqib2-xwayland-24.1.4' from 'https://cache.nixos.org'...
error: 1 dependencies of derivation '/nix/store/bwy1gyilsjs365afr0026j74h48mfgl4-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q2b9f0pz0pna0q3n7p7ax39l4z8f9nzj-unit-script-nixos-upgrade-start.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i5xqlnj7q1hwqcr6jl4gb1b2gvw5q1dp-nixos-system-thinkpad-24.05.6122.080166c15633.drv' failed to build
TIA
Try running nix-store --verify
to check your system.
I’ve been able to build /nix/store/pbnjq8y0bdjz177125k0z3ngyjilnlv6-nixos-rebuild.drv
locally
1 Like
Thank you for responding! This is what I got:
$ nix-store --verify
reading the Nix store...
checking path existence...
path '/nix/store/8mvcwn96881p7v9zgjgl6n37128ppfig-armv6-no-ldrexd-strexd.patch' disappeared, removing from database...
path '/nix/store/bkky00l9i47dls8bbc4f7h0lnkgxqlka-e2fsprogs-1.47.0-info' disappeared, removing from database...
path '/nix/store/jsnsa7phpskwpi0fk569npwdvf5h3p1x-nixos' disappeared, removing from database...
path '/nix/store/k7nvyssicgjiw2hbpw5bh0swdica7bya-installed-tests-path.patch' disappeared, but it still has valid referrers!
warning: not all store errors were fixed
…I ran it again and got:
$ nix-store --verify
reading the Nix store...
checking path existence...
path '/nix/store/k7nvyssicgjiw2hbpw5bh0swdica7bya-installed-tests-path.patch' disappeared, but it still has valid referrers!
warning: not all store errors were fixed
You mentioned building nixos-rebuild locally – is that something I should try (and if so, could you give me a hint as to how)?
~~ edit ~~
…still won’t build, same error as above.
Try running nix-store --verify --check-contents --repair
to try and fix the issues, then run nixos-rebuild as before.
The verify operation will take longer as nix is checking the hash of all the files, however I suspect that more files have been corrupted.
1 Like
That did it! I hadn’t been able to rebuild for 11 days.
Thank you so much for your help!
=== detail ===
For the record, here were the results of that magical command:
$ sudo nix-store --verify --check-contents --repair
[sudo] password for contrafiat:
reading the Nix store...
checking path existence...
path '/nix/store/k7nvyssicgjiw2hbpw5bh0swdica7bya-installed-tests-path.patch' disappeared, but it still has valid referrers!
copying path '/nix/store/k7nvyssicgjiw2hbpw5bh0swdica7bya-installed-tests-path.patch' from 'https://cache.nixos.org'...
checking link hashes...
checking store hashes...
path '/nix/store/2pfhkrv67md33k8dhkfxrcz4c1gznl96-python3.11-grpcio-tools-1.59.0-dev' was modified! expected hash 'sha256:163d6gdyzg9x6xl1k9l95n3nwg9k288158f99518swy96sy79srg', got 'sha256:05s3hbrimj87q1jlv32qxxhiz9rv1vzjlhxry9kdg11pch4fi6dk'
copying path '/nix/store/2pfhkrv67md33k8dhkfxrcz4c1gznl96-python3.11-grpcio-tools-1.59.0-dev' from 'https://cache.nixos.org'...
path '/nix/store/3pcx96yxjg2wmlxaxfgq0xx3y2py2rry-qtdeclarative-5.15.12' was modified! expected hash 'sha256:0rgbgss2408dwrfsw6l3b7imz3yp0mhwhhh86dq8zm51qlgz4z6c', got 'sha256:02q9164g45p4cav27swqwq7wdwkwmzigby36pq6xq9ikpsjnp12c'
copying path '/nix/store/3pcx96yxjg2wmlxaxfgq0xx3y2py2rry-qtdeclarative-5.15.12' from 'https://cache.nixos.org'...
path '/nix/store/5y5arv2aqq9ixrb5l13whv16zgdy4cnq-install-shell-files' was modified! expected hash 'sha256:13mgmd98ygd3wfykdigqc3jv9p1dk5cjdclypcic763h6k7jnciv', got 'sha256:1v85arv9xfsp14d3cjl5snl91wvmvlr459wagwggjfqvcmvrxhdm'
copying path '/nix/store/5y5arv2aqq9ixrb5l13whv16zgdy4cnq-install-shell-files' from 'https://cache.nixos.org'...
path '/nix/store/68j2zjax7z317ak637lxk42gl4i4a2ql-qtbase-5.15.12-bin' was modified! expected hash 'sha256:0vkv5m5nzf2cmsclxy491x58822p0fvz4g5d9m8791gjzspiwx56', got 'sha256:0jzdmlwp85isx68yf3ni0ww1n4g3vh11sj6gig9ra6ldk7li113v'
copying path '/nix/store/68j2zjax7z317ak637lxk42gl4i4a2ql-qtbase-5.15.12-bin' from 'https://cache.nixos.org'...
path '/nix/store/6g1xilr5xa0l7ddbgvlsw8x250cnc7mp-qtsvg-5.15.12-bin' was modified! expected hash 'sha256:1sgz7mcawci9xs2mh1wyx3aiv114gwlc1x7qmbzg9nxxfjgxv99b', got 'sha256:0yvfmph1vsy7jzj131jq9ln0ghjy9gffbzza7vasnw5irmq96m1k'
copying path '/nix/store/6g1xilr5xa0l7ddbgvlsw8x250cnc7mp-qtsvg-5.15.12-bin' from 'https://cache.nixos.org'...
path '/nix/store/9yhibb5zxr763hbywwc8dkvvd765bjkp-qtbase-5.15.12' was modified! expected hash 'sha256:02cnwpl7i1y82g5a5xk4wmdmrwpv6mzzinwsfdkl9qxrhxpkm5br', got 'sha256:080p0pm0ry5jpsrn5bna80m7c3hbj3dcnkg8sl0zycpkzfdh5s4q'
copying path '/nix/store/9yhibb5zxr763hbywwc8dkvvd765bjkp-qtbase-5.15.12' from 'https://cache.nixos.org'...
path '/nix/store/a8nlgg9hsmyvqkvr1219ixh7z0mh4qcy-qtwayland-5.15.12' was modified! expected hash 'sha256:1g0pnr5pnpns1dq2wyfnfcqrv3vwni8pxwvhkds3d3k3bf9fkax8', got 'sha256:0jpm55bgsgx5d521zlyghgg3xl8q20sbslcvw9cfg2cknjlpn81h'
copying path '/nix/store/a8nlgg9hsmyvqkvr1219ixh7z0mh4qcy-qtwayland-5.15.12' from 'https://cache.nixos.org'...
path '/nix/store/hc3455zr373r8v74vjqk3d0arf1vkzm3-qtwebchannel-5.15.12' was modified! expected hash 'sha256:0l4dm46wrddphk30si7xrs3cbwzv34kxq5hx9bwf5lkjizq2bl4k', got 'sha256:0bgk02ckyzx51lqzy6xvn6pz0xwsyqrcskc3lvwr0w4l2bw7kmr9'
copying path '/nix/store/hc3455zr373r8v74vjqk3d0arf1vkzm3-qtwebchannel-5.15.12' from 'https://cache.nixos.org'...
path '/nix/store/hqw5yy2az0v83i8y83a2klcn2hc78cgm-python3.11-grpcio-tools-1.59.0' was modified! expected hash 'sha256:0rbzwvmajpr4zmk7cq6590jmq4rdnnpsa2pkzbnbqnlaj8avyj78', got 'sha256:02p5j7sx05xb3bp97rxhdh3g7vbvh0x6lhjxwxss988mbn0lfsg0'
copying path '/nix/store/hqw5yy2az0v83i8y83a2klcn2hc78cgm-python3.11-grpcio-tools-1.59.0' from 'https://cache.nixos.org'...
path '/nix/store/n7n0aqbafgcqy2xqd3qrfinpgxv5fd6x-python3.11-grpcio-1.59.1' was modified! expected hash 'sha256:0494b8ip2cvrxgfhv03pzgrjs5mnzbh1wm84jlj94bgq5wb2jbm2', got 'sha256:0g6sc6aa8h1f7yjiqmb69j3m2f9cf8gv7400pjs2rrrbqbjy6dwm'
copying path '/nix/store/n7n0aqbafgcqy2xqd3qrfinpgxv5fd6x-python3.11-grpcio-1.59.1' from 'https://cache.nixos.org'...
path '/nix/store/rvln33wylf6rlx40qfqxq204h48wqv9y-qtdeclarative-5.15.12-bin' was modified! expected hash 'sha256:0n0lc7d7204yh64gzy7njlkh2yv9j98r5n561qz1sbs88w8486m5', got 'sha256:1wc4a8rsr5r7q06dbfbqsv5p7rjdlyyyr02wigq2mn6y7xwhqhd8'
copying path '/nix/store/rvln33wylf6rlx40qfqxq204h48wqv9y-qtdeclarative-5.15.12-bin' from 'https://cache.nixos.org'...
path '/nix/store/rybx14sh8dfvw7iqky4sdxvpdbynhcbn-qtsvg-5.15.12' was modified! expected hash 'sha256:0qwcz8a76bnrzh1wpcyix23slp9z9267d1czyhm8wpqx638svbyz', got 'sha256:1dhsdxvd2cm09fslcb6p8ga9z2iwhjlzb177p0yw1c492i1jyc88'
copying path '/nix/store/rybx14sh8dfvw7iqky4sdxvpdbynhcbn-qtsvg-5.15.12' from 'https://cache.nixos.org'...
path '/nix/store/slyyvchkaxs9bw9s1m8qhy0arypqkkyg-qtquickcontrols-5.15.12' was modified! expected hash 'sha256:1z85g5y5g97835cb1zfa9kgm1vhyppxj320hk1qv8w1nwz5c6jd8', got 'sha256:0andzq8ip88p4ss1zj7j50j280hx4v28jcplmpsjppimc3bd5fgy'
copying path '/nix/store/slyyvchkaxs9bw9s1m8qhy0arypqkkyg-qtquickcontrols-5.15.12' from 'https://cache.nixos.org'...
path '/nix/store/ym3bq1r8vznaqdh5b9id1i5l31r0lcdl-gnu-config-2024-01-01' was modified! expected hash 'sha256:1l43qv8hnmziw5a1qfa5nv3vbwgyyzza9jlxj50p97r0ka63wjvc', got 'sha256:0fma56chsg2c6qsqqsz1j1vwl9a4br4f29fqwc4jlmjz0gc9p1d2'
copying path '/nix/store/ym3bq1r8vznaqdh5b9id1i5l31r0lcdl-gnu-config-2024-01-01' from 'https://cache.nixos.org'...
path '/nix/store/zmjp6bch2m117z4f833ajg0vj6afx6ff-python3.11-pyasn-1.6.2' was modified! expected hash 'sha256:1h87c53nyv74hpqch5w68biif4gvpbwgchkzhahy3gm07pi84j21', got 'sha256:009kxczfygqn308z5xmz8r7fqf58cq8609mx3fhj1bqlxm4wnszb'
copying path '/nix/store/zmjp6bch2m117z4f833ajg0vj6afx6ff-python3.11-pyasn-1.6.2' from 'https://cache.nixos.org'...
I don’t know how all those files could have been changed, I don’t recognize any of them. Are you on NOSTR? Or do you have a way I can send a few sats as a thank you?
Thank you for the offer, but I don’t use cryptocurrency.
The corruption you see may be caused by forcefully powering off the computer in the middle of an update on some filesystems.
1 Like
Thank you again. Marking this closed thanks to your solution.