我无法在 Ubuntu 16.04 中安装 snap,而是出现下面显示的错误:
dheer@dheer-Inspiron-3558:~$ sudo snap install notes
[sudo] password for dheer: *********
error: cannot perform the following tasks:
- Fetch and check assertions for snap "ubuntu-core" (423) (Get https://assertions.ubuntu.com/v1/assertions/snap-revision/7sS9MbzjeZ87E4IVq3ByrAO8t1YqriNlaX4r7eT5AHYZjzRCa7twTmWU53e6falH: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers))
dheer@dheer-Inspiron-3558:~$
请帮忙?
答案1
您收到的状态代码为 423,表示您尝试访问的内容已被锁定。这表明在您尝试访问 snap“ubuntu-core”时,它可能正在被修改。在我的情况下,尝试访问 assertions.ubuntu.com/v1/assertions/snap-revision 会导致 403 错误(禁止访问),因为我无权访问。