mirror-requests icon indicating copy to clipboard operation
mirror-requests copied to clipboard

[nix] warning: ignoring untrusted substituter 'https://mirror.sjtu.edu.cn/nix-channels/store'

Open athrunsun opened this issue 3 years ago • 6 comments

Nix版本:2.6.0 操作系统:macOS monterey 12.2.1

按照帮助文档设定binary cache镜像,在~/.config/nix/nix.conf里添加了以下内容:

substituters = https://mirror.sjtu.edu.cn/nix-channels/store https://cache.nixos.org

重启nix-daemon:sudo launchctl kickstart system/org.nixos.nix-daemon

尝试安装软件:nix-env -iA nixpkgs.tig,得到一个warning:

warning: ignoring untrusted substituter 'https://mirror.sjtu.edu.cn/nix-channels/store'

然后还是从 https://cache.nixos.org 下载package了。

athrunsun avatar Mar 08 '22 09:03 athrunsun

是否有更详细的 log?

skyzh avatar Mar 08 '22 10:03 skyzh

@skyzh 没有发现。我突然意识到这首先是个nix的使用问题,其次才可能是镜像的问题。

athrunsun avatar Mar 08 '22 13:03 athrunsun

https://github.com/tuna/issues/issues/1355#issuecomment-942017041

ZenithalHourlyRate avatar Mar 08 '22 14:03 ZenithalHourlyRate

@ZenithalHourlyRate 还是不行:https://github.com/tuna/issues/issues/1447

athrunsun avatar Mar 09 '22 02:03 athrunsun

这个问题有可能是因为没有设置 trusted-users 造成的,我们稍后会对帮助文档进行更新

PhotonQuantum avatar Sep 16 '23 06:09 PhotonQuantum