Sharing our technical trials in terms of Ubuntu software installs, Blogger hacks, Android and Kotlin learning.
How to resolve unable to install error on Ubuntu
How to resolve unable to install error on Ubuntu

How to resolve unable to install error on Ubuntu

Unable to install “package-name”: snap “package-name” has “install-snap” change in progress. Have you ever faced this error on Ubuntu machines while trying to install a software from Ubuntu software? In the following post we have detailing on when we faced the issue and the solution that worked.

unable to install error on Ubuntu

Explanation for Unable to install error

Unable to install “package-name”: snap “package-name” has “install-snap” change in progress error on Ubuntu, you get this error while trying to install software from Ubuntu software.

The error indicates that you already tried installing the software, process for which is running in the background and you are trying to install the software again.

Example :

  • In our case we faced the “unable to install” error in this particular scenario, we were installing the software from Ubuntu software and lost internet connection.
  • When the software installation page was opened again the window had install button enabled.
  • Wondering if the installation was cancelled we tried installing the software again by clicking on “install” button.
  • Which gave the error unable to install “package-name”: snap “package-name” has “install-snap” change in progress as the previous installation was still going on in the background.

Solution :

Run the following command to see the list of processes running in the background

$ snap changes

command to check process running in the background

you should be able to see the software that is giving you error here, it will have an id.

run the next command to stop the process

$ sudo snap abort 315

here 315 is the id for the software that was giving us error, you have to replace it with the id of the software that is throwing you error.

The process will be aborted and you should now be able to install the software freshly from Ubuntu software.

You can also checkout a YouTube video on the same