Problem removing a snap
Gustavo Niemeyer
gustavo at niemeyer.net
Wed Nov 2 22:06:21 UTC 2016
Ok, thanks for those details. We'll look more deeply into this tomorrow and
try to reproduce the issue.
To fix your problem, can you please try this simple hack to get over the
bug:
sudo mount --bind /snap/ubuntu-core/current /snap/viking-gps/1
This should allow the remove to go through.
On Wed, Nov 2, 2016 at 7:53 PM, Chris <cpollock at embarqmail.com> wrote:
> On Wed, 2016-11-02 at 18:43 -0200, Gustavo Niemeyer wrote:
> > Hi Chris,
> >
> > Can you please try updating your snapd package?
> >
> > Recent releases have a more reliable remove procedure that handles
> > these cases better.
> >
> According to apt-cache policy
>
> chris at localhost:~$ apt-cache policy snapd
> snapd:
> Installed: 2.16ubuntu3
> Candidate: 2.16ubuntu3
> Version table:
> *** 2.16ubuntu3 500
> 500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main
> amd64 Packages
> 100 /var/lib/dpkg/status
> 2.0.2 500
> 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64
> Packages
>
> I tried to upgrade, sudo apt upgrade snapd
>
> chris at localhost:~$ sudo apt upgrade snapd
> [sudo] password for chris:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> snapd is already the newest version (2.16ubuntu3).
> Calculating upgrade... Done
>
>
> > On Wed, Nov 2, 2016 at 6:40 PM, Chris <cpollock at embarqmail.com>
> > wrote:
> > > I went to remove a snap, viking-gps, and it just sat there doing
> > > nothing. I did a CTRL-C to stop the process. So, running snap
> > > changes
> > > showed me
> > >
> > > 343 Doing 2016-11-02T17:22:13Z - Remove
> > > "viking-gps" snap
> > >
> > > Then running snap change 343, since it was still running I get:
> > >
> > > chris at localhost:/snap/viking-gps/1$ snap change 343
> > > Status Spawn Ready Summary
> > > Done 2016-11-02T17:22:13Z 2016-11-02T17:22:14Z Stop snap
> > > "viking-
> > > gps" services
> > > Done 2016-11-02T17:22:13Z 2016-11-02T17:22:16Z Make snap
> > > "viking-
> > > gps" unavailable to the system
> > > Done 2016-11-02T17:22:13Z 2016-11-02T17:22:19Z Remove security
> > > profile for snap "viking-gps" (1)
> > > Done 2016-11-02T17:22:13Z 2016-11-02T17:22:21Z Remove data for
> > > snap "viking-gps" (1)
> > > Doing 2016-11-02T17:22:13Z - Remove snap
> > > "viking-gps" (1) from the system
> > > Do 2016-11-02T17:22:13Z - Discard
> > > interface
> > > connections for snap "viking-gps" (1)
> > >
> > > ...................................................................
> > > ...
> > > Remove snap "viking-gps" (1) from the system
> > >
> > > 2016-11-02T14:47:01-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T14:50:01-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T14:53:01-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T14:56:01-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T14:59:01-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T15:02:01-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T15:06:47-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T15:09:49-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T15:12:50-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > > 2016-11-02T15:15:51-05:00 ERROR cannot remove snap file "viking-
> > > gps",
> > > will retry in 3 mins: umount: /snap/viking-gps/1: not mounted
> > >
> > > The above tells me that all has been done except removing the snap
> > > and
> > > discarding the interface. I ran sudo snap abort 343 which stopped
> > > it.
> > > However the snap still showed up in /snap but was empty. I took a
> > > drastic step and just rmdir the folder under viking-gps and viking-
> > > gps
> > > itself. When I run sudo snap list it still shows up.
> > >
> > > chris at localhost:/snap$ sudo snap list
> > > Name Version Rev Developer Notes
> > > blender-tpaw 2.78-tpaw0 2 tpaw -
> > > directpdf 0.1.4 8 normex devmode
> > > krita 3.0.1.1-snap16 8 krita -
> > > pencilsheep 5 5 pencilsheep -
> > > snapweb 0.21.2 24 canonical -
> > > speed-test 1.7.0.1 2 bartaz -
> > > ubuntu-core 16.04.1 423 canonical -
> > > vice-jz 2.4.27-2 4 jz -
> > > viking-
> > > gps 1 chihchun disabled,broken
> > > wallpaperdownloader 2.3 5 egarcia -
> > >
> > > What snap command do I use to totally remove it from the list of
> > > snaps
> > > on my system?
> > >
> > > --
> > > Chris
> > > KeyID 0xE372A7DA98E6705C
> > > 31.11972; -97.90167 (Elev. 1092 ft)
> > > 15:14:05 up 8 min, 1 user, load average: 4.82, 4.76, 2.53
> > > Ubuntu 16.04.1 LTS, kernel 4.4.0-45-generic #66-Ubuntu SMP Wed Oct
> > > 19 14:12:37 UTC 2016
> > >
> > > --
> > > Snapcraft mailing list
> > > Snapcraft at lists.snapcraft.io
> > > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman
> > > /listinfo/snapcraft
> > >
> >
> >
> > --
> >
> > gustavo @ http://niemeyer.net
> > --
> > Snapcraft mailing list
> > Snapcraft at lists.snapcraft.io
> > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/l
> > istinfo/snapcraft
> --
> Chris
> KeyID 0xE372A7DA98E6705C
> 31.11972; -97.90167 (Elev. 1092 ft)
> 16:35:27 up 1:29, 1 user, load average: 0.07, 0.11, 0.10
> Ubuntu 16.04.1 LTS, kernel 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19
> 14:12:37 UTC 2016
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/snapcraft
>
>
--
gustavo @ http://niemeyer.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161102/ff5a4103/attachment.html>
More information about the Snapcraft
mailing list