Gnome-calculator failed to create symbolic link

still same problem on a new install from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180611)

still same problem on a new install from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180620) … might be related to seeding not being complete yet … still not completed?

Can you please remove the gnome-calculator snap and reinstall it again? So we can rule out any issues related to snap seeding after first boot.

corrado@corrado-p13-cc-0620:~$ snap remove gnome-calculator
error: cannot remove “gnome-calculator”: snap “gnome-calculator” has “seed” change in progress
corrado@corrado-p13-cc-0620:~$

Can you please run snap changes and then snap tasks N for the N that corresponds to the change that seeds the system and paste the result here.

corrado@corrado-p13-cc-0620:~$ snap changes
ID Status Spawn Ready Summary
1 Doing yesterday at 17:37 CEST - Initialize system state
2 Done yesterday at 17:37 CEST yesterday at 17:37 CEST Initialize device
3 Done yesterday at 19:36 CEST yesterday at 19:36 CEST Connect gnome-calculator:gnome-3-26-1604 to gnome-3-26-1604:gnome-3-26-1604

corrado@corrado-p13-cc-0620:~$

what is the value of N I should use?

corrado@corrado-p13-cc-0620:~$ snap tasks 1
Status Spawn Ready Summary
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Ensure prerequisites for “core” are available
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Prepare snap “/var/lib/snapd/seed/snaps/core_4830.snap” (4830)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Mount snap “core” (4830)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Copy snap “core” data
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “core” (4830) security profiles
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Make snap “core” (4830) available to the system
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “core” (4830) security profiles (phase 2)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Automatically connect eligible plugs and slots of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Set automatic aliases for snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “core” aliases
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run install hook of “core” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Start snap “core” (4830) services
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run configure hook of “core” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Ensure prerequisites for “gnome-3-26-1604” are available
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Prepare snap “/var/lib/snapd/seed/snaps/gnome-3-26-1604_64.snap” (64)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Mount snap “gnome-3-26-1604” (64)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Copy snap “gnome-3-26-1604” data
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-3-26-1604” (64) security profiles
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Make snap “gnome-3-26-1604” (64) available to the system
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-3-26-1604” (64) security profiles (phase 2)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Automatically connect eligible plugs and slots of snap “gnome-3-26-1604”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Set automatic aliases for snap “gnome-3-26-1604”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-3-26-1604” aliases
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run install hook of “gnome-3-26-1604” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Start snap “gnome-3-26-1604” (64) services
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run configure hook of “gnome-3-26-1604” snap if present
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Ensure prerequisites for “gnome-calculator” are available
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Prepare snap “/var/lib/snapd/seed/snaps/gnome-calculator_178.snap” (178)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Mount snap “gnome-calculator” (178)
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Copy snap “gnome-calculator” data
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-calculator” (178) security profiles
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Make snap “gnome-calculator” (178) available to the system
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Setup snap “gnome-calculator” (178) security profiles (phase 2)
Doing yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-calculator”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-calculator”
Do yesterday at 17:37 CEST - Setup snap “gnome-calculator” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-calculator” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-calculator” (178) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-calculator” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gnome-characters” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gnome-characters_101.snap” (101)
Do yesterday at 17:37 CEST - Mount snap “gnome-characters” (101)
Do yesterday at 17:37 CEST - Copy snap “gnome-characters” data
Do yesterday at 17:37 CEST - Setup snap “gnome-characters” (101) security profiles
Do yesterday at 17:37 CEST - Make snap “gnome-characters” (101) available to the system
Do yesterday at 17:37 CEST - Setup snap “gnome-characters” (101) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-characters”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-characters”
Do yesterday at 17:37 CEST - Setup snap “gnome-characters” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-characters” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-characters” (101) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-characters” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gnome-logs” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gnome-logs_37.snap” (37)
Do yesterday at 17:37 CEST - Mount snap “gnome-logs” (37)
Do yesterday at 17:37 CEST - Copy snap “gnome-logs” data
Do yesterday at 17:37 CEST - Setup snap “gnome-logs” (37) security profiles
Do yesterday at 17:37 CEST - Make snap “gnome-logs” (37) available to the system
Do yesterday at 17:37 CEST - Setup snap “gnome-logs” (37) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-logs”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-logs”
Do yesterday at 17:37 CEST - Setup snap “gnome-logs” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-logs” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-logs” (37) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-logs” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gnome-system-monitor” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gnome-system-monitor_45.snap” (45)
Do yesterday at 17:37 CEST - Mount snap “gnome-system-monitor” (45)
Do yesterday at 17:37 CEST - Copy snap “gnome-system-monitor” data
Do yesterday at 17:37 CEST - Setup snap “gnome-system-monitor” (45) security profiles
Do yesterday at 17:37 CEST - Make snap “gnome-system-monitor” (45) available to the system
Do yesterday at 17:37 CEST - Setup snap “gnome-system-monitor” (45) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gnome-system-monitor”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gnome-system-monitor”
Do yesterday at 17:37 CEST - Setup snap “gnome-system-monitor” aliases
Do yesterday at 17:37 CEST - Run install hook of “gnome-system-monitor” snap if present
Do yesterday at 17:37 CEST - Start snap “gnome-system-monitor” (45) services
Do yesterday at 17:37 CEST - Run configure hook of “gnome-system-monitor” snap if present
Do yesterday at 17:37 CEST - Ensure prerequisites for “gtk-common-themes” are available
Do yesterday at 17:37 CEST - Prepare snap “/var/lib/snapd/seed/snaps/gtk-common-themes_319.snap” (319)
Do yesterday at 17:37 CEST - Mount snap “gtk-common-themes” (319)
Do yesterday at 17:37 CEST - Copy snap “gtk-common-themes” data
Do yesterday at 17:37 CEST - Setup snap “gtk-common-themes” (319) security profiles
Do yesterday at 17:37 CEST - Make snap “gtk-common-themes” (319) available to the system
Do yesterday at 17:37 CEST - Setup snap “gtk-common-themes” (319) security profiles (phase 2)
Do yesterday at 17:37 CEST - Automatically connect eligible plugs and slots of snap “gtk-common-themes”
Do yesterday at 17:37 CEST - Set automatic aliases for snap “gtk-common-themes”
Do yesterday at 17:37 CEST - Setup snap “gtk-common-themes” aliases
Do yesterday at 17:37 CEST - Run install hook of “gtk-common-themes” snap if present
Do yesterday at 17:37 CEST - Start snap “gtk-common-themes” (319) services
Do yesterday at 17:37 CEST - Run configure hook of “gtk-common-themes” snap if present
Do yesterday at 17:37 CEST - Mark system seeded
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-plug-core-support-plug of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Connect core:core-support-plug to core:core-support
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-plug-core-support-plug of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-plug-core-support-plug of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook prepare-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Connect core:core-support-plug to core:core-support
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-slot-core-support of snap “core”
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Run hook connect-plug-core-support-plug of snap “core”


