A network related operation failed in a context of no network access

Following this tutorial: https://snapcraft.io/docs/snapcraft-overview running command “snapcraft --debug” led to an error “A network related operation failed in a context of no network access”. I’m unable to figure out what I’m doing wrong. Help is greatly appreciated.

I don’t have any custom firewall. Please note that my network connection and access are fine. I wouldn’t be able to write here if it wasn’t. :slight_smile: I’m running Ubuntu 24.04 LTS.

Do you have Docker installed?

Can you reproduce this with just lxc?

lxc launch ubuntu:24.04 c1
lxc shell c1 -- getent hosts snapcraft.io

Have you seen this thread?

Yes, I have docker installed.

Here is output of lxc commands:

$ lxc launch ubuntu:24.04 c1
Launching c1
$ lxc shell c1 -- getent hosts snapcraft.io
2620:2d:4000:1::27 snapcraft.io
2620:2d:4000:1::26 snapcraft.io
2620:2d:4000:1::28 snapcraft.io

Looks like internet connection works ok on lxc?

No firewalld installed but iptables seems to have some docker-specific entries.

Here is the full log of last run if it helps: pastebin.com/UJ0phcZd