Ubuntu 18.04 update problem "g_strchug: assertion 'string != NULL' failed" [duplicate]

Solution 1:

This worked for me (From here, https://forum.siduction.org/index.php?topic=6174.0):

sudo apt-get purge libappstream3

Solution 2:

sudo apt install --reinstall libappstream3

can fix it.