Gnome-calculator problem

gnome-calculator does not start from activities or from the launcher, starting it
from terminal gnome-calculator ask to install gnome-3-26-1604 but I have Gnome 3.28.0
corrado@corrado-p13-bb-0319:~$ gnome-calculator
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-calculator:gnome-3-26-1604 gnome-3-26-1604

(the ‘3-26-1604’ number defines the platform version and might change)
corrado@corrado-p13-bb-0319:~$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.31.2 4206 stable canonical core
gimp 2.8.22 30 stable snapcrafters -
gnome-3-26-1604 3.26.0 53 stable/… canonical -
gnome-calculator 3.26.0 75 stable/… canonical -
gnome-characters 3.26.2 50 stable/… canonical -
gnome-logs 3.26.2 23 stable/… canonical -
gnome-system-monitor 3.26.0 31 stable/… canonical -
corrado@corrado-p13-bb-0319:~$ inxi -SCx
System: Host: corrado-p13-bb-0319 Kernel: 4.15.0-12-generic x86_64
bits: 64 gcc: 7.3.0
Desktop: Gnome 3.28.0 (Gtk 3.22.28-1ubuntu3)
Distro: Ubuntu Bionic Beaver (development branch)
CPU: Dual core Intel Core i3-7100 (-MT-MCP-) arch: Skylake rev.9 cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 15648
clock speeds: max: 3900 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz 4: 800 MHz
corrado@corrado-p13-bb-0319:~$
same problem with gnome-system-monitor

You appear to have the gnome-3-26-1604 platform snap installed already, have you run the suggested command to connect gnome-calculator to it?

snap connect gnome-calculator:gnome-3-26-1604 gnome-3-26-1604

No, but i should have a message when i try to start a snap from the
launcher so i opened the problem. Furthermore gnome-3-26-1604 platform snap
has been not automatically updated.

Corrado Venturini

corrado@corrado-p13-bb-0319:~$ gnome-calculator
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-calculator:gnome-3-26-1604 gnome-3-26-1604

(the ‘3-26-1604’ number defines the platform version and might change)
corrado@corrado-p13-bb-0319:~$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.31.2 4206 stable canonical core
gimp 2.8.22 30 stable snapcrafters -
gnome-3-26-1604 3.26.0 53 stable/… canonical -
gnome-calculator 3.26.0 75 stable/… canonical -
gnome-characters 3.26.2 50 stable/… canonical -
gnome-logs 3.26.2 23 stable/… canonical -
gnome-system-monitor 3.26.0 31 stable/… canonical -
corrado@corrado-p13-bb-0319:~$ snap install gnome-3-26-1604
snap “gnome-3-26-1604” is already installed, see “snap refresh --help”
corrado@corrado-p13-bb-0319:~$

Corrado Venturini

the same command does not work for gimp:
corrado@corrado-p13-bb-0319:~$ snap connect
gnome-system-monitor:gnome-3-26-1604 gnome-3-26-1604
corrado@corrado-p13-bb-0319:~$ gnome-system-monitor
corrado@corrado-p13-bb-0319:~$ gimp
Gtk-Message: Failed to load module “gail”
Gtk-Message: Failed to load module “atk-bridge”
Cannot open display:
corrado@corrado-p13-bb-0319:~$ snap connect gimp:gnome-3-26-1604
gnome-3-26-1604
error: snap “gimp” has no plug named “gnome-3-26-1604”
corrado@corrado-p13-bb-0319:~$

corrado@corrado-p13-bb-0319:~$ snap refresh
All snaps up to date.
corrado@corrado-p13-bb-0319:~$ gimp
Gtk-Message: Failed to load module “gail”
Gtk-Message: Failed to load module “atk-bridge”
Cannot open display:
corrado@corrado-p13-bb-0319:~$

Corrado Venturini

Agreed, the lack of feedback is bad UX, and the platform snap should be automatically downloaded and connected when needed. This is being discussed in that other thread.

