先决条件:
- VirtualBox 6.1 上的 Ubuntu 20.04 LTS(最小安装)
我尝试通过 Snap 安装 VS Code:
$ snap install code --classic
error: cannot install "code": Post https://api.snapcraft.io/v2/snaps/refresh:
x509: certificate signed by unknown authority
然后我也尝试了 PyCharm CE,同样的错误:
$ snap install pycharm-community --classic
error: cannot install "pycharm-community": Post
https://api.snapcraft.io/v2/snaps/refresh: x509: certificate signed by
unknown authority
答案1
取自:askubuntu.com/questions/1029117
Snap 可能仍在后台处理某些事情(或至少它是这么认为的)。打开终端并运行 snap changes,即可查看正在进行的更改列表。
$ snap changes
...
8 Doing 2018-04-28T10:40:11Z - Install "foo" snap
...
您可以中止正在进行的“执行”或“正在执行”的更改:
sudo snap abort 8
原始答案来自芬克尔