Snap.yaml missing file

After installing snapd:

sudo apt install snapd

i went to test by installing hello-world:

sudo snap install hello-world

This is all well and good. I then go to run this hello world:

hello-world

and get the following output:

internal error, please report: running “hello-world” failed: cannot find installed snap “hello-world” at revision 29: missing file /snap/hello-world/29/meta/snap.yaml

How do i go about fixing this? thank you : )

1 Like

May be try this snap to test?

Something isn’t right, can you attach the output of cat /etc/os-release and snap debug paths ?

I have two systems where one install worked fine for 2.72 and the other did not for 2.71+ubuntu24.04 (both with snapd 2.72)

I tried upgrading the 2.71+ubuntu24.04 via sudo apt upgrade snap:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  snap
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 377 kB of archives.
After this operation, 2756 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 snap amd64 2013-11-29-11 [377 kB]
Fetched 377 kB in 1s (319 kB/s)
Selecting previously unselected package snap.
(Reading database ... 70840 files and directories currently installed.)
Preparing to unpack .../snap_2013-11-29-11_amd64.deb ...
Unpacking snap (2013-11-29-11) ...
Setting up snap (2013-11-29-11) ...
Processing triggers for man-db (2.12.0-4build2) ...

and running snap --version still showed 2.71+ubuntu24.04:

snap    2.71+ubuntu24.04
snapd   2.72
series  16
ubuntu  24.04
kernel  6.6.87.2-microsoft-standard-WSL2

Here are the commands and corresponding output. I’m open to sending more info

- s

Commands

echo
snap list

echo
sudo snap install hello-world && hello-world

echo
sudo snap install vault && vault --version

echo
sudo snap install terraform --classic && terraform --version

echo
sudo snap install aws-cli --classic && aws --version

echo
sudo snap install google-cloud-cli --classic && gcloud --version

echo
sudo snap install go --classic && go version

echo
echo $ ls -la /snap/hello-world/29/
ls -la /snap/hello-world/29/

echo
echo $ ls -la /snap/bin/
ls -la /snap/bin/

echo
echo $ ls -la /usr/local/bin
ls -la /usr/local/bin

echo
echo $ snap --version
snap --version

echo
echo $ snap debug paths
snap debug paths

echo
echo $ cat /etc/os-release
cat /etc/os-release

Computer A - Success (snap 2.72)

No snaps are installed yet. Try 'snap install hello-world'.

2025-10-23T08:13:02-05:00 INFO Waiting for automatic snapd restart...
hello-world 6.4 from Canonical✓ installed
Hello World!

vault (1.19/stable) 1.19.5 from Canonical✓ installed
Vault v1.19.5, built 2024-10-23T13:13:35Z (cgo)

terraform 1.12.2 from Snapcrafters✪ installed
Terraform v1.12.2
on linux_amd64

Your version of Terraform is out of date! The latest version
is 1.13.4. You can update by downloading from https://developer.hashicorp.com/terraform/install

aws-cli (v2/stable) 2.31.20 from Amazon Web Services (aws✓) installed
aws-cli/2.31.20 Python/3.13.7 Linux/6.6.87.2-microsoft-standard-WSL2 exe/x86_64.ubuntu.24

google-cloud-cli 544.0.0 from Cloud SDK (google-cloud-sdk✓) installed
Google Cloud SDK 544.0.0
alpha 2025.10.17
beta 2025.10.17
bq 2.1.24
bundled-python3-unix 3.12.9
core 2025.10.17
gcloud-crc32c 1.0.0
gsutil 5.35
minikube 1.37.0
skaffold 2.16.0

go 1.25.3 from Canonical✓ installed
go version go1.25.3 linux/amd64

$ ls -la /snap/hello-world/29/
total 0
drwxrwxr-x 2 root root 0 Apr 17  2019 bin
drwxrwxr-x 3 root root 0 Apr 17  2019 meta

