「snap」- error: snap "xxx" has "install-snap" change in progress @20210208

问题描述

执行 snap install chromium 命令,产生如下错误:

error: snap "chromium" has "install-snap" change in progress

问题原因

由于网络原因,安装 chromium 处于卡住状态,所以已经存在安装任务。当再次执行该应用的安装,将产生上述错误。

使用 snap changes 查看当前正在进行的变更:

# snap changes
ID   Status  Spawn                     Ready               Summary
9    Doing   7 days ago, at 20:45 CST  -                   Auto-refresh snap "snapd"
10   Doing   yesterday at 21:21 CST    -                   Install "chromium" snap
11   Done    today at 16:56 CST        today at 16:56 CST  Change configuration of "core" snap
12   Done    today at 16:57 CST        today at 16:57 CST  Change configuration of "core" snap

解决办法

如果停止当前安装或者重新开始,可以执行如下命令:

# snap abort "10"

// 其中参数 10 为 snap changes 输出的 ID 列

相关文章

「snap」- ERR - Waiting for automatic snapd restart

参考文献

Unable to install “package-name”: snap “package-name” has “install-snap” change in progress | by chirag patel | Medium


posted @ 2021-02-08 10:34  研究林纳斯写的  阅读(407)  评论(0编辑  收藏  举报