Daaler
March 16, 2025, 10:25am
1
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. I’m running Ubuntu 24.04 LTS.
mr_cal
March 24, 2025, 12:49pm
2
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?
Hi, I’m following the tutorial for creating a snap (Python apps ). I’m working on a native ubuntu desktop 22.04 machine and I make use of a proxy server with IP and port 192.168.137.254:8080.
After cloning the “liquidctl” repo in my workspace I created a “snap” folder containing a “snapcraft.yaml” file, identical to the one shown in the tutorial, into the root of the package.
Then I ran the command “snapcraft”, but, after around 70 sec of “creating new base instance from remote…”, it fails issuin…
Daaler
March 25, 2025, 11:03am
3
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
mr_cal
April 2, 2025, 1:14pm
4
Interesting, looks like it’s failing on apt update
in the container.
This documentation may be relevant since you have Docker installed.