can't refresh or install packages

Bug #1993243 reported by murmel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Invalid
Undecided
Unassigned

Bug Description

fresh installing ubuntu server 22.04, with a proxy (using squid-deb-proxy or packageproxy from snap) gives me this error when trying to install or refresh packages:

$ sudo snap refresh
error: cannot refresh: Post "https://api.snapcraft.io/v2/snaps/refresh": Forbidden

$ sudo snap install canonical-livepatch
error: cannot install "canonical-livepatch": Post "https://api.snapcraft.io/v2/snaps/refresh":
       Forbidden

syslog only ever states:
Oct 18 04:16:16 server snapd[842]: stateengine.go:149: state ensure error: Get "https://api.snapcraft.io/api/v1/snaps/sections": Forbidden
Oct 18 04:16:16 server systemd[1]: Finished Wait until snapd is fully seeded.

this only ever happens when I add a proxy during install. Upgrading from 20.04 or installing 22.04 without a proxy works fine. Even removing the proxy doesn't help (it doesn't "recover").

Tried this also with the old 22.04 GM iso, which happens to also have this bug.

If more logs are needed, I am happy to provide them.

More Information: I am not in control of the router/wifi, as I am moving around. Tested this in a VM, on multiple different (5) Wifis

Revision history for this message
Alberto Mardegan (mardy) wrote :

Moving to snapstore-server for investigation, as I assume that this error is coming from the store server.

affects: snapd (Ubuntu) → snapstore-server
Revision history for this message
William Grant (wgrant) wrote :

squid-deb-proxy and packageproxy only supporting proxying apt archives. Pointing snapd to one of those won't work, and results in the 403 Forbidden that you're seeing.

Changed in snapstore-server:
status: New → Invalid
Revision history for this message
murmel (murmel0) wrote :

sorry, for the late response.

so I can see it as an invalid bug, where the subiquity breaks snapd because it adds a nonworking snap) proxy for snapd? what should I run then for deb and snap?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.