UC 20 snap install kubectl fails

The kubectl snap fails to install on UC 20 on a RPI4 with this error:

$ sudo snap install kubectl --classic
error: snap “kubectl” requires classic confinement which is only available on classic systems

I tried using lxd to manually build the snap resource and locally install it with --dangerous but it did not work since it said that it required classic confinement - which I thought the --dangerous flag should resolve.

$ sudo snap install ./kubectl_1.20.1_arm64.snap --dangerous --classic
error: snap “kubectl” requires classic confinement which is only available on classic systems

Any tips would be helpful. Thanks.

Slowly figuring it out - I followed these instructions to get my setup working

Classic snaps cannot be installed on Ubuntu Core

1 Like