Edit: sudo nix-store --verify --repair --check-contents
solved the issue, as pointed out by @symphorien (just adding the final s
)
A few hours ago I did update the system:
sudo nixos-rebuild switch --upgrade --show-trace
At some point, the system froze (I will post a separate topic about it). I hard rebooted, started a new update and it constantly failed installing unstable.postman
(previously worked):
/nix/store/i4105ay37n233wgqbb3jvi84c83zv34c-nixos-system-max-nixos-20.09.4407.1c1f5649bb9.drv
building '/nix/store/pl1lbg9kz17mjqlvj14187j9gn6nzihh-postman.desktop.drv'...
building '/nix/store/cxl3nqqgk069348l96xhdmf2zrvz7f3v-postman.tar.gz.drv'...
Running desktop-file validation
/build/.attr-0: line 14: /nix/store/q52xkiya9r70sr6kamqc9i838p17ayq4-desktop-file-utils-0.24/bin/desktop-file-validate: cannot execute binary file: Exec format error
builder for '/nix/store/pl1lbg9kz17mjqlvj14187j9gn6nzihh-postman.desktop.drv' failed with exit code 126
cannot build derivation '/nix/store/5hwb5zyg70gfmmzgy27r4r8apgfrdmxr-postman-9.1.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/paqypmrmkqrv61q9yih9wd2alpnpag3l-man-paths.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/gvyyial89qsmayf7bw2fhs78vp9l2r7n-postman-9.1.1_fish-completions.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/dkff608vydwzpdibkamavli88s2wp0an-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/i4105ay37n233wgqbb3jvi84c83zv34c-nixos-system-max-nixos-20.09.4407.1c1f5649bb9.drv': 1 dependencies couldn't be built
error: build of '/nix/store/i4105ay37n233wgqbb3jvi84c83zv34c-nixos-system-max-nixos-20.09.4407.1c1f5649bb9.drv' failed
I reverted postman
to the current channel and, after the next update ended, I am now finding out that I have issues with several packages:
❯ google-chrome-stable
/nix/store/ppjlp950x8lvdb2lc48c50bb3rff73ak-google-chrome-95.0.4638.54/share/google/chrome/google-chrome: error while loading shared libraries: /nix/store/1pj0qrswyq0iyfa4xzqwppnfxszvh868-glib-2.70.0/lib/libgobject-2.0.so.0: invalid ELF header
❯ google-chrome-beta
/nix/store/z3rnd24g84pb4rkkiy0pnfgk06cih7jz-google-chrome-beta-96.0.4664.18/share/google/chrome-beta/google-chrome-beta: error while loading shared libraries: /nix/store/1pj0qrswyq0iyfa4xzqwppnfxszvh868-glib-2.70.0/lib/libgobject-2.0.so.0: invalid ELF header
❯ google-chrome-unstable
/nix/store/vz3g147rfqkrb64grc1ir3p4i80qh614-google-chrome-dev-97.0.4676.0/share/google/chrome-unstable/google-chrome-unstable: error while loading shared libraries: /nix/store/1pj0qrswyq0iyfa4xzqwppnfxszvh868-glib-2.70.0/lib/libgobject-2.0.so.0: invalid ELF header
❯ kitty
Traceback (most recent call last):
File "/nix/store/97w52ckcjnfiz89h3lh7zf1kysgfm2s8-python3-3.9.6/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/nix/store/97w52ckcjnfiz89h3lh7zf1kysgfm2s8-python3-3.9.6/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/nix/store/idf8k0lm75vq4mgp02p46z4vr14x9pjj-kitty-0.23.1/bin/../lib/kitty/__main__.py", line 153, in <module>
main()
File "/nix/store/idf8k0lm75vq4mgp02p46z4vr14x9pjj-kitty-0.23.1/bin/../lib/kitty/__main__.py", line 146, in main
from kitty.main import main as kitty_main
File "/nix/store/idf8k0lm75vq4mgp02p46z4vr14x9pjj-kitty-0.23.1/bin/../lib/kitty/kitty/main.py", line 12, in <module>
from .borders import load_borders_program
File "/nix/store/idf8k0lm75vq4mgp02p46z4vr14x9pjj-kitty-0.23.1/bin/../lib/kitty/kitty/borders.py", line 9, in <module>
from .fast_data_types import (
ImportError: /nix/store/1pj0qrswyq0iyfa4xzqwppnfxszvh868-glib-2.70.0/lib/libglib-2.0.so.0: invalid ELF header
No idea so far how many packages are affected. Reverting to the current channel versions, packages are successfully installed and run normally.
Any hint? Should I open issue(s) on the repo?