Updating repository information warning failed to read mirror file
trick @jonstanley and others have posted works, but somewhere along the way the perms get messed again. The first one was Anyway, I followed their instructions. I did sudo apt-get update again and got: ** (appstreamcli:32262): CRITICAL **: Error while moving old database out of the way.
It's a tough thing to generate a test case for because I have no idea right now what is causing Hey everyone, I had the same issue of the apt-get update failing.
Done 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. Done I did an "strace appstreamcli refresh-index" and saw a permission denied during rename of /var/cache/app-info/xapian/default. Done sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old sudo strace appstreamcli refresh-index Simple and secure!
[email protected]:~$ sudo apt-get update Ign:1 cdrom://Kubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial In Release Hit:2 cdrom://Kubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release Hit:4 xenial In Release Get:5 xenial-security In Release [94.5 k B] Hit:6 xenial-updates In Release Fetched 94.5 k B in 0s (155 k B/s) ** (appstreamcli:27258): CRITICAL **: Error while moving old database out of the way. So I did "chmod 777 /var/cache/app-info/xapian/default -R" and that fixed it for me. :; sudo apt-get update Hit:1 xenial In Release Hit:2 xenial-updates In Release Hit:3 https://apt.dockerproject.org/repo ubuntu-xenial In Release Hit:4 xenial-security In Release ** (appstreamcli:516): CRITICAL **: Error while moving old database out of the way. Background: Ubuntu 16.04.2 Live CD After booting the live CD I did sudo apt-get update and sudo apt-get upgrade and it went smoothly.
Then follow the prompts to update the boot archive.
Alternately, to continue booting at your own risk, you may clear the service by running: "svcadm clear system/boot-archive" e.g: Jun 29 svc.startd: svc:/system/boot-archive:default: Method "/lib/svc/method/boot-archive" failed with exit status 95.
If anything goes wrong with the running ssh you can still connect to the additional one.
It is highly recommended that you take an image of your existing server prior to following these instructions.
I maintain a local Ubuntu mirror in our Lab at work.
This morning the first user tried to update from Lucid to Maverick.
Restoring original system state Aborting Reading package lists: Donem hardy-security/multiverse Packages: 96 Reading state information: Done Reading state information: Done Reading state information: Done ***** An unresolvable problem occurred while calculating the upgrade: E: Unable to correct problems, you have held broken packages.
********* so you need to check the and maybe "comment" some ppa or third party, then clean the cache, update and run install -f.