Can't run gnome-system-monitor - Ubuntu 18.04


#1

First tried to run:

hbarta@karakum:~$ gnome-system-monitor
You need to connect this snap to the gnome platform snap.

You can do this with those commands:
snap install gnome-3-26-1604
snap connect gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604

(the ‘3-26-1604’ number defines the platform version and might change)
hbarta@karakum:~$
hbarta@karakum:~$ snap install gnome-3-26-1604
snap “gnome-3-26-1604” is already installed, see ‘snap help refresh’
hbarta@karakum:~$ snap connect gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604
error: snap “gnome-system-monitor” has no plug named “gnome-3-26-1604”
hbarta@karakum:~$

After that I removed the snap, installed from the Ubuntu repo (confirmed it worked) removed the .deb and reinstalled the snap. Now it reports

hbarta@karakum:~$ gnome-system-monitor
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type=“method_call”, sender=":1.76" (uid=1000 pid=5501 comm=“gnome-system-monitor " label=“snap.gnome-system-monitor.gnome-system-monitor (enforce)”) interface=“org.gtk.Actions” member=“DescribeAll” error name=”(unset)" requested_reply=“0” destination=“org.gnome.SystemMonitor” (uid=1000 pid=3975 comm="gnome-system-monitor " label=“unconfined”)

Ubuntu 18.04.2 fully up to date

hbarta@karakum:~$ snap version
snap 2.37.4+18.04
snapd 2.37.4+18.04
series 16
ubuntu 18.04
kernel 4.15.0-46-generic
hbarta@karakum:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.37.4 6531 stable canonical✓ core
core18 18 782 stable canonical✓ base
gnome-3-26-1604 3.26.0.20190228 82 stable/… canonical✓ -
gnome-3-28-1804 3.28.0-9-gce87599.ce87599 23 stable canonical✓ -
gnome-calculator 3.32.0+git2.cae338ea 352 stable/… canonical✓ -
gnome-characters v3.32.0+git1.9ff74a2 206 stable/… canonical✓ -
gnome-logs 3.32.0 57 stable/… canonical✓ -
gnome-system-monitor 3.32.0 70 stable canonical✓ -
go 1.12.1 3417 stable mwhudson classic
gtk-common-themes 0.1-16-g2287c87 1198 stable/… canonical✓ -
vscode 1.32.3-1552606978 89 stable snapcrafters classic
hbarta@karakum:~$ uname -a
Linux karakum 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
hbarta@karakum:~$ dpkg -l gnome-shell
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±=========================-=================-=================-========================================================
ii gnome-shell 3.28.3-0ubuntu0.1 amd64 graphical shell for the GNOME desktop
hbarta@karakum:~$


#2

Please give me the output of this command:

snap interfaces gnome-system-monitor


#3
hbarta@karakum:~$ snap interfaces gnome-system-monitor
Slot                                       Plug
:desktop                                   gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:desktop-legacy                            gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:gsettings                                 gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:hardware-observe                          gnome-system-monitor
:mount-observe                             gnome-system-monitor
:network-observe                           gnome-system-monitor
:process-control                           gnome-system-monitor
:system-observe                            gnome-system-monitor
:unity7                                    gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
:wayland                                   gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gnome-3-28-1804:gnome-3-28-1804            gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gnome-system-monitor:gnome-system-monitor  -
gtk-common-themes:gtk-3-themes             gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gtk-common-themes:icon-themes              gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
gtk-common-themes:sound-themes             gnome-calculator,gnome-characters,gnome-logs,gnome-system-monitor
hbarta@karakum:~$ 

And… The snap is now working. I’m not sure what changed but I did reboot in between.