终究是太少人用,国内连个镜像加速都没有,一般人建议还是不要使用snap吧,真心不推荐,说归说,如果你非要用,然后忍受不了它的慢那就使用下面的方法试试吧!
1、安装代理软件
sudo snap install snap-store snap-store-proxy snap-store-proxy-client
然后继续。
2、先下载再安装
下载方法(例如需要安装Pycharm):
sudo snap download pycharm-community
下载完成是这样的:
x@x:~/桌面$ sudo snap download pycharm-community
Fetching snap "pycharm-community"
Fetching assertions for "pycharm-community"
Install the snap with:
snap ack pycharm-community_222.assert
snap install pycharm-community_222.snap
x@x:~/桌面$
然后根据提示输入安装命令(需要加上sudo):
一定要按顺序执行
sudo snap ack ./pycharm-community_222.assert
sudo snap install ./pycharm-community_222.snap --classic
执行后提示:
x@x:~/桌面$ sudo snap ack ./pycharm-community_222.assert
x@x:~/桌面$ sudo snap install ./pycharm-community_222.snap --classic
pycharm-community 2020.3 from jetbrains✓ installed
x@x:~/桌面$
然后就可以在“全部程序”找到刚才安装的软件了