app-center icon indicating copy to clipboard operation
app-center copied to clipboard

App Center (Ubuntu 24.04) not working behind corporate proxy

Open Langohr23 opened this issue 1 year ago โ€ข 2 comments

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:

  1. In the operating systems Network -> Proxy tap. First via a WPAD file, but I also tried it with a manuel configuration.
  2. For APT in : /etc/apt/apt.conf.d/ (http, ftp and https)
  3. For the terminal in "etc/enviornment" (HTTP and HTTPS)

I always get the following error in the App center: image

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

Langohr23 avatar May 08 '24 06:05 Langohr23

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.

d-loose avatar May 08 '24 07:05 d-loose

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"

SergeyNovak777 avatar May 14 '24 16:05 SergeyNovak777

Error handling of this issue is addressed in #1723

d-loose avatar Jul 11 '24 10:07 d-loose