尝试安装 IntelliJ snap 包时出现“错误:无法与服务器通信”

尝试安装 IntelliJ snap 包时出现“错误:无法与服务器通信”

我正在遵循说明这里

这发生过:

sudo snap install intellij-idea-community --classic 
[sudo] password for user-1099869:  
error: cannot communicate with server: 
Post http://localhost/v2/snaps/intellij-idea-community: 
dial unix /run/snapd.socket: connect: no such file or directory

然后我尝试:

(xenial)user-109986@localhost:~$ systemctl status snapd.service 
Failed: to get properties: 
Launch helper exited with unknown return code 1

答案1

重新安装 snapd。打开终端并输入:

sudo apt autoremove --purge snapd
sudo apt install snapd
sudo systemctl enable snapd
sudo reboot

然后尝试再次安装 intellij-idea-community。

sudo snap install intellij-idea-community --classic

相关内容