I just updated our build agent (based on docker) from ubuntu:bionic to ubuntu:focal.
I am installing snapcraft via a RUN apt-get install -y --no-install-recommends snapcraft to be able to upload snaps via build pipeline. Since update to focal, the installation stops with following error:
...
Selecting previously unselected package snapcraft.
(Reading database ... 29548 files and directories currently installed.)
Preparing to unpack .../000-snapcraft_3.0ubuntu1.1_all.deb ...
=> Installing the Snapcraft snap
==> Checking connectivity with the snap store
===> Unable to contact the store, trying every minute for the next 30 minutes
Questions:
Is it possible to install snapcraft on ubuntu:focal docker container?
Is there an alternative? I just need to snapcraft push or snapcraft release within my container.
the snapcraft deb has long been abandoned (it is at 3.x while snapcraft itself is about to move to 7.x), what alan meant is that the two commands will probably not work as expected even if you get the deb installed …