The gimp snap doesn’t require the gnome platform snap, indeed, so trying to connect it will return an error.

That said, it works well here on my laptop (albeit a very slow first start), so you might want to file a bug against the snap.

We should probably use zenity to pop up an error dialog for that.

I am having the same issue.
I installed ubuntu 18.04 minimal. It had snap 2.31.2 installed.
gnome-calculator, gnome-system-monitor, gnome-logs and gnome-characters snaps all worked and were connected to gnome-3-26-1604.
I also installed gimp and vidcutter and they both worked too.

Then I updated the system and snap 2.32+18.04~pre5 got installed.
No snap works anymore, all gnome apps have to be reconnected, they work if I reconnect them, but I shouldn’t have to re-connect them on every snap update, right? gimp and vidcutter also fail after the update to 2.32+18.04~pre5

for example gnome-logs returned, it was connected before the update to 2.32+18.04~pre5
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-logs:gnome-3-26-1604 gnome-3-26-1604

gimp returns
execl failed: No such file or directory
child exited with status 1

vidcutter returns
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.

snapd 2.32+18.04~pre5 is known to be broken, an update is being prepared (it should be available later today).

Thank you for your reply. I will wait for the new version.

After totay updates problem solved. thanks.

corrado@corrado-p13-bb-0319:~$ snap version
snap 2.32+18.04~pre6
snapd 2.32+18.04~pre6
series 16
ubuntu 18.04
kernel 4.15.0-12-generic
corrado@corrado-p13-bb-0319:~$

Hi all,

I am getting the same issue, the gnome-calculator is not launching and I see the same snap error in the console.

I ran the 2 commands, they completed successfully with no issues:

$ gnome-calculator
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-calculator:gnome-3-26-1604 gnome-3-26-1604

(the ‘3-26-1604’ number defines the platform version and might change)
$ snap install gnome-3-26-1604
error: forbidden
$ gnome-calculator
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-calculator:gnome-3-26-1604 gnome-3-26-1604

(the ‘3-26-1604’ number defines the platform version and might change)
$ sudo snap install gnome-3-26-1604
snap “gnome-3-26-1604” is already installed, see “snap refresh --help”
$ sudo snap connect gnome-calculator:gnome-3-26-1604 gnome-3-26-1604
$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.32.6 4571 stable canonical core
discord 0.0.5 64 stable snapcrafters -
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 -
spotify 1.0.77.338.g758ebd78-41 13 stable spotify -
telegram-desktop 1.2.17 142 stable 3v1n0 -
$ gnome-calculator
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-calculator:gnome-3-26-1604 gnome-3-26-1604

(the ‘3-26-1604’ number defines the platform version and might change)

It looks that I had 2 different gnome-calculators installed, one was versioned 3.28.1 and the other one 1:3.28.1-1ubuntu1. Removing the 3.28.1 solved the problem. Not sure how this happened probably an Ubuntu Software mess up as it seems that this is a duplicate entry in their software manager.

Removing was a bit tricky. Doing apt remove gnome-calculator would remove the working one. When pressing super I could see both calculators in the available applications. Right clicking on each -> show details would reveal which was which. I removed the one not working from there.

Had this issue now, on a newly installed 18.10 ubuntu.
On a simple thing as a calculator, what happened with “apt install gnome-calculator” and it just works?
Should the gnome-calculator really be hit with the “snap hammer”?

This is actually a snapd bug, for some reason it’s not properly mounting the content provided by gnome-3-26-1604 in some situations. For more details see Can't connect interfaces (so can't run snaps)

I had the same problem in my Ubuntu 18.10, and I also tried the commands suggested by the error but didn’t work. So to solve the issue I uninstalled the app from Snap with:

$ snap remove gnome-calculator

And then I installed it but using apt-get:

$ sudo apt-get update
$ sudo apt-get install gnome-calculator

The command is misleading, you should now install gnome-3-28 runtime snap instead.

This is now fixed in the desktop launcher, but it wont land in gnome-calculator snap until the next rebuild.