Ubuntu Snap Store can't download resources when proxy is set to "auto"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Jamie Strandboge | ||
snapd (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
The problem is extremely simple to reproduce:
1. Install a Ubuntu 20.04 Beta
2. Browse to Settings / Network / Network Proxy and set to Automatic
3. Open the Ubuntu Store and notice that images fail to load
This appears to be AppArmor related as per the errors in the logs I see:
Apr 05 10:39:25 fotsies-ubuntu-vm dbus-daemon[1618]: apparmor="DENIED" operation=
Apr 05 10:39:25 fotsies-ubuntu-vm dbus-daemon[1618]: apparmor="DENIED" operation=
Apr 05 10:39:25 fotsies-ubuntu-vm dbus-daemon[1618]: apparmor="DENIED" operation=
Apr 05 10:39:25 fotsies-ubuntu-vm dbus-daemon[1618]: apparmor="DENIED" operation=
...
Apr 05 10:39:37 fotsies-ubuntu-vm snap-store[2323]: Result of screenshot downloading attempt with status code '7': GDBus.Error:
Apr 05 10:39:37 fotsies-ubuntu-vm snap-store[2323]: Result of screenshot downloading attempt with status code '7': GDBus.Error:
Apr 05 10:39:37 fotsies-ubuntu-vm snap-store[2323]: not handling error invalid-format for action refine: server returned no data
Apr 05 10:39:37 fotsies-ubuntu-vm snap-store[2323]: not handling error failed for action refine: Invalid string value converting to GVariant
However, I do also see a huge amount more AppArmor DENIES for this particular process.
I've attempted to set the AppArmor profile for the snap store to complain, but simply don't know how:
root@fotsies-
apparmor module is loaded.
30 profiles are loaded.
30 profiles are in enforce mode.
/snap/
/snap/
/usr/bin/evince
/usr/
/usr/
/usr/
/usr/
/usr/bin/man
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/sbin/cupsd
/usr/
/usr/
/{,usr/
ippusbxd
lsb_release
man_filter
man_groff
nvidia_modprobe
nvidia_
snap-
snap-
snap.
snap.
snap.
0 profiles are in complain mode.
3 processes have profiles defined.
3 processes are in enforce mode.
/usr/
/usr/sbin/cupsd (834)
/snap/
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
root@fotsies-
root 877 1 0 10:38 ? 00:00:01 /usr/lib/
fots 2323 1872 2 10:39 ? 00:00:05 /snap/snap-
root 4157 3125 0 10:43 pts/0 00:00:00 grep --color=auto -i snap
root@fotsies-
Profile for /snap/snap-
This is the version of the snap store I see on my system:
Name Version Rev Tracking Publisher Notes
snap-store 20200401.4cde4f1 336 latest/stable/… canonical✓ -
Any help is greatly appreciated
Fotis
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: snapd 2.44.2+20.04
ProcVersionSign
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu22
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 7 21:23:37 2020
InstallationDate: Installed on 2020-04-04 (3 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
ProcEnviron:
LANGUAGE=en_AU:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
Changed in snapd (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in snapd: | |
status: | New → In Progress |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Status changed to 'Confirmed' because the bug affects multiple users.