Make snap “core” (4830) available to the system

2018-06-20T17:37:38+02:00 INFO Requested daemon restart.


Setup snap “core” (4830) security profiles (phase 2)

2018-06-20T17:37:38+02:00 INFO Waiting for restart…

corrado@corrado-p13-cc-0620:~$ snap tasks 2
Status Spawn Ready Summary
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Generate device key
Done yesterday at 17:37 CEST yesterday at 17:37 CEST Request device serial

corrado@corrado-p13-cc-0620:~$ snap tasks 3
Status Spawn Ready Summary
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook prepare-plug-gnome-3-26-1604 of snap “gnome-calculator”
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook prepare-slot-gnome-3-26-1604 of snap “gnome-3-26-1604”
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Connect gnome-calculator:gnome-3-26-1604 to gnome-3-26-1604:gnome-3-26-1604
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook connect-slot-gnome-3-26-1604 of snap “gnome-3-26-1604”
Done yesterday at 19:36 CEST yesterday at 19:36 CEST Run hook connect-plug-gnome-3-26-1604 of snap “gnome-calculator”

corrado@corrado-p13-cc-0620:~$

output from snap tasks 1 speaks about gnome-characters, gnome-logs and gnome-system-monitor but i don’t see them
corrado@corrado-p13-cc-0620:~$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.33 4830 stable canonical core
gnome-3-26-1604 3.26.0 64 stable/… canonical -
gnome-calculator 3.28.1 178 stable/… canonical -
corrado@corrado-p13-cc-0620:~$

This seems to be stuck

