Broken nixos-install


Because of a failed nix-store --repair-path my system is in a broken state (it kernel panics at boot)

I tried to run the command sudo nixos-install --root /mnt/@ --flake .#oblast from a liveCD but it fails with the following error :

       > error: executing '/nix/store/5lr5n3qa4day8l1ivbwlcby2nknczqkq-bash-5.2p26/bin/bash': No such file or directory

Any idea on how to fix this ? Or should I not try to install my full system but just a minimal non-flake system and then upgrade from it ?


I managed to nixos-install a minimal configuration and then from that I could nixos-enter and repair my corrupt store

1 Like