Hi all,
I tried to intsall a snap on an offline machine(without Internet access).
From different threads here I found that the way to do it is:
On machine with Internet connection:
Execute:
snap download <snap_name>
Output:
Fetching snap “<snap_name>”
Fetching assertions for “<snap_name>”
Install the snap with:
snap ack <snap_name>.assert
snap install <snap_name>.snap
Copy both files to a machine without Internet connection
Execute:
snap ack <snap_name>.assert
snap install <snap_name>.snap
On Ubuntu machine I succeeded to install. But on CentOS 7.6 it failed with the following error:
[centos@ip ~]$ sudo snap ack <snap_name>_<ver>.assert
[centos@ip ~]$ sudo snap install <snap_name>_<ver>.snap
error: cannot perform the following tasks:
- Ensure prerequisites for "<snap_name>" are available (Post https://api.snapcraft.io/v2/snaps/refresh: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers))
Please advise,
Thanks