Install snap files on offline CentOS machine(without internet access)

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

Hi @Talzzz,

This is basically what it says on the tin: you’re missing prerequisites of the snap. Most likely it is the core or core18 snap, depending on what the snap was built against. You can find out more about the snap with snap info <snap_name>.

You could file a bug at the snapd bugtracker that it could be more helpful, listing the prerequisites.

1 Like

Hi @Saviq and thank you very much!