Hello folks,
I need some assistance to track down a problem when using snapcraft to build subiquity.
Those commands worked fine a while ago when I was building subiquity in order to remaster ubuntu-22.04. Now, when trying to remaster ubuntu-24.04, I get
craft-providers error: A network related operation failed in a context of no network access.
Verify that the environment has internet connectivity; see https://craft-providers.readthedocs.io/ for further reference.
Full execution log: '/home/jw/.local/state/snapcraft/log/snapcraft-20240507-133748.717420.log'
Unfortunately, there’s no indication which command failed and what exact the error was. Transcript is attached below.
Any ideas what might be broken here?
$ git clone https://github.com/canonical/subiquity.git
Cloning into 'subiquity'...
remote: Enumerating objects: 43854, done.
remote: Counting objects: 100% (1635/1635), done.
remote: Compressing objects: 100% (768/768), done.
remote: Total 43854 (delta 1041), reused 1356 (delta 858), pack-reused 42219
Receiving objects: 100% (43854/43854), 12.60 MiB | 2.39 MiB/s, done.
Resolving deltas: 100% (33702/33702), done.
$ ( cd subiquity && make install_deps )
sudo apt update && \
sudo apt-get install -y build-essential cloud-init curl dctrl-tools efibootmgr fuseiso gettext gir1.2-umockdev-1.0 git isolinux jq language-selector-common libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libsystemd-dev lsb-release os-prober pandoc pkg-config python3-aiohttp python3-aioresponses python3-apport python3-async-timeout python3-attr python3-bson python3-coverage python3-debian python3-dev python3-distro-info python3-distutils-extra python3-flake8 python3-gi python3-jsonschema python3-more-itertools python3-mypy python3-nose python3-parameterized python3-pip python3-pyflakes python3-pyroute2 python3-pytest python3-pytest-xdist python3-pyudev python3-requests python3-requests-mock python3-requests-unixsocket python3-setuptools python3-systemd python3-urwid python3-wheel python3-yaml ssh-import-id ubuntu-drivers-common umockdev xorriso
[ ... ]
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./scripts/update-part.py curtin
running ('git', 'clone', 'https://git.launchpad.net/curtin', 'curtin')
Cloning into 'curtin'...
remote: Enumerating objects: 27137, done.
remote: Counting objects: 100% (27137/27137), done.
remote: Compressing objects: 100% (8668/8668), done.
remote: Total 27137 (delta 19813), reused 25046 (delta 18295)
Receiving objects: 100% (27137/27137), 3.81 MiB | 4.61 MiB/s, done.
Resolving deltas: 100% (19813/19813), done.
./scripts/update-part.py probert
running ('git', 'clone', 'https://github.com/canonical/probert.git', 'probert')
Cloning into 'probert'...
remote: Enumerating objects: 1800, done.
remote: Counting objects: 100% (332/332), done.
remote: Compressing objects: 100% (141/141), done.
remote: Total 1800 (delta 212), reused 282 (delta 186), pack-reused 1468
Receiving objects: 100% (1800/1800), 431.18 KiB | 2.91 MiB/s, done.
Resolving deltas: 100% (1202/1202), done.
running ('git', '-c', 'advice.detachedHead=false', '-C', 'probert', 'checkout', 'f34ae3c3f942a9c479fe928911053a302e146251')
HEAD is now at f34ae3c Merge pull request #140 from ogayot/nvme-o-tcp
(cd probert && python3 setup.py build_ext -i);
running build_ext
[ ... ]
$ ( cd subiquity && git clone https://github.com/mwhudson/livefs-editor )
Cloning into 'livefs-editor'...
remote: Enumerating objects: 599, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 599 (delta 93), reused 95 (delta 78), pack-reused 468
Receiving objects: 100% (599/599), 127.01 KiB | 1.40 MiB/s, done.
Resolving deltas: 100% (373/373), done.
$ ( cd subiquity && snapcraft pull curtin )
craft-providers error: A network related operation failed in a context of no network access.
Verify that the environment has internet connectivity; see https://craft-providers.readthedocs.io/ for further reference.
Full execution log: '/home/jw/.local/state/snapcraft/log/snapcraft-20240507-133748.717420.log'
$