It seems that for classic snaps, while refreshing to a different channel using snap refresh
does not require specifying --classic
, joining a cohort using snap refresh
does require the --classic
flag. Furthermore, the error message that is returned if --classic
is omitted is confusing, stating that the snap is not available in that channel at all.
It turns out that the use of --classic
did not help. The actual issue is that it’s failing as below when on a LXD Juju unit, while directly on the host of the same machine, it works fine.
ubuntu@juju-faa4c5-4:~$ sudo snap refresh kubectl --cohort MSBaZ0cyVVJ5Y0RndnhTVnNrZm9aeG40NHVhUk13MGl3ZSAxNTY5ODU2NDQzIDA2MTNhNGM2MmE1MWQxNjA0YTQ3ZmQ0YzhkMGI1MmJjMDZkMzE4YTQxYzlhZjExOWMyOGYwNWY4NjQ5ZTU2YzE= --classic
error: snap "kubectl" is not available on 1.16/stable but is available to install on the following
tracks:
latest/stable snap refresh --stable kubectl
1.15/stable snap refresh --channel=1.15 kubectl
1.14/stable snap refresh --channel=1.14 kubectl
1.13/stable snap refresh --channel=1.13 kubectl
1.12/stable snap refresh --channel=1.12 kubectl
1.11/stable snap refresh --channel=1.11 kubectl
1.10/stable snap refresh --channel=1.10 kubectl
1.9/stable snap refresh --channel=1.9 kubectl
1.8/stable snap refresh --channel=1.8 kubectl
1.7/stable snap refresh --channel=1.7 kubectl
1.6/stable snap refresh --channel=1.6 kubectl
1.5/stable snap refresh --channel=1.5 kubectl
Please be mindful that different tracks may include different features. Get more information
with 'snap info kubectl'.
ubuntu@juju-faa4c5-4:~$ snap info kubectl
name: kubectl
summary: Command line client for controlling a Kubernetes cluster.
publisher: Canonical✓
contact: https://www.ubuntu.com/kubernetes
license: unset
description: |
kubectl is a command line client for running commands against Kubernetes
clusters.
For more information about kubectl, including syntax, descriptions of command operations, and
common examples, see the [overview](https://kubernetes.io/docs/reference/kubectl/overview/). For
details about each command, including all the supported flags and subcommands, see the [kubectl
reference
documentation](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands/).
commands:
- kubectl
snap-id: ZgG2URycDgvxSVskfoZxn44uaRMw0iwe
tracking: 1.16/stable
refresh-date: today at 14:19 UTC
channels:
stable: 1.16.0 2019-09-27 (1249) 11MB classic
candidate: 1.16.0 2019-09-27 (1249) 11MB classic
beta: 1.16.0 2019-09-27 (1249) 11MB classic
edge: 1.16.0 2019-09-27 (1249) 11MB classic
1.17/stable: –
1.17/candidate: –
1.17/beta: –
1.17/edge: 1.17.0-alpha.0 2019-09-18 (1235) 11MB classic
1.16/stable: 1.16.0 2019-09-19 (1249) 11MB classic
1.16/candidate: 1.16.0-rc.2 2019-09-13 (1202) 11MB classic
1.16/beta: 1.16.1-beta.0 2019-09-18 (1228) 11MB classic
1.16/edge: 1.16.1-beta.0 2019-09-18 (1228) 11MB classic
1.15/stable: 1.15.4 2019-09-18 (1234) 10MB classic
1.15/candidate: 1.15.3 2019-08-21 (1189) 10MB classic
1.15/beta: 1.15.5-beta.0 2019-09-18 (1208) 10MB classic
1.15/edge: 1.15.5-beta.0 2019-09-18 (1208) 10MB classic
1.14/stable: 1.14.7 2019-09-18 (1233) 10MB classic
1.14/candidate: 1.14.6 2019-08-21 (1188) 10MB classic
1.14/beta: 1.14.8-beta.0 2019-09-18 (1207) 10MB classic
1.14/edge: 1.14.8-beta.0 2019-09-18 (1207) 10MB classic
1.13/stable: 1.13.11 2019-09-18 (1243) 10MB classic
1.13/candidate: 1.13.10 2019-08-21 (1187) 10MB classic
1.13/beta: 1.13.12-beta.0 2019-09-18 (1206) 10MB classic
1.13/edge: 1.13.12-beta.0 2019-09-18 (1206) 10MB classic
1.12/stable: 1.12.9 2019-06-05 (1004) 11MB classic
1.12/candidate: 1.12.9 2019-05-29 (1004) 11MB classic
1.12/beta: 1.12.9 2019-05-29 (1004) 11MB classic
1.12/edge: 1.12.9 2019-05-29 (1004) 11MB classic
1.11/stable: 1.11.9 2019-03-29 (864) 11MB classic
1.11/candidate: 1.11.9 2019-03-26 (864) 11MB classic
1.11/beta: 1.11.9 2019-03-26 (864) 11MB classic
1.11/edge: 1.11.9 2019-03-26 (864) 11MB classic
1.10/stable: 1.10.13 2019-02-27 (743) 10MB classic
1.10/candidate: 1.10.13 2019-03-21 (836) 10MB classic
1.10/beta: 1.10.13 2019-03-21 (836) 10MB classic
1.10/edge: 1.10.13 2019-03-21 (836) 10MB classic
1.9/stable: 1.9.11 2018-10-08 (454) 12MB classic
1.9/candidate: 1.9.11 2018-10-17 (466) 12MB classic
1.9/beta: 1.9.11 2018-10-17 (466) 12MB classic
1.9/edge: 1.9.11 2018-10-17 (466) 12MB classic
1.8/stable: 1.8.15 2018-07-11 (435) 10MB classic
1.8/candidate: 1.8.15 2018-10-17 (465) 10MB classic
1.8/beta: 1.8.15 2018-10-17 (465) 10MB classic
1.8/edge: 1.8.15 2018-10-17 (465) 10MB classic
1.7/stable: 1.7.16 2018-06-06 (394) 13MB classic
1.7/candidate: 1.7.16 2018-10-17 (464) 13MB classic
1.7/beta: 1.7.16 2018-10-17 (464) 13MB classic
1.7/edge: 1.7.16 2018-10-17 (464) 13MB classic
1.6/stable: 1.6.13 2017-11-30 (233) 12MB classic
1.6/candidate: 1.6.13 2018-10-17 (463) 12MB classic
1.6/beta: 1.6.13 2018-10-17 (463) 12MB classic
1.6/edge: 1.6.13 2018-10-17 (463) 12MB classic
1.5/stable: 1.5.5 2017-05-17 (3) 9MB classic
1.5/candidate: 1.5.5 2017-05-17 (3) 9MB classic
1.5/beta: 1.5.5 2017-05-17 (3) 9MB classic
1.5/edge: 1.5.5 2017-05-17 (3) 9MB classic
installed: 1.16.0 (1249) 11MB classic,in-cohort