snapd doesn't upgrade on bionic when a local installed snap mount is failing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Medium
|
Unassigned |
Bug Description
I installed a snap with 'try' some time ago when generating it, and then I never removed it.
However the actual snap doesn't exist anymore:
ls /var/lib/
lrwxrwxrwx 1 root root 36 feb 23 2017 /var/lib/
lrwxrwxrwx 1 root root 36 feb 23 2017 /var/lib/
lrwxrwxrwx 1 root root 36 feb 23 2017 /var/lib/
But now, snapd is failing when upgrading because it still tries to mount it.
I recognize this is a broken setup, but snapd installation should not hang because of this, but instead skip the mount.
Here's the log I've on apt:
Setting up snapd (2.32+18.04~pre6) ...
Starting snap-bucklespri
Starting snap-bucklespri
Starting snap-bucklespri
Starting snap-cool\
Job for snap-cool\
See "systemctl status "snap-cool\
dpkg: error processing package snapd (--configure):
installed snapd package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-0ubuntu2) ...
dpkg: dependency problems prevent configuration of ubuntu-
ubuntu-
Package snapd is not configured yet.
dpkg: error processing package ubuntu-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-snappy:No apport report written because the error message indicates its a followup error from a previous failure.
ubuntu-snappy depends on snapd; however:
Package snapd is not configured yet.
dpkg: error processing package ubuntu-snappy (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of snapd-xdg-open:
snapd-xdg-open depends on snapd (= 2.32+18.04~pre6); however:
Package snapd is not configured yet.
dpkg: error processing package snapd-xdg-open (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-software-
gnome-
Package snapd is not configured yet.
dpkg: error processing package gnome-software-
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
snapd
ubuntu-
ubuntu-snappy
snapd-xdg-open
gnome-
E: Sub-process /usr/bin/dpkg returned an error code (1)
of course removing the broken symlinks fixed the issue.