Re: Problem removing a snap

2016-11-02 Thread Gustavo Niemeyer
It wasn't dumb at all.. this looks like an issue that we very much want to
fix, or have already fixed in 2.17 which is due very soon. We'll have a
look and make sure it's sorted.

Thanks for reporting it.

On Wed, Nov 2, 2016 at 9:03 PM, Chris  wrote:

> On Wed, 2016-11-02 at 16:57 -0600, Seth Arnold wrote:
> > On Wed, Nov 02, 2016 at 05:34:10PM -0500, Chris wrote:
> > >
> > > chris@localhost:~$ sudo mount --bind /snap/ubuntu-core/current
> > > /snap/viking-gps/1
> > > [sudo] password for chris:
> > > mount: mount point /snap/viking-gps/1 does not exist
> > Either a file or directory needs to exist in the filesystem for a
> > mount to
> > succeed; so try creating this directory and re-try?
> >
> > sudo mkdir -p /snap/viking-gps/1
> > sudo mount --bind /snap/ubuntu-core/current /snap/viking-gps/1
> > sudo snap remove viking-gps
> >
> > Thanks
>
> Thank you Seth, that did the trick. Greatly appreciated. I'll have to
> save these commands in case I do something dumb again, which I hope not
> to.
>
> Chris
>
> --
> Chris
> KeyID 0xE372A7DA98E6705C
> 31.11972; -97.90167 (Elev. 1092 ft)
> 18:01:20 up 2:55, 1 user, load average: 0.73, 0.35, 0.30
> 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@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>


-- 

gustavo @ http://niemeyer.net
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Problem removing a snap

2016-11-02 Thread Chris
On Wed, 2016-11-02 at 16:57 -0600, Seth Arnold wrote:
> On Wed, Nov 02, 2016 at 05:34:10PM -0500, Chris wrote:
> > 
> > chris@localhost:~$ sudo mount --bind /snap/ubuntu-core/current
> > /snap/viking-gps/1
> > [sudo] password for chris: 
> > mount: mount point /snap/viking-gps/1 does not exist
> Either a file or directory needs to exist in the filesystem for a
> mount to
> succeed; so try creating this directory and re-try?
> 
> sudo mkdir -p /snap/viking-gps/1
> sudo mount --bind /snap/ubuntu-core/current /snap/viking-gps/1
> sudo snap remove viking-gps
> 
> Thanks

Thank you Seth, that did the trick. Greatly appreciated. I'll have to
save these commands in case I do something dumb again, which I hope not
to.

Chris

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
18:01:20 up 2:55, 1 user, load average: 0.73, 0.35, 0.30
Ubuntu 16.04.1 LTS, kernel 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 
UTC 2016


signature.asc
Description: This is a digitally signed message part
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Problem removing a snap

2016-11-02 Thread Seth Arnold
On Wed, Nov 02, 2016 at 05:34:10PM -0500, Chris wrote:
> chris@localhost:~$ sudo mount --bind /snap/ubuntu-core/current
> /snap/viking-gps/1
> [sudo] password for chris: 
> mount: mount point /snap/viking-gps/1 does not exist

Either a file or directory needs to exist in the filesystem for a mount to
succeed; so try creating this directory and re-try?

sudo mkdir -p /snap/viking-gps/1
sudo mount --bind /snap/ubuntu-core/current /snap/viking-gps/1
sudo snap remove viking-gps

Thanks


signature.asc
Description: PGP signature
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Problem removing a snap

2016-11-02 Thread Chris
On Wed, 2016-11-02 at 20:40 -0200, Gustavo Niemeyer wrote:
> 
> There's no need to attempt to remove again. snapd has proper state
> tracking and still remembers that you are trying to remove that snap.
> 
> If you kept the directory mounted as suggested, by now it should
> already be gone.
> 
I'd already removed it manually before your reply with the command you
sent. I admit, I screwed up again