$ ls -la /snap/bin/
total 8
drwxr-xr-x  2 root root 4096 Oct 23 08:14 .
drwxr-xr-x 13 root root 4096 Oct 23 08:14 ..
lrwxrwxrwx  1 root root   26 Oct 23 08:14 anthoscli -> google-cloud-cli.anthoscli
lrwxrwxrwx  1 root root   11 Oct 23 08:13 aws -> aws-cli.aws
lrwxrwxrwx  1 root root   13 Oct 23 08:13 aws-cli.aws -> /usr/bin/snap
lrwxrwxrwx  1 root root   19 Oct 23 08:14 bq -> google-cloud-cli.bq
lrwxrwxrwx  1 root root   41 Oct 23 08:14 docker-credential-gcloud -> google-cloud-cli.docker-credential-gcloud
lrwxrwxrwx  1 root root   23 Oct 23 08:14 gcloud -> google-cloud-cli.gcloud
lrwxrwxrwx  1 root root   13 Oct 23 08:14 go -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:14 go.gofmt -> /usr/bin/snap
lrwxrwxrwx  1 root root    8 Oct 23 08:14 gofmt -> go.gofmt
lrwxrwxrwx  1 root root   13 Oct 23 08:14 google-cloud-cli.anthoscli -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:14 google-cloud-cli.bq -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:14 google-cloud-cli.docker-credential-gcloud -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:14 google-cloud-cli.gcloud -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:14 google-cloud-cli.gsutil -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:14 google-cloud-cli.kubectl -> /usr/bin/snap
lrwxrwxrwx  1 root root   23 Oct 23 08:14 gsutil -> google-cloud-cli.gsutil
lrwxrwxrwx  1 root root   13 Oct 23 08:13 hello-world -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:13 hello-world.env -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:13 hello-world.evil -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:13 hello-world.sh -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:13 terraform -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:13 vault -> /usr/bin/snap

$ ls -la /usr/local/bin
total 8
drwxr-xr-x  2 root root 4096 Oct 21 15:28 .
drwxr-xr-x 10 root root 4096 Aug  5 11:55 ..
lrwxrwxrwx  1 root root   55 Oct 21 15:28 kubectl -> /mnt/wsl/docker-desktop/cli-tools/usr/local/bin/kubectl

$ snap --version
snap          2.72
snapd         2.72
series        16
ubuntu        24.04
kernel        6.6.87.2-microsoft-standard-WSL2
architecture  amd64

$ snap debug paths
SNAPD_MOUNT=/snap
SNAPD_BIN=/snap/bin
SNAPD_LIBEXEC=/usr/lib/snapd

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Computer B - Unsuccessful (2.71+ubuntu24.04)

No snaps are installed yet. Try 'snap install hello-world'.

2025-10-23T08:22:51-05:00 INFO Waiting for automatic snapd restart...
hello-world 6.4 from Canonical✓ installed
internal error, please report: running "hello-world" failed: cannot find installed snap "hello-world" at revision 29: missing file /snap/hello-world/29/meta/snap.yaml

vault (1.19/stable) 1.19.5 from Canonical✓ installed
internal error, please report: running "vault" failed: cannot find installed snap "vault" at revision 2424: missing file /snap/vault/2424/meta/snap.yaml

terraform 1.12.2 from Snapcrafters✪ installed
Terraform v1.13.4
on linux_amd64

aws-cli (v2/stable) 2.31.20 from Amazon Web Services (aws✓) installed
aws-cli/2.31.19 Python/3.13.7 Linux/6.6.87.2-microsoft-standard-WSL2 exe/x86_64.ubuntu.24

google-cloud-cli 544.0.0 from Cloud SDK (google-cloud-sdk✓) installed
internal error, please report: running "google-cloud-cli.gcloud" failed: cannot find installed snap "google-cloud-cli" at revision 394: missing file /snap/google-cloud-cli/394/meta/snap.yaml

go 1.25.3 from Canonical✓ installed
internal error, please report: running "go" failed: cannot find installed snap "go" at revision 10971: missing file /snap/go/10971/meta/snap.yaml

$ ls -la /snap/hello-world/29/
total 8
drwxr-xr-x 2 root root 4096 Oct 23 08:23 .
drwxr-xr-x 3 root root 4096 Oct 23 08:23 ..

