linuxidc@linuxidc:~$ snap install Ubuntu-calculator-app
error: cannot install "ubuntu-calculator-app": snap "ubuntu-calculator-app" has
"install-snap" change in progress
linuxidc@linuxidc:~$
解决方式很简单
首先查看一下正在进行的change
linuxidc@linuxidc:~$ snap change
ID Status Spawn Ready Summary
12 Done 2018-05-14T02:49:05Z 2018-05-14T02:57:04Z Auto-refresh snaps "gnome-3-26-1604", "communitheme"
13 Done 2018-05-14T02:50:23Z 2018-05-14T02:50:37Z Remove "firefox" snap
14 Done 2018-05-14T02:52:19Z 2018-05-14T02:53:00Z Install "firefox" snap
15 Done 2018-05-14T02:55:04Z 2018-05-14T02:55:14Z Install "hello-world" snap
16 Done 2018-05-14T02:58:30Z 2018-05-14T02:58:34Z Remove "hello-world" snap
17 Error 2018-05-14T03:02:28Z 2018-05-14T03:03:01Z Install "ubuntu-calculator-app" snap
18 Done 2018-05-14T03:47:37Z 2018-05-14T03:48:19Z Install "john-the-ripper" snap
没错install ubuntu-calculator-app在doing中,所以要终止这个进程
linuxidc@linuxidc:~$ snap changes
ID Status Spawn Ready Summary
12 Done 2018-05-14T02:49:05Z 2018-05-14T02:57:04Z Auto-refresh snaps "gnome-3-26-1604", "communitheme"
13 Done 2018-05-14T02:50:23Z 2018-05-14T02:50:37Z Remove "firefox" snap
14 Done 2018-05-14T02:52:19Z 2018-05-14T02:53:00Z Install "firefox" snap
15 Done 2018-05-14T02:55:04Z 2018-05-14T02:55:14Z Install "hello-world" snap
16 Done 2018-05-14T02:58:30Z 2018-05-14T02:58:34Z Remove "hello-world" snap
17 Error 2018-05-14T03:02:28Z 2018-05-14T03:03:01Z Install "ubuntu-calculator-app" snap
18 Done 2018-05-14T03:47:37Z 2018-05-14T03:48:19Z Install "john-the-ripper" snap
之后再次执行安装就好了
查询最近做的操作
$ snap changes
关于snap更多信息,查看man手册:
$ man snap
update:现在Snap可以在大多数Linux发行版上使用,极大的简化了Linux软件的安装。
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,如果有疑问大家可以留言交流,谢谢大家对Linux公社的支持。