Symbolic link doesent work

Using ln -s /var/lib/snapd/snap /snap
Outputs failed to create symbolic link '/snap': File exists

But when I attempt to install --classic: cannot install "node": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap

How come?

Is /snap a symlink already? Can you ls -l /snap ?

1 Like

What do you mean? Where is /snap? In /usr/bin/ ?

Run ls -l /snap in the terminal, and paste the output. On my host which is Arch it looks like this:

$ ls -l /snap
lrwxrwxrwx 1 root root 19 2018-10-29  /snap -> /var/lib/snapd/snap
1 Like

lrwxrwxrwx 1 root root 24 aug 31 00:05 /snap -> /var/lib/snapd/snap/snap

Like this?

Not quite, the target is /var/lib/snapd/snap (just one snap element at the end).

1 Like

What so how do I fix this? Should I delete the entire extra /snap folder?

Just rm /snap && ln -s /var/lib/snapd/snap /snap

1 Like

When I run ls from /var/lib/snapd/snap I get bin core18 README snap snapd spotify

Why is there so many snaps and snapds

So which snap should I remove?

None, those are maintained by snapd. What do you want to do? If you want to remove a snap try snap remove <name>.

The quickstart guide is comprehensive and covers the essential details:

1 Like