Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot install "code": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap

how I can fix it? I've tried to create "soft link" like sudo ln /snap /var/lib/snapd/snap and also sudo ln /var/lib/snapd/snap /snap --> but it doesn't work. I just want to install VSCode in Manjaro

like image 636
Инсаф Гизатуллин Avatar asked Jul 28 '21 18:07

Инсаф Гизатуллин


3 Answers

You must make a symbolic link to get it to work:

sudo ln -s /var/lib/snapd/snap /snap

That way worked for me.

like image 66
Zidan Avatar answered Oct 20 '22 21:10

Zidan


use sudo ln -s /var/lib/snapd/snap /snap it worked for me I am using manjaro

like image 7
pratyay360 Avatar answered Oct 20 '22 21:10

pratyay360


I use Manjaro too and have the same problem today, it happens after update some pkgs. And snapd can't install vscode for now.

And if you have the same problem as my, you should uninstall the vscode first and delete the .desktop file located on /home/your_username/.local/share/applications

To install I downloaded the .deb version on Visual Studio Code website, and converted it to something pacman could install.

Now a little tutorial on how to do that

How to install .deb on manjaro (arch linux)

The package that convert .deb is debtap, but it is only available on AUR. So first u'll need to install pacaur

sudo pacman -S pacaur

After installed pacaur, now u can install debtap

pacaur -S debtap

With debtap installed execute the command below to init debtap

sudo debtap -u

Now is possible to convert .deb

debtap your_package.deb

And finally use pacman to install the converted pkg

sudo pacman -U your-converted-pakage.pkg.tar.zst

Or u can try out this another tutorial

like image 5
Evandro Uzeda Avatar answered Oct 20 '22 21:10

Evandro Uzeda