ubuntu16.04 update 出现 aborted(core dumped)错误

 

如下,在终端执行sudo apt update指令时,出现以下错误:

Aborted (core dumped)
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'
E: Sub-process returned an error code

尝试执行purge libappstream3进行修复,但是又出现Lock的问题

sudo apt purge libappsteam3
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

此时需要先取消lock,修复步骤如下:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

然后再重新执行sudo apt purge libappsteam3就可以了。

你可能感兴趣的:(系统)