假设报错内容如下

unable to install xmind: status-code=409 kind=snap-change-conflict message=snap"xmind"has "install-snap"change in progress

终端输入snap changes检查状态

zen:~$ snap changes
ID   Status  Spawn                     Ready                     Summary
6    Done    6 days ago, at 16:03 CST  6 days ago, at 16:04 CST  自动刷新 snap "snapd"
7    Doing   today at 16:40 CST        -                         Install "xmind" snap from "latest/stable" channel

找到正在安装的软件,如xmind将其强制关闭

# 其中 7 指的是事件序号
zen:~$ snap abort 7