Score:5

Ubuntu Software: Unable to install app

id flag

When I tried to install Visual Studio Code or any other software in Ubuntu Software Application, I get this notification:

Unable to install "Visual Studio Code":
status-code=409 kind=snap-change-conflict message=snap
"code" has "install-snap" change in progress

But VS Code is installed a few seconds later. What is the problem here?

This was the case when I installed another application, too. It gave me this notification but installed the application a few seconds later.

I use Ubuntu 20.04.

Score:6
in flag

This sort of issue can happen when one of two situations happen:

  1. Snap is doing something in the background
  2. The Internet connection is inconsistent

You can check the first item by opening a terminal and running snap changes, which may give you a list that looks like this:

555  Doing   2021-06-19T09:12:11Z  -  Install "cookies" snap
556  Doing   2021-06-19T09:12:12Z  -  Update "milk" snap

If you think something is taking too long or blocking other processes, you can end a snap process like this:

sudo snap abort 555

After this you may find snaps install without first complaining. However, if the network connection is unstable, a snap install may fail to connect to the snap store to download the application. This will result in an error, but the install request is now queued and may successfully connect and download a few seconds later.

If the issue is intermittent, it could be either possible situations. If the issue is consistent, it’s probably the second item.

snowden avatar
id flag
Is it okay to end snap process? I checked snap processes with`snap changes` there was no ongoing processes. So I think it is probably Internet connection because I use wifi. But I used this wifi before and there was no problem with installing apps
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.