I’ve a Manjaro install, it uses an old /home partition from an earlier elementary install.
after installing snapd, and doing snap install hello
it fails at snap run hello saying: cannot locate core snap: no such file or directory
I can’t figure out what to do, I’ve reinstalled a few times by now. I’ve run systemctl commands to check that snapd services are running, and everything looks alright to me there.
Is it the “unknown” which makes you think that? Because I have seen “unknown” in some of my systems, and the snap install came from your packages, not self built.
Arch as in the Arch Linux distribution? If so then that package needs to be updated as last time I checked it was out of date (and we could not update it ourselves). CC @morphis
The error message appears to be coming from the snap-confine part of snapd, it is slightly different from the one you posted cannot locate the core snap (note the extra the). I assume it is still the one you are seeing?
Could you please paste the output of the following commands?
$ snap changes
$ ls -ld /{var/lib/snapd/snap},snap}/{core,ubuntu-core}/*
Snap-confine expects to find some data in /snap/core/current (usually) which appears to be not there for some reason. So we need to find out why its not there and what is there instead
Well, the smoking gun is the lack of version information. I bet the way we do things needs to be cross-checked with other distributions. We don’t install snapctl, snap-update-ns and snap-discard-ns. That’s a lot of things missing from a functional system. I could look deeper and I suspect that apps-bin-path.sh probably diverged from similar scripts that we use in other distributions. Tab completions and man pages are probably also missing. The void directory is gone, etc.
I think we need to boot up arch and iterate until the list of files in this and the debian package is roughly the same.