suggested hello-world snap does not exist on all platforms

Bug #2078323 reported by Christian Ehrhardt 
6
This bug affects 1 person
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-29T09:03:43Z INFO Waiting for automatic snapd restart...
2024-08-29T09:03:44Z INFO Waiting for automatic snapd restart...
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.

Tags: iso-testing
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/2078323

tags: added: iso-testing
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

The suggestion in the test case was snap 'hello' which works fine.

Having publisher 'canonical' providing two different versions of hello world does not make much sense. Can we delete 'hello-world' from the store and block the name against future uploads?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.