Can you please put triple backticks (```) around the terminal output, it will render much better here.

CC @pstolowski is this the same auto-connect bug we reverted a while ago?

On a different partition same PC installed from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180509)
gnome-calculator was running smoothly until last update few minutes ago but now i see the same problem!!!

corrado@corrado-p6-cc-0509:~$ snap changes
error: no changes found
corrado@corrado-p6-cc-0509:~$ snap run 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-p6-cc-0509:~$ snap changes
ID   Status  Spawn                Ready                Summary
10   Done    today at 17:49 CEST  today at 17:50 CEST  Auto-refresh snap "core"

corrado@corrado-p6-cc-0509:~$ 

corrado@corrado-p6-cc-0509:~$ snap list
Name                  Version       Rev   Tracking  Developer  Notes
chromium              67.0.3396.62  353   stable    canonical  -
core                  16-2.33       4830  stable    canonical  core
gnome-3-26-1604       3.26.0        64    stable/…  canonical  -
gnome-calculator      3.28.1        178   stable/…  canonical  -
gnome-characters      3.28.2        101   stable/…  canonical  -
gnome-logs            3.28.2        37    stable/…  canonical  -
gnome-system-monitor  3.26.0        45    stable    canonical  -
gtk-common-themes     0.1           319   stable    canonical  -
corrado@corrado-p6-cc-0509:~$ 

@corradoventu Coud you please show the output of snap change 10?

Status  Spawn                Ready                Summary
Done    today at 17:49 CEST  today at 17:49 CEST  Ensure prerequisites for "core" are available
Done    today at 17:49 CEST  today at 17:50 CEST  Download snap "core" (4830) from channel "stable"
Done    today at 17:49 CEST  today at 17:50 CEST  Fetch and check assertions for snap "core" (4830)
Done    today at 17:49 CEST  today at 17:50 CEST  Mount snap "core" (4830)
Done    today at 17:49 CEST  today at 17:50 CEST  Run pre-refresh hook of "core" snap if present
Done    today at 17:49 CEST  today at 17:50 CEST  Stop snap "core" services
Done    today at 17:49 CEST  today at 17:50 CEST  Remove aliases for snap "core"
Done    today at 17:49 CEST  today at 17:50 CEST  Make current revision for snap "core" unavailable
Done    today at 17:49 CEST  today at 17:50 CEST  Copy snap "core" data
Done    today at 17:49 CEST  today at 17:50 CEST  Setup snap "core" (4830) security profiles
Done    today at 17:49 CEST  today at 17:50 CEST  Make snap "core" (4830) available to the system
Done    today at 17:49 CEST  today at 17:50 CEST  Setup snap "core" (4830) security profiles (phase 2)
Done    today at 17:49 CEST  today at 17:50 CEST  Automatically connect eligible plugs and slots of snap "core"
Done    today at 17:49 CEST  today at 17:50 CEST  Set automatic aliases for snap "core"
Done    today at 17:49 CEST  today at 17:50 CEST  Setup snap "core" aliases
Done    today at 17:49 CEST  today at 17:50 CEST  Run post-refresh hook of "core" snap if present
Done    today at 17:49 CEST  today at 17:50 CEST  Start snap "core" (4830) services
Done    today at 17:49 CEST  today at 17:50 CEST  Clean up "core" (4830) install
Done    today at 17:49 CEST  today at 17:50 CEST  Run configure hook of "core" snap if present

......................................................................
Make snap "core" (4830) available to the system

2018-06-21T17:50:33+02:00 INFO Requested daemon restart.

......................................................................
Setup snap "core" (4830) security profiles (phase 2)

2018-06-21T17:50:33+02:00 INFO Waiting for restart...

corrado@corrado-p6-cc-0509:~$ 

note: snap core before updates was
core 16-2.32.8 4650 stable canonical core
now
core 16-2.33 4830 stable canonical core

I’m looking at it. I’m able to reproduce with fresh install of daily cosmic image.

Ok, after some investigation and discussion on IRC it turns out the problem (and fix) are known but for some reason the fix hasn’t landed in archives (nor the cosmic image) yet - see https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/1772844

changed /var/lib/snapd/seed/seed.yaml moving

name: gtk-common-themes
channel: stable/ubuntu-18.10
file: gtk-common-themes_319.snap

before the calculator entry as suggested in https://ubuntuforums.org/showthread.php?t=2393347

corrado@corrado-HP-p4-cc-0620:~$ snap abort 3
corrado@corrado-HP-p4-cc-0620:~$ snap changes
ID Status Spawn Ready Summary
1 Undone 4 days ago, at 09:33 CEST today at 07:14 CEST Initialize system state
3 Undone today at 07:14 CEST today at 16:22 CEST Initialize system state
4 Doing today at 16:22 CEST - Initialize system state

corrado@corrado-HP-p4-cc-0620:~$ snap changes
ID Status Spawn Ready Summary
1 Undone 4 days ago, at 09:33 CEST today at 07:14 CEST Initialize system state
3 Undone today at 07:14 CEST today at 16:22 CEST Initialize system state
4 Done today at 16:22 CEST today at 16:23 CEST Initialize system state

corrado@corrado-HP-p4-cc-0620:~$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.33 4830 stable canonical core
gnome-3-26-1604 3.26.0 64 stable/… canonical -
gnome-calculator 3.28.1 178 stable/… canonical -
gnome-characters 3.28.2 101 stable/… canonical -
gnome-logs 3.28.2 37 stable/… canonical -
gnome-system-monitor 3.26.0 45 stable/… canonical -
gtk-common-themes 0.1 319 stable/… canonical -
corrado@corrado-HP-p4-cc-0620:~$

still same problem with Ubuntu installed from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180708)

still same problem with Ubuntu installed from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180915)

i dont think reporting the bug status weekly is of much help here …

as long as the ubuntu-meta status in https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/1772844 does not change it will simply not be fixed…

(a seed change needs a subsequent re-generation of -meta and an upload, that simply didnt happen yet and the “Confirmed” bug status reflects that… i also doubt the people caring for that package read this forum so they will not notice the weekly pings)

On a Bionic system, gnome-calculator fails to start:

$ /snap/bin/gnome-calculator
ln: failed to create symbolic link '/home/sdeziel/snap/gnome-calculator/180/snap/gnome-calculator/180/Documents': No such file or directory
ln: failed to create symbolic link '/home/sdeziel/snap/gnome-calculator/180/snap/gnome-calculator/180/Desktop': No such file or directory
ln: failed to create symbolic link '/home/sdeziel/snap/gnome-calculator/180/snap/gnome-calculator/180/Downloads': No such file or directory
ln: failed to create symbolic link '/home/sdeziel/snap/gnome-calculator/180/snap/gnome-calculator/180/Music': No such file or directory
ln: failed to create symbolic link '/home/sdeziel/snap/gnome-calculator/180/snap/gnome-calculator/180/Pictures': No such file or directory
ln: failed to create symbolic link '/home/sdeziel/snap/gnome-calculator/180/snap/gnome-calculator/180/Videos': No such file or directory
ln: failed to create symbolic link '/home/sdeziel/snap/gnome-calculator/180/snap/gnome-calculator/180/Templates': No such file or directory
Unable to init server: Could not connect: Connection refused

(gnome-calculator:23594): Gtk-WARNING **: 11:43:49.672: cannot open display: :0

But it seems to be related to the Apparmor confinement:

audit: type=1400 audit(1532100801.448:326): apparmor="DENIED" operation="open" profile="snap.gnome-calculator.gnome-calculator" name="/home/sdeziel/.config/user-dirs.dirs" pid=19518 comm="head" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
audit: type=1400 audit(1532100801.460:327): apparmor="DENIED" operation="open" profile="snap.gnome-calculator.gnome-calculator" name="/etc/xdg/user-dirs.conf" pid=19533 comm="xdg-user-dirs-u" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
audit: type=1400 audit(1532100801.508:328): apparmor="DENIED" operation="connect" profile="snap.gnome-calculator.gnome-calculator" pid=19472 comm="gnome-calculato" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/.X11-unix/X0" peer="unconfined"

This was fixed for me with snapd:

$ snap version
snap    2.36.2
snapd   2.36.2
series  16
ubuntu  18.04
kernel  4.15.0-43-generic

And gnome-calculator 3.30.1:

$ snap info gnome-calculator
name:      gnome-calculator
summary:   GNOME Calculator
publisher: Canonical✓
license:   unset
description: |
  GNOME Calculator is an application that solves mathematical equations.
  Though it at first appears to be a simple calculator with only basic
  arithmetic operations, you can switch into Advanced, Financial, or
  Programming mode to find a surprising set of capabilities.
  
  The Advanced calculator supports many operations, including:
  logarithms, factorials, trigonometric and hyperbolic functions,
  modulus division, complex numbers, random number generation, prime
  factorization and unit conversions.
  
  Financial mode supports several computations, including periodic interest
  rate, present and future value, double declining and straight line
  depreciation, and many others.
  
  Programming mode supports conversion between common bases (binary, octal,
  decimal, and hexadecimal), boolean algebra, one’s and two’s complementation,
  character to character code conversion, and more.
commands:
  - gnome-calculator
snap-id:      J8OcDPQ0JM8dbvk29HRqpWVI9kBw0atG
tracking:     stable
refresh-date: today at 13:44 EST
channels:                                   
  stable:    3.30.1               (260) 2MB -
  candidate: 3.30.1               (260) 2MB -
  beta:      3.28.2               (183) 2MB -
  edge:      3.30.0+git42.8307a34 (257) 2MB -
installed:   3.30.1               (260) 2MB -