"Cannot locate the core" error on Arch

$ /snap/bin/mathpix-snipping-tool
cannot locate the core or legacy core snap (current symlink missing?): No such file or directory
$ sudo snap refresh core
snap "core" has no updates available
$ sudo snap list
Name                   Version     Rev   Tracking  Publisher   Notes
core                   16-2.35.2   5548  stable    canonical✓  core
mathpix-snipping-tool  00.00.0057  19    stable    mathpix     -
$ sudo snap changes
ID   Status  Spawn               Ready               Summary
1    Done    today at 13:56 EDT  today at 13:57 EDT  Install "core" snap
2    Done    today at 13:56 EDT  today at 13:56 EDT  Initialize system state
3    Done    today at 13:56 EDT  today at 13:56 EDT  Initialize device
4    Done    today at 13:58 EDT  today at 13:59 EDT  Install "mathpix-snipping-tool" snap

$ cd /snap/
$ ls
bin/  core/  mathpix-snipping-tool/  README
$ cd core
$ ls
5548/  current@
$ ls -al current
lrwxrwxrwx 1 root root 4 Oct 10 13:57 current -> 5548/
$ sudo ls -ld /{var/lib/snapd/snap},snap}/{core,ubuntu-core}/*
ls: cannot access '/var/lib/snapd/snap}/core/*': No such file or directory
ls: cannot access '/var/lib/snapd/snap}/ubuntu-core/*': No such file or directory
ls: cannot access '/snap/ubuntu-core/*': No such file or directory
drwxr-xr-x 24 root root 333 Sep 21 05:32  /snap/core/5548
lrwxrwxrwx  1 root root   4 Oct 10 13:57  /snap/core/current -> 5548

I installed snapd from the AUR and I enabled the socket and rebooted.

$ snap version
snap     2.35.4-1
snapd    2.35.4-1
series   16
anarchy  -
kernel   4.18.12-arch1-1-ARCH

This does not look like Arch proper. Can you post the contents of /etc/os-release?

1 Like

Oh and the output of snap debug paths too.

I did use the Anarchy Linux installer to install arch. Does snapd depend on the output of /etc/os-release?

$ cat /etc/os-release 
NAME="Anarchy Linux"
PRETTY_NAME="Anarchy Linux"
ID=anarchy
ID_LIKE=anarchylinux
ANSI_COLOR="0;36"
HOME_URL="https://anarchy-linux.org/"
$ snap debug paths
SNAPD_MOUNT=/snap
SNAPD_BIN=/snap/bin
SNAPD_LIBEXEC=/usr/lib/snapd

Replacing /etc/os-release worked! Thanks!

$ cat /etc/os-release
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/"
1 Like

@mborzecki Sounds like we should just add “Anarchy” as an Arch variant.