I have created a USB stick with a persistent Ubuntu 16.04 (release version). I tried a couple of ways, using Startup Disk Creator and MultiSystem, but I get the same end result.
When I boot into the USB and do 'apt-get update', all is well. When I try 'apt-get dist-upgrade' I get:
** (appstreamcli:2761): CRITICAL **: Error while moving old database out of the way. AppStream cache update failed.
The only reference to this error message I can find is https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1561472 but would appear to be fixed, at least fixed by the time the release version of Ubuntu 16.04.
Aside: I want to test Unity8, which includes installing software. I don't have a spare computer, so I thought a persistent USB would do the trick.
Any takers?
rm -rf /var/lib/apt/lists /var/cache/apt; apt update; apt clean
help?sudo rm -rf /var/lib/apt/lists
was enough to getapt update
and a subsequent install working again, albeit with that same error about the "CD-ROM" not having a Release file.sudo apt-get update
, and the solutions here didn't help: I've tried removing/var/lib/apt/lists
and/var/cache/apt
and this didn't resolve the issue. Permissions for/var/cache/app-info/xapian/default
were already set up correctly. What did help iscd /var/cache/app-info/xapian; sudo mv default default_old; sudo mv default_old default
. This is explained here: bugs.launchpad.net/ubuntu/+source/appstream/+bug/1601971 (comment #11).