suggested hello-world snap does not exist on all platforms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
out of testing on riscv64 I've seen the following behavior.
Not sure if that is a snapd bug, but snapd is what suggests me the snap that is failing and it is the suggestion that i'm challenging.
ubuntu@ubuntu:~$ snap list
No snaps are installed yet. Try 'snap install hello-world'.
Ok, nice that we detect and suggest something.
But then:
ubuntu@ubuntu:~$ sudo snap install hello-world
error: cannot perform the following tasks:
- Ensure prerequisites for "hello-world" are available (cannot install snap base "core": no snap revision available as specified)
I assume that just means that the base isn't there for riscv64.
But then:
ubuntu@ubuntu:~$ snap find hello
Name Version Publisher Notes Summary
hello 2.12 canonical✓ - GNU Hello, the "hello world" snap
hello-world 6.4 canonical✓ - The 'hello-world' of snaps
ubuntu@ubuntu:~$ sudo snap install hello
2024-08-
2024-08-
hello 2.12 from Canonical✓ installed
ubuntu@ubuntu:~$ which hello
/usr/bin/hello
# I have the apt version as well, so go directly
ubuntu@ubuntu:~$ ll /snap/bin/hello
lrwxrwxrwx 1 root root 13 Aug 29 09:05 /snap/bin/hello -> /usr/bin/snap*
ubuntu@ubuntu:~$ /snap/bin/hello
Hello, world!
And for the sake of completeness, I removed the apt hello
ubuntu@ubuntu:~$ which hello
/snap/bin/hello
ubuntu@ubuntu:~$ hello
Hello, world!
So my question is, should we recommend "hello" over "hello-world" as a suggestion snap?
It seems to work better at least in this case.
This bug has been reported on the Ubuntu ISO testing tracker.
A list of all reports related to this bug can be found here: iso.qa. ubuntu. com/qatracker/ reports/ bugs/2078323
http://