PDA

View Full Version : [ubuntu] 18.04 LTS - Launching gnome-system-monitor from icon gives snap error



jimpye
May 13th, 2018, 01:11 AM
All

Brand new install 18.04 LTS on brand new laptop. All works exceedingly well. However, I have created a favourite for the gnome-system-monitor on the dock. This was working well, I was regularly checking CPU, Memory etc on the new laptop. However, went to launch it this morning (next day) and nothing happened.

/var/log/syslog is reporting:



May 13 10:49:27 xxxx gnome-system-monitor_gnome-system-monitor.desktop[29538]: You need to connect this snap to the gnome platform snap.
May 13 10:49:27 xxxx gnome-system-monitor_gnome-system-monitor.desktop[29538]: You can do this with those commands:
May 13 10:49:27 xxxx gnome-system-monitor_gnome-system-monitor.desktop[29538]: snap install gnome-3-26-1604
May 13 10:49:27 xxxx gnome-system-monitor_gnome-system-monitor.desktop[29538]: snap connect gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604
May 13 10:49:27 xxxx gnome-system-monitor_gnome-system-monitor.desktop[29538]: (the '3-26-1604' number defines the platform version and might change)



At a CLI running running the same gnome-system-monitor command I get same:



$ 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)


Is this a bug worth reporting? What are the ramifications of running the commands suggested? I have not played with snap, so not sure what that last line means about version numbers being a concern.
All the other icons on the dock seem to launch their apps OK. Not aware of any auto updates that might have changed version numbers, I am running with defaults in that area.

Cheers
Jim

kerry_s
May 13th, 2018, 01:17 AM
just run those 2 commands:

snap install gnome-3-26-1604
snap connect gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604

monkeybrain20122
May 13th, 2018, 01:29 AM
Or you can just remove it

sudo snap remove gnome-system-monitor

and install the .deb


sudo apt install gnome-system-monitor

You can see which packages are snap by


snap list

jimpye
May 13th, 2018, 02:42 AM
Cheers

Using some of the commands suggested here is some of my forensic investigation. (The teatime snap was installed so I didn't burn the pizza lol)



xxxx:~$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.32.6 4571 stable canonical core
gnome-3-26-1604 3.26.0 64 stable/… canonical -
gnome-calculator 3.28.1 167 stable/… canonical -
gnome-characters 3.28.0 86 stable/… canonical -
gnome-logs 3.28.0 31 stable/… canonical -
gnome-system-monitor 3.26.0 39 stable/… canonical -
teatime 18.03 89 stable paroj -

xxxx:~$ snap find gnome-system-monitor
Name Version Developer Notes Summary
gnome-system-monitor 3.26.0 canonical - System Monitor

xxxx:~$ apt-cache policy gnome-system-monitor
gnome-system-monitor:
Installed: (none)
Candidate: 3.28.1-1
Version table:
3.28.1-1 500
500 http://nz.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

xxxx:~$ snap changes
ID Status Spawn Ready Summary
1 Done 2018-05-12T03:48:53Z 2018-05-12T03:49:12Z Initialize system state
2 Done 2018-05-12T03:48:53Z 2018-05-12T03:49:57Z Initialize device
3 Done 2018-05-12T07:37:38Z 2018-05-12T07:40:57Z Install "teatime" snap
4 Done 2018-05-12T08:04:01Z 2018-05-12T08:10:26Z Auto-refresh 6 snaps

xxxx:~$ date
Sun May 13 13:21:53 NZST 2018
xxxx:~$

:/var/log# grep snap syslog
May 13 05:45:20 xxxx snapd[11337]: 2018/05/13 05:45:20.808352 storehelpers.go:387: cannot refresh:
May 13 05:45:20 xxxx snapd[11337]: snap "gnome-3-26-1604": snap has no updates available
May 13 05:45:20 xxxx snapd[11337]: snap "gnome-system-monitor": snap has no updates available
May 13 05:45:20 xxxx snapd[11337]: snap "teatime": snap has no updates available
May 13 05:45:20 xxxx snapd[11337]: snap "core": snap has no updates available
May 13 05:45:20 xxxx snapd[11337]: snap "gnome-characters": snap has no updates available
May 13 05:45:20 xxxx snapd[11337]: snap "gnome-calculator": snap has no updates available
May 13 05:45:20 xxxx snapd[11337]: snap "gnome-logs": snap has no updates available
May 13 05:45:20 xxxx snapd[11337]: 2018/05/13 05:45:20.811140 autorefresh.go:338: auto-refresh: all snaps are up-to-date
May 13 06:00:18 xxxx snapd[11337]: 2018/05/13 06:00:18.403513 storehelpers.go:387: cannot refresh:
May 13 06:00:18 xxxx snapd[11337]: snap "gnome-3-26-1604": snap has no updates available
May 13 06:00:18 xxxx snapd[11337]: snap "gnome-calculator": snap has no updates available
May 13 06:00:18 xxxx snapd[11337]: snap "teatime": snap has no updates available
May 13 06:00:18 xxxx snapd[11337]: snap "gnome-logs": snap has no updates available
May 13 06:00:18 xxxx snapd[11337]: snap "gnome-characters": snap has no updates available
May 13 06:00:18 xxxx snapd[11337]: snap "core": snap has no updates available
May 13 06:00:18 xxxx snapd[11337]: snap "gnome-system-monitor": snap has no updates available
May 13 06:00:18 xxxx snapd[11337]: 2018/05/13 06:00:18.406476 autorefresh.go:338: auto-refresh: all snaps are up-to-date
May 13 09:52:56 xxxx gnome-system-monitor_gnome-system-monitor.desktop[26643]: You need to connect this snap to the gnome platform snap.
May 13 09:52:56 xxxx gnome-system-monitor_gnome-system-monitor.desktop[26643]: snap install gnome-3-26-1604
May 13 09:52:56 xxxx gnome-system-monitor_gnome-system-monitor.desktop[26643]: snap connect gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604
May 13 09:54:38 xxxx gnome-system-monitor_gnome-system-monitor.desktop[26708]: You need to connect this snap to the gnome platform snap.
May 13 09:54:38 xxxx gnome-system-monitor_gnome-system-monitor.desktop[26708]: snap install gnome-3-26-1604
May 13 09:54:38 xxxx gnome-system-monitor_gnome-system-monitor.desktop[26708]: snap connect gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604



So it looks like the gnome-system-monitor snap is installed. I am assuming the 1604 at the end of the version number is meaning 16.04 for the previous LTS version.

Anyways. I will try removing the snap and then running the snap install, snap connect commands as suggested. If all falls to big pile of custard, I will try the Apt Repository version.

Again cheers, and thanks for the quick responses.

Jim