16.04 apt update永远不会结束

它几天前就开始了。 我正在运行sudo apt update命令,它永远不会结束。 终端输出是

 Get:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Hit:2 http://archive.canonical.com/ubuntu xenial InRelease Hit:3 http://ppa.launchpad.net/attente/java-non-latin-shortcuts/ubuntu xenial InRelease Hit:4 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease Hit:6 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB] Hit:8 http://dl.google.com/linux/chrome/deb stable Release Hit:9 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease Fetched 341 kB in 2s (150 kB/s) 

虽然这个处理系统的风扇速度在我的笔记本电脑上提升了,听起来有点烦人。 但是没有过多的cpu活动。 你们能暗示我为什么会这样吗?

这是一个错误。 请查看https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/ 。 问题是该错误正在影响更新过程,因此您无法更新。 赶上22。

因此,要解决它,您必须手动安装损坏的包。

如果系统尝试进行更新,您可能会使用100%的CPU来运行流氓appstreamcli 。 它还将在apt数据库上保持锁定,这将阻止任何升级尝试。

要解决它,你必须杀死流氓appstreamcli — ypu可以通过运行top来找到它的PID,然后

 sudo kill  

第二步是手动更新发生故障的软件包,如下所示:( 注意:在64位系统上;如果运行32位系统,则必须相应地更改链接,使用i386代替amd64

 cd /tmp && mkdir asfix cd asfix wget https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb wget https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb sudo dpkg -i *.deb 

发布在错误报告的第24条评论中。

现在您可以更新您的系统; 成功完成后,您可以安全地删除下载的软件包。

好虫。

顺便说一句—这与appstreamcli在更新期间挂起100%CPU使用率相同,并且apt-get停留在“在XXsec中获取XXKb”