$ ls -la /snap/bin/
total 8
drwxr-xr-x  2 root root 4096 Oct 23 08:23 .
drwxr-xr-x 13 root root 4096 Oct 23 08:23 ..
lrwxrwxrwx  1 root root   26 Oct 23 08:23 anthoscli -> google-cloud-cli.anthoscli
lrwxrwxrwx  1 root root   11 Oct 23 08:23 aws -> aws-cli.aws
lrwxrwxrwx  1 root root   13 Oct 23 08:23 aws-cli.aws -> /usr/bin/snap
lrwxrwxrwx  1 root root   19 Oct 23 08:23 bq -> google-cloud-cli.bq
lrwxrwxrwx  1 root root   41 Oct 23 08:23 docker-credential-gcloud -> google-cloud-cli.docker-credential-gcloud
lrwxrwxrwx  1 root root   23 Oct 23 08:23 gcloud -> google-cloud-cli.gcloud
lrwxrwxrwx  1 root root   13 Oct 23 08:23 go -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 go.gofmt -> /usr/bin/snap
lrwxrwxrwx  1 root root    8 Oct 23 08:23 gofmt -> go.gofmt
lrwxrwxrwx  1 root root   13 Oct 23 08:23 google-cloud-cli.anthoscli -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 google-cloud-cli.bq -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 google-cloud-cli.docker-credential-gcloud -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 google-cloud-cli.gcloud -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 google-cloud-cli.gsutil -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 google-cloud-cli.kubectl -> /usr/bin/snap
lrwxrwxrwx  1 root root   23 Oct 23 08:23 gsutil -> google-cloud-cli.gsutil
lrwxrwxrwx  1 root root   13 Oct 23 08:23 hello-world -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 hello-world.env -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 hello-world.evil -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 hello-world.sh -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 terraform -> /usr/bin/snap
lrwxrwxrwx  1 root root   13 Oct 23 08:23 vault -> /usr/bin/snap

$ ls -la /usr/local/bin
total 8
drwxr-xr-x  2 root root 4096 Oct 22 14:49 .
drwxr-xr-x 11 root root 4096 Oct 22 14:49 ..
lrwxrwxrwx  1 root root   37 Oct 22 14:49 aws -> /usr/local/aws-cli/v2/current/bin/aws
lrwxrwxrwx  1 root root   47 Oct 22 14:49 aws_completer -> /usr/local/aws-cli/v2/current/bin/aws_completer
lrwxrwxrwx  1 root root   55 Oct 22 14:23 kubectl -> /mnt/wsl/docker-desktop/cli-tools/usr/local/bin/kubectl

$ snap --version
snap    2.71+ubuntu24.04
snapd   2.72
series  16
ubuntu  24.04
kernel  6.6.87.2-microsoft-standard-WSL2

$ snap debug paths
SNAPD_MOUNT=/snap
SNAPD_BIN=/snap/bin
SNAPD_LIBEXEC=/usr/lib/snapd

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Edit: I noticed the /usr/local/bin directories differ as well.

ogra@styx:~$ apt show snap 2>/dev/null|grep -A3 ^Description
Description: location of genes from DNA sequence with hidden markov model
 SNAP is a general purpose gene finding program suitable for both eukaryotic
 and prokaryotic genomes. SNAP is an acroynm for Semi-HMM-based Nucleic Acid
 Parser.
ogra@styx:~$ 

The snap deb is likely not the package you want :wink:

Haha, great catch. :smiley:

I saw 2.x2 and assumed the x was a 7.

I’ll try to update the version and try again.

No luck

$ sudo apt install snapd

snapd is already the newest version (2.71+ubuntu24.04).
snapd set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sthiakos@THIAKOS-WORK-LT:~$ snap debug paths
SNAPD_MOUNT=/snap
SNAPD_BIN=/snap/bin
SNAPD_LIBEXEC=/usr/lib/snapd

$ snap --version
snap    2.71+ubuntu24.04
snapd   2.72
series  16
ubuntu  24.04
kernel  6.6.87.2-microsoft-standard-WSL2

$ apt-cache madison snapd
     snapd | 2.71+ubuntu24.04 | http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     snapd | 2.63+24.04ubuntu0.1 | http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
     snapd | 2.62+24.04build1 | http://archive.ubuntu.com/ubuntu noble/main amd64 Packages

A fresh os and it works now :man_shrugging:

$ sudo snap refresh
sudo snap install hello-world && hello-world

All snaps up to date.
2025-10-23T15:27:09-05:00 INFO Waiting for automatic snapd restart...
hello-world 6.4 from Canonical✓ installed
Hello World!