I want to install intellij idea. I tried:
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 unixtr /run/snapd.socket: connect: no such file or directory
I'd posted abut this before and was told to reinstall snapd.
I did
sudo apt autoremove --purge snapd
Then
$ sudo apt update
$ sudo apt install snapd
I tested the hello world snapd. Got the same error as before:
error: cannot communicate with server:
Post http://localhost/v2/snaps/hello-world:
dial unix /run/snapd.socket: connect: no such file or directory
If I try
snap version
it removes "user-10998699@localhost" and allows me to type anything even new lines, the same happens with
snap list
Someone asked if this was really Ubuntu 16.04. I'm on a chromebook where I installed Crouton. https://www.howtogeek.com/162120/how-to-install-ubuntu-linux-on-your-chromebook-with-crouton/
Update(feb 18, 2021):
systemctl start snapd.socket
gets me:
Failed to add /run/systemd/ask-password to directory watch:
No such file or directory
Failed to start snapd.socket: Launch helper exited with unknown return
code 1
See system logs and 'systemctl status snapd.socket' for details.
I do
systemctl status snapd.socket
get:
Failed to get properties: Launch helper exited with unknown return code 1
I tried:
sudo service snapd start
got:
snapd: unrecognized service
I did:
sudo systemctl unmask snapd.service
sudo systemctl enable snapd.service
seemed to work
then
systemctl start snapd.socket
and got
Running in chroot, ignoring request.
snapd
service is running? What do you see withsnap version
orsnap list
?systemctl start snapd.socket
requires root permissions likesudo systemctl start snapd.socket
. TheRunning in chroot, ignoring request.
error message occurred because Crouton is a chroot. Start off by debugging something simple like the hello-world snap to check if you can get any snap to run in Crouton. If not you'll have to switch from Crouton to chrx. For more info: askubuntu.com/a/866637