Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Center (Ubuntu 24.04) not working behind corporate proxy #1668

Open
Langohr23 opened this issue May 8, 2024 · 2 comments
Open

App Center (Ubuntu 24.04) not working behind corporate proxy #1668

Langohr23 opened this issue May 8, 2024 · 2 comments

Comments

@Langohr23
Copy link

Langohr23 commented May 8, 2024

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

@d-loose
Copy link
Member

d-loose commented May 8, 2024

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.

@SergeyNovak777
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants