解决ubuntu软件中心无法安装软件的方法

解决ubuntu软件中心无法安装软件的方法

当用ubuntu软件下载中心安装某个软件的时

比如我安装typora的时候报错“unable to install typora: status-code=409 kind=snap-change-conflict message=snap"typora"has "install-snap"change in progress

不用担心,打开终端,查看当前的状态

:~$ snap changes
ID   Status  Spawn                  Ready                  Summary
1    Done    2021-02-10             tomorrow at 01:05 CST  Initialize system state
3    Error   today at 09:39 CST     today at 09:49 CST     Install "clion" snap from "latest/stable" channel
4    Done    today at 09:49 CST     today at 09:52 CST     自动刷新 5 个 snap
5    Done    today at 09:53 CST     today at 10:05 CST     Install "clion" snap
6    Doing   today at 14:24 CST     -                      Install "typora" snap from "latest/stable" channel
2    Done    tomorrow at 01:05 CST  today at 09:09 CST     Initialize device

找到正在安装的typora,其ID为6,把他强制关闭。注意,只能关闭status为“Doing”的项目

:~$ snap abort 6

可以再次使用软件中心安装,如果还是报错如上,那么abort这个项目,使用snap在命令行安装

:~$ snap install --classic typora

我之前使用同样的方法安装了clion,但是用snap安装typora的时候很慢一直在跑,不知道司马原因。所以最后用apt安装的typora,

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值