@ludentico: Never `rm` files without also removing the package they belong to.
I discovered a workaround: $ sudo mv 50appstream 50appstream.disabled $ sudo apt-get update $ ... [do what you need here] ... $ sudo 50appstream.disabled 50appstream -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579712 Title: Refresh hangs due to strdup on non-NULL terminated string To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs