Failure installing local snap in classic ubuntu offline

I’ve run into problems trying to run a local snap in a classic ubuntu system. The system is not connected to the internet. The file xxx_0.1_amd64.snap is in the current directory:

~/$ sudo snap install --dangerous xxx_0.1_amd64.snap 
error: cannot install snap file: Get
       net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting

Got this to work by connecting to the web. The install was looking to download ubuntu core which I was not expecting, but I suppose required… why isn’t it part of snapd if it is?

eventually snapd will allow snap packages to define if they want to run on different cores in the near future (next up after core16 is core18 which is currently being worked on), even cores from other distros (fedora, opensuse, arch), so that snap packages can be built on whatever distro you want to use (currently they require 16.04) and can just tell snapd to use the proper core/base snap… that requires core to be separate.

1 Like