Trying to install a snap from an unavailable channel shows candidates from other unavailable channels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
A Juju charm I'm working with is attempting to install the prometheus-
I'm uncertain whether there even _is_ a 3.4-series snap present for this particular snap - however, the bug is that the snap CLI is indicating that there is, and yet I cannot install it from the alternate channels it recommends.
Reproduction steps are as follows:
# This will fail, referring to candidate/beta/edge
sudo snap install --channel=
# This will fail, referring to beta/edge
sudo snap install --channel=
# This will fail, referring to edge
sudo snap install --channel=3.4/beta prometheus-
# This will fail, referring to other tracks, including ones which don't show up under "snap info prometheus-
sudo snap install --channel=3.4/edge prometheus-
Full output of the above example follows below:
ubuntu@juju-1:~$ sudo snap install --channel=
error: snap "prometheus-
on the following channels:
3.4/beta snap install --channel=3.4/beta prometheus-
3.4/edge snap install --channel=3.4/edge prometheus-
Please be mindful pre-release channels may include features not completely tested or
implemented. Get more information with 'snap info prometheus-
ubuntu@juju-1:~$ sudo snap install --channel=
error: snap "prometheus-
install on the following channels:
3.4/beta snap install --channel=3.4/beta prometheus-
3.4/edge snap install --channel=3.4/edge prometheus-
Get more information with 'snap info prometheus-
ubuntu@juju-1:~$ sudo snap install --channel=3.4/beta prometheus-
error: snap "prometheus-
the following channels:
3.4/edge snap install --channel=3.4/edge prometheus-
Get more information with 'snap info prometheus-
ubuntu@juju-1:~$ sudo snap install --channel=3.4/edge prometheus-
error: snap "prometheus-
the following tracks:
latest/beta snap install --beta prometheus-
latest/edge snap install --edge prometheus-
3.3/beta snap install --channel=3.3/beta prometheus-
3.3/edge snap install --channel=3.3/edge prometheus-
3.1/beta snap install --channel=3.1/beta prometheus-
3.1/edge snap install --channel=3.1/edge prometheus-
3/stable snap install --channel=3 prometheus-
3/candidate snap install --channel=
3/beta snap install --channel=3/beta prometheus-
3/edge snap install --channel=3/edge prometheus-
2.9/stable snap install --channel=2.9 prometheus-
2.9/beta snap install --channel=2.9/beta prometheus-
2.9/edge snap install --channel=2.9/edge prometheus-
2.8/stable snap install --channel=2.8 prometheus-
2.8/beta snap install --channel=2.8/beta prometheus-
2.8/edge snap install --channel=2.8/edge prometheus-
Please be mindful that different tracks may include different features. Get more information
with 'snap info prometheus-
For the record, my snapd is version 2.61.3+22.04.