Ubuntu fails to complete package install using Snap
When I try to install an application I can not and it tells me:
Cannot install "spotify": snap "spotify" has "install-snap" change in progress.
The snap installed is trying to install your package (Spotify), but for some reason has failed. Please find the Change ID for the failed install with the command
snap changes
In the list which follows, you will find one line which leads off with a number, and ends with Install "spotify" snap
.
Halt the failed install with the number found (let's pretend it is 123)
(please replace 123 with the number you find).
sudo snap abort 123
If the command executes successfully, then you will then be able to retry installation. Should reinstallation fail, please reboot your system and retry.
If other Snap packages are also hung up, use the
sudo snap abort nnn
command (where nnn is the number from the list generated by snap changes
) to clear them as well.
This is a problem with snap. Whenever the application installation from snap is interrupted, the service goes down. Execute the command sudo systemctl restart snapd.service
and then try to install the software using snap install <application_name>