Making the Ubuntu Snap Store work with Automatic Proxy on 20.04?
Hey there guys, I really struggled to report this as a bug. Alt+F2 in the Ubuntu Store would show a huge dialog about how the crashed program uses third-party libraries.
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-
Any help is greatly appreciated
Fotis
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply: