App Center (Ubuntu 24.04) not working behind corporate proxy
Hello together,
I have setup Ubuntu 24.04. at my company PC. The network needs a corporate proxy (non intercepting, just a forwarding proxy). Everything works fine (APT in the terminal, other applications in the terminal, Browsers etc.) except the App Center.
I have configured our proxy in the following locations:
- In the operating systems Network -> Proxy tap. First via a WPAD file, but I also tried it with a manuel configuration.
- For APT in : /etc/apt/apt.conf.d/ (http, ftp and https)
- For the terminal in "etc/enviornment" (HTTP and HTTPS)
I always get the following error in the App center:
In the Logs I get the following error:
SnapdException: SnapdException(kind: null, message: cannot list updates: Post "https://api.snapcraft.io/v2/snaps/refresh": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers))
Thank you for you help!
Thomas
Thanks for your report! Can you successfully interact with snapd on the command line? Are there any errors if you run snap install hello or snap refresh? If that's the case I'd point you in the direction of the snapcraft forums for support, as we don't have any influence on that in the frontend.
In any case I think we need a more graceful error handling here.
Hello, you can trying write proxy for snap
sudo snap set system proxy.http="your_proxy:port"
sudo snap set system proxy.https="your_proxy:port"
in my work pc:
sudo snap set system proxy.http="http://proxy.unn.ru:8080"
sudo snap set system proxy.https="http://proxy.unn.ru:8080"
Error handling of this issue is addressed in #1723