This is not the same bug of 'appstreamcli' that causes high CPU usage and cause update to hang, which was already raised in this old meta post asked by Braiam in mid-2016.
Different 'appstreamcli' error
The recently posted duplicate questions about 'appstreamcli' error is being shown when running sudo apt-get update
command and the ends with "Aborted (core dumped)" and "E: ..." lines.
I have personally encountered this issue earlier today, as below.
$ sudo apt-get update
[sudo] password for xxxxx:
Hit:1 http://mirror.netspace.net.au/pub/ubuntu xenial InRelease
Hit:2 http://mirror.netspace.net.au/pub/ubuntu xenial-updates InRelease
Hit:3 http://mirror.netspace.net.au/pub/ubuntu xenial-security InRelease
*** Error in `appstreamcli': double free or corruption (fasttop): 0x0000000002fc0c70 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f8b3f3287e5]
...
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
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
Searching on Ask Ubuntu with keywords "is:question error in appstreamcli" returns 15 results at this time of posting. Of those 15 results, I have briefly checked all and have confirmed that there are 6 questions that have the same issue as described above.
From newest to oldest:
Cannot update software, asked 2 hours ago by Calixte, 0 votes 0 answers
After automatic upgrade, apt-get update cause
Error in
appstreamcli': double free or corru…, asked 3 hours ago by kaorukobo, 0 votes 1 answerLibrary corruption error during apt-get update, asked yesterday by Shirley Temple, 0 votes 1 answer
E: Problem executing scripts APT::Update::Post-Invoke-Success, asked Aug 4 by subrat, 0 votes 2 answers
Ubuntu 16.04: Enable wifi giving error while get-update, asked Mar 19 by Nidhi Mehta, 0 votes 1 answer
Segmentation Fault while updating repositories, asked Oct 15 '16 by Thecave3, 0 votes 1 answer
The oldest question is dated back in 2016, but remaining 5 questions have been posted by different users, especially since last week. All questions but one mentioned 16.04 release.
There is one problem
Now that I am aware of the duplicates, I could not decide for one thing:
Which one of the 6 relevant questions that should be treated as "master" question so that remaining questions could be marked as duplicate of the "master" question?
Once this is cleared up, anyone could be redirected to the "master" question and upvote the question and answer that was helpful.
How would the community on AU resolve this case?