Saturday, May 18, 2019

apt - Ubuntu 18.04 server upgrade failing

I run an Ubuntu 18.04 server which I manage via SSH. After having initiated an apt update && apt upgrade this morning I forgot about it and the shell session ended when my laptop powered down. When I tried the update again I was initially told




Unable to lock the administration directory (/var/lib/dpkg/)





etc which I dealt with using the tips provided in this AU thread. However, that still did not allow me to proceed with a system update so I rebooted the server. Following the reboot I ran the upgrade again. This time round the system went a bit further but then came back with the messages




APT had planned for dpkg to do more than it reported back (0 vs 4).
Affected packages: linux-image-4.15.0-24-generic:amd64




What can I do to fully recover from these issues?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...