debian9更新到debian10出现错误和警告

更新包索引后出现以下问题:
The AppStream system cache was updated, but some errors were detected, which might lead to m
issing metadata. Refer to the verbose log for more information.
正在读取软件包列表… 完成
E: Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cach
e/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi’
E: Sub-process returned an error code

在csdn中找到的方法没有解决。各位能否帮忙看一下!谢谢!

没有人吗?????

碰到过这个问题,解决办法是https://unix.stackexchange.com/questions/464445/problem-with-appstreamcli-when-running-apt-update

希望帮到你。不过要提醒你的是debian 9升级到10失败过,当时桌面都没法进得去。最好的方法最稳妥的方法还是备份数据后全新装debian10来得实在稳定安全。

也就说最好重新制作系统启动盘安装?

我个人经历告诉我这么做比较好。你可以按照上面链接自己看看老外怎么做的。那时我是这么就解决了。但是升级后挂了。

哦哦,谢谢!

老哥,我用这种方法貌似也可以。

是、
sudo pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb

sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb

问题是人家是Ubuntu啊。你的软件包名字不可能跟他一样啊。 :joy: :joy: :joy: