Failure installing local snap in classic ubuntu offline

Hi
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
       https://search.apps.ubuntu.com/api/v1/snaps/details/core?channel=stable&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement%2Cchannel_maps_list:
       net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting
       headers)

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