Arch Linux missing symlinks

When I install snapd from aur then try to install any snap, I can’t run the app after it successfully installs. I get command not found when running straight from the terminal, and when I do snap run or manually run it from /snap/bin I get ‘cannot locate the core or legacy core snap (current symlink missing?): No such file or directory’
It seems that the snaps get installed properly and mounted properly, but just don’t get symlinked. I’ve been testing with spotify and anbox.

Please provide:

  • contents of /etc/os-release
  • pacman -Q snapd
  • ls -l /

Contents of /etc/os-release:

NAME="Antergos Linux"
VERSION="18.6-ISO-Rolling"
ID="antergos"
ID_LIKE="arch"
PRETTY_NAME="Antergos Linux"
CPE_NAME="cpe:/o:antergosproject:antergos:18.6"
ANSI_COLOR="1;34;40"
HOME_URL="https://antergos.com/"
SUPPORT_URL="https://forum.antergos.com/"
BUG_REPORT_URL="https://github.com/antergos"

pacman -Q snapd: snapd 2.33.1-1

ls -1 /:

bin
boot
dev
etc
home
lib
lib64
lost+found
mnt
opt
proc
root
run
sbin
snap
srv
sys
tmp
usr
var

I’m totally confused with your /etc/os-release. In yours there is:

ID_LIKE="arch"

Roughly two weeks ago we had a user who reported a similar problem to yours, and his contents were:

NAME="Antergos Linux"
PRETTY_NAME="Antergos Linux"
ID=antergos
ID_LIKE=archlinux   <---- NOTE THIS
ANSI_COLOR="0;36"
HOME_URL="https://antergos.com/"
SUPPORT_URL="https://forum.antergos.com/"
BUG_REPORT_URL="https://github.com/antergos"

For comparison, here on Arch I have:

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

Given this, I would expect Arch derivatives to have ID_LIKE=archlinux.

We’d totally like to support Antegros, but the distro detection relies on ID and ID_LIKE from /etc/os-release. If data in that file is incorrect, the things will break. Can you check with your distro what is the right contents of that file?

It seems it’s supposed to be arch not archlinux: https://github.com/Antergos/antergos-iso/blob/master/configs/antergos/root-image/etc/os-release

Just to see what happened, I changed the NAME, ID, PRETTY_NAME, and ID_LIKE to follow the arch os-release you put up then uninstalled and reinstalled snapd and snaps to the same result.

So it’s a mess after all :frowning:

Just for reference:

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
NAME="Manjaro Linux"
ID=manjaro
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="1;32"
HOME_URL="https://www.manjaro.org/"
SUPPORT_URL="https://www.manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"

NAME="Antergos Linux"
VERSION="<VERSION>-ISO-Rolling"
ID="antergos"
ID_LIKE="arch"
PRETTY_NAME="Antergos Linux"
CPE_NAME="cpe:/o:antergosproject:antergos:<VERSION>"
ANSI_COLOR="1;34;40"
HOME_URL="https://antergos.com/"
SUPPORT_URL="https://forum.antergos.com/"
BUG_REPORT_URL="https://github.com/antergos"

Given all of above it’s clear there is no consensus about ID_LIKE. It’s probably better if we detect each distro specifically "arch", "manjaro", "antegros". I’ll push a patch tomorrow.

I can confirm that changing to ID_LIKE="archlinux" and uninstalling and reinstalling snaps makes them work. Though it’s not a bad idea to make it detect each one specifically, maybe antergos should be made aware that it should be archlinux instead of arch. Manjaro should probably be detected separately though since it isn’t technically an arch offshoot, it just uses pacman and has support for AUR. (I haven’t used manjaro, but that’s what this article says: https://freedompenguin.com/articles/opinion/manjaro-vs-antergos-record/)

The PR https://github.com/snapcore/snapd/pull/5468 got merged already and I’ve pushed an update to AUR with the patch cherry-picked for 2.33.1.

Can you restore /etc/os-release to its original state and rebuild the latest snapd package from AUR?

Not an Antergos user, so I cannot test. But it looks like the merged patch has a typo: it’s Antergos, not Antegros.

1 Like

Thanks for spotting this! Fixing right away.

Fixed in snapd 2.33.1-3.

Works perfectly! Thanks!

1 Like