I’m trying to install lxd with snap on ubuntu 16.04 server.
As the server has no internet acces, I’ve download the .assert and .snap using ‘snap download lxd’.
This gives me a .snap and .assert file:
After copying to the server, I would like to install it with:
$ sudo snap ack lxd_8011.assert $ sudo snap install lxd_8011.snap
The install fails with:
$ sudo snap ack lxd_8011.assert $ sudo snap install lxd_8011.snap -- ensure prerequisites for "lxd" are available (get https://api.snapcraft.io/api/vs/snaps/details/core?channel=stable&fields=anon_dowload_url%2Carchitecture%2Cchannel%2Cdownload_sha4_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_fileize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Clicense%2Cbase%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement%2Cchannel_maps_list : dial tcp: lookup api.snapcraft.io on [::1]:53: read udp [::1]:53788 -> [::1]:53 read: connection refused)
Indicating to me that the snap tries to connect to the internet to find prerequisites. I’ve searched snap documentation, but I feel this is snap-specific.
tl;dr: Offline install isn’t working. Has this been tested for LXD?