Hi,
Eelco Dolstra wrote:
If this happens and the upgrade hangs, then try killing all Nix
processes (nix-store, nix-instantiate), and do:
$ nix-channel --update
$ nix-build /etc/nixos/nixpkgs -A nixUnstable -o nix
$ ./nix/bin/nix-env -q \* # <- should recover the DB
$ PATH=./nix/bin:$PATH NIXOS_NO_PULL=1 nixos-rebuild switch
Actually, there's a much simpler workaround: just set NIX_REMOTE to "daemon":
$ NIX_REMOTE=daemon nixos-rebuild switch
After the switch you may still need to kill any running Nix processes and do a
"nix-store -q" to recover the Berkeley DB environment.
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev