Not sure what exactly the cause is of this, but the docker image at
snapcore/snapcraft:stable currently is failing for us reliabily because it can’t resolve some IP address needed for the package
15:25:18 Err:92 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-libc-dev amd64 4.4.0-135.161 15:25:18 404 Not Found [IP: 220.127.116.11 80] ... 15:25:25 Fetched 160 MB in 7s (20.2 MB/s) 15:25:25 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.4.0-135.161_amd64.deb 404 Not Found [IP: 18.104.22.168 80] 15:25:25 15:25:25 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
You can reproduce this locally by attempting to perform the build for the EdgeX project by doing the following:
git clone https://github.com/edgexfoundry/edgex-go.git snap/build.sh
which will launch the docker container and attempt to run the build. Also note that this is only reproducible on x86 (obvious since the docker image for snapcraft is only published for x86).
Lastly, if you just want to look at the full build, take a look at a recent Jenkins build we have that fails: https://jenkins.edgexfoundry.org/job/edgex-go-snap-master-verify-snap/79/