Can't install classic confinement apps on Manjaro

Hey there

I’ve recently installed manjaro, and instead of using the AUR for the beat all destination of apps, I want to use snap for those that I want to install and then never tinker with again, but…

I’ve partitioned a large /opt, so i did the following:

sudo pacman -Sy snapd
sudo mkdir /opt/snapd
sudo mount -o bind /opt/snapd /var/lib/snapd
sudo ln -s /var/lib/snapd/snap /snap

sudo systemctl enable --now snapd.socket
snap login

so far so good i believe. What i wanted to achieve there, was:

install snapd create a dir in /opt/snapd and mount it as /var/lib/snapd to keep data on /opt then symlink /var/lib/snapd/snap to /snap for installation of apps with classic confinement, then enable the snap service and login to the store.

Then i do:

snap install vscode --classic

and get: error: cannot install “vscode”: classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap

I believe i had created that symlink with: sudo ln -s /var/lib/snapd/snap /snap

and when i look in the / folder the link is there, so what gives?

Any help here? :slight_smile:

Doh, It seemed i had symlinked from /opt/snapd/snap to /snap instead. Sorry guys, closing this.

1 Like