I was trying to install the Notepad++ snap package in Ubuntu 18.04 by using sudo snap install notepad-plus-plus, but unfortunately I closed the terminal while the installation was still not finished. Now I can see the icon of Notepad++, but I can't run it, so I'm trying to remove it with the following commands:
sudo snap abort --last auto-refresh
sudo snap disable notepad-plus-plus
sudo snap remove notepad-plus-plus
and the terminal outputs the following results:
ch@ch-System-Product-Name:~$ sudo snap abort --last auto-refresh
[sudo] password for ch:
error: cannot abort change 6 with nothing pending
ch@ch-System-Product-Name:~$ sudo snap disable notepad-plus-plus
error: snap "notepad-plus-plus" has "install-snap" change in progress
ch@ch-System-Product-Name:~$ sudo snap remove notepad-plus-plus
error: snap "notepad-plus-plus" has "install-snap" change in progress