小编Ant*_*nto的帖子

错误:在 Nix 搜索路径中找不到文件“nixpkgs”(使用 $NIX_PATH 或 -I 添加它)

我曾经sh <(curl -L https://nixos.org/nix/install) --daemon安装过 Nix。\n安装完成后运行nix-shell -p nix-info --run "nix-info -m"以验证安装。\n它返回以下错误

\n

输出

\n
warning: Nix search path entry \'/nix/var/nix/profiles/per-user/kana/channels\' does not exist, ignoring\nerror: file \'nixpkgs\' was not found in the Nix search path (add it using $NIX_PATH or -I)\n\n       at \xc2\xabstring\xc2\xbb:1:25:\n\n            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""\n             |                         ^\n(use \'--show-trace\' to show detailed location information)\n
Run Code Online (Sandbox Code Playgroud)\n

installation ubuntu nixos nix nixpkgs

16
推荐指数
2
解决办法
8145
查看次数

标签 统计

installation ×1

nix ×1

nixos ×1

nixpkgs ×1

ubuntu ×1