我想试着改变频道。我做到了。
nix-channel --add .../nixos-unstable
nix-channel --remove .../nixos-20.09
nix-channel --update它起作用了,它创建了一个链接,我可以运行:
nixos-rebuild switch然而,我的i3无法正常工作,所以我想返回到20.09:
nix-channel --add .../nixos-20.09
nix-channel --remove .../nixos-unstable
nix-channel --update但现在它不会重新创建该链接,并且在运行时
nixos-rebuild switch它失败了,错误为
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
building Nix...我已经搜索并尝试了一些对其他人有效的解决方案,比如重新启动,用sudo -i运行t,但到目前为止都没有起作用。如何重新创建该链接?
发布于 2021-01-17 23:47:57
好的,我找到了一种方法:我添加了一个不同名称的频道,而不是默认的nixos-10.09
nix-channel --add ..../nixos-20.09 nixos
nix-channel --remove nixos-20.09
nix-channnel --update 然后,瞧,链接被创建了,一切又开始工作了!
https://stackoverflow.com/questions/65760967
复制相似问题