> On Wed, Nov 2, 2016 at 8:34 PM, Chris 
> wrote:
> > On Wed, 2016-11-02 at 20:06 -0200, Gustavo Niemeyer wrote:
> > > 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.
> > >
> > >
> > chris@localhost:~$ sudo mount --bind /snap/ubuntu-core/current
> > /snap/viking-gps/1
> > [sudo] password for chris: 
> > mount: mount point /snap/viking-gps/1 does not exist
> > 
> > chris@localhost:~$ sudo snap remove viking-gps
> > 2016-11-02T17:22:05-05:00 ERROR cannot remove snap file "viking-
> > gps",
> > will retry in 3 mins: umount: /snap/viking-gps/1: mountpoint not
> > found
> > 
> > The above is probably because I manually removed the empty 1
> > directory
> > and the viking-gps directory from /snap.
> > 
> > In an attempt to reinstall it and then hopefully have it properly
> > removed I tried
> > 
> > error: cannot install "viking-gps": snap "viking-gps" already
> > installed
> > 
> > From what I can see when I run snap list and it's still shown there
> > needs to be some kind of refresh command (other than the one to
> > check
> > for newer snap versions) which would refresh the listing of snaps
> > or
> > tell snapd that a snap is no longer there. 
> > 
> > > On Wed, Nov 2, 2016 at 7:53 PM, Chris 
> > > 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@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@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  > m>
> > > > > 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@localhost:/snap/viking-gps/1$ snap change 343
> > > > > > Status  Spawn Ready Summary
> > > > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:14Z  Stop
> > snap
> > > > > > "viking-
> > > > > > gps" services
> > > > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:16Z  Make
> > snap
> > > > > > "viking-
> > > > > > gps" unavailable to the system
> > > > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:19Z  Remove
> > > > security
> > > > > > profile for snap "viking-gps" (1)
> > > > > > Done2016-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",
> >

Re: Problem removing a snap

2016-11-02 Thread Gustavo Niemeyer
There's no need to attempt to remove again. snapd has proper state tracking
and still remembers that you are trying to remove that snap.

If you kept the directory mounted as suggested, by now it should already be
gone.


On Wed, Nov 2, 2016 at 8:34 PM, Chris  wrote:

> On Wed, 2016-11-02 at 20:06 -0200, Gustavo Niemeyer wrote:
> > 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.
> >
> >
> chris@localhost:~$ sudo mount --bind /snap/ubuntu-core/current
> /snap/viking-gps/1
> [sudo] password for chris:
> mount: mount point /snap/viking-gps/1 does not exist
>
> chris@localhost:~$ sudo snap remove viking-gps
> 2016-11-02T17:22:05-05:00 ERROR cannot remove snap file "viking-gps",
> will retry in 3 mins: umount: /snap/viking-gps/1: mountpoint not found
>
> The above is probably because I manually removed the empty 1 directory
> and the viking-gps directory from /snap.
>
> In an attempt to reinstall it and then hopefully have it properly
> removed I tried
>
> error: cannot install "viking-gps": snap "viking-gps" already installed
>
> From what I can see when I run snap list and it's still shown there
> needs to be some kind of refresh command (other than the one to check
> for newer snap versions) which would refresh the listing of snaps or
> tell snapd that a snap is no longer there.
>
> > On Wed, Nov 2, 2016 at 7:53 PM, Chris 
> > 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@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@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 
> > > > 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@localhost:/snap/viking-gps/1$ snap change 343
> > > > > Status  Spawn Ready Summary
> > > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:14Z  Stop snap
> > > > > "viking-
> > > > > gps" services
> > > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:16Z  Make snap
> > > > > "viking-
> > > > > gps" unavailable to the system
> > > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:19Z  Remove
> > > security
> > > > > profile for snap "viking-gps" (1)
> > > > > Done2016-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",
> > > > 

Re: Problem removing a snap

2016-11-02 Thread Chris
On Wed, 2016-11-02 at 20:06 -0200, Gustavo Niemeyer wrote:
> 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.
> 
> 
chris@localhost:~$ sudo mount --bind /snap/ubuntu-core/current
/snap/viking-gps/1
[sudo] password for chris: 
mount: mount point /snap/viking-gps/1 does not exist

chris@localhost:~$ sudo snap remove viking-gps
2016-11-02T17:22:05-05:00 ERROR cannot remove snap file "viking-gps",
will retry in 3 mins: umount: /snap/viking-gps/1: mountpoint not found

The above is probably because I manually removed the empty 1 directory
and the viking-gps directory from /snap.

In an attempt to reinstall it and then hopefully have it properly
removed I tried

error: cannot install "viking-gps": snap "viking-gps" already installed

From what I can see when I run snap list and it's still shown there
needs to be some kind of refresh command (other than the one to check
for newer snap versions) which would refresh the listing of snaps or
tell snapd that a snap is no longer there. 

> On Wed, Nov 2, 2016 at 7:53 PM, Chris 
> 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@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@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 
> > > 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@localhost:/snap/viking-gps/1$ snap change 343
> > > > Status  Spawn Ready Summary
> > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:14Z  Stop snap
> > > > "viking-
> > > > gps" services
> > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:16Z  Make snap
> > > > "viking-
> > > > gps" unavailable to the system
> > > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:19Z  Remove
> > security
> > > > profile for snap "viking-gps" (1)
> > > > Done2016-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 

Re: Problem removing a snap

2016-11-02 Thread Gustavo Niemeyer
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  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@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@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 
> > 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@localhost:/snap/viking-gps/1$ snap change 343
> > > Status  Spawn Ready Summary
> > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:14Z  Stop snap
> > > "viking-
> > > gps" services
> > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:16Z  Make snap
> > > "viking-
> > > gps" unavailable to the system
> > > Done2016-11-02T17:22:13Z  2016-11-02T17:22:19Z  Remove security
> > > profile for snap "viking-gps" (1)
> > > Done2016-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@localhost:/snap$ sudo snap list
> > > Name Version Rev  DeveloperNotes
> > > blender-tpaw 2.78-tpaw0  2tpaw -
> > > directpdf0.1.4   8normex   devmode
> > > krita3.0.1.1-snap16  8krita-
> > > pencilsheep  5   5pencilsheep  -
> > > snapweb  0.21.2  24   canonical-
> > > speed-test   1.7.0.1 

Re: Problem removing a snap

2016-11-02 Thread Chris
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@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@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 
> 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@localhost:/snap/viking-gps/1$ snap change 343
> > Status  Spawn Ready Summary
> > Done2016-11-02T17:22:13Z  2016-11-02T17:22:14Z  Stop snap
> > "viking-
> > gps" services
> > Done2016-11-02T17:22:13Z  2016-11-02T17:22:16Z  Make snap
> > "viking-
> > gps" unavailable to the system
> > Done2016-11-02T17:22:13Z  2016-11-02T17:22:19Z  Remove security
> > profile for snap "viking-gps" (1)
> > Done2016-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@localhost:/snap$ sudo snap list
> > Name Version Rev  DeveloperNotes
> > blender-tpaw 2.78-tpaw0  2tpaw -
> > directpdf0.1.4   8normex   devmode
> > krita3.0.1.1-snap16  8krita-
> > pencilsheep  5   5pencilsheep  -
> > snapweb  0.21.2  24   canonical-
> > speed-test   1.7.0.1 2bartaz   -
> > ubuntu-core  16.04.1 423  canonical-
> > vice-jz  2.4.27-24jz   -
> > viking-
> > gps   1chihchun disabled,broken
> > wallpaperdownloader  2.3 5egarcia  -
> > 
> > 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
> 

Re: Problem removing a snap

2016-11-02 Thread Gustavo Niemeyer
Hi Chris,

Can you please try updating your snapd package?

Recent releases have a more reliable remove procedure that handles these
cases better.

On Wed, Nov 2, 2016 at 6:40 PM, Chris  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@localhost:/snap/viking-gps/1$ snap change 343
> Status  Spawn Ready Summary
> Done2016-11-02T17:22:13Z  2016-11-02T17:22:14Z  Stop snap "viking-
> gps" services
> Done2016-11-02T17:22:13Z  2016-11-02T17:22:16Z  Make snap "viking-
> gps" unavailable to the system
> Done2016-11-02T17:22:13Z  2016-11-02T17:22:19Z  Remove security
> profile for snap "viking-gps" (1)
> Done2016-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@localhost:/snap$ sudo snap list
> Name Version Rev  DeveloperNotes
> blender-tpaw 2.78-tpaw0  2tpaw -
> directpdf0.1.4   8normex   devmode
> krita3.0.1.1-snap16  8krita-
> pencilsheep  5   5pencilsheep  -
> snapweb  0.21.2  24   canonical-
> speed-test   1.7.0.1 2bartaz   -
> ubuntu-core  16.04.1 423  canonical-
> vice-jz  2.4.27-24jz   -
> viking-gps   1chihchun disabled,broken
> wallpaperdownloader  2.3 5egarcia  -
>
> 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@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>


-- 

gustavo @ http://niemeyer.net
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft