I have an Ubuntu 14.04 LTS "Desktop" with GitLab. The system runs in a virtual machine on a Windows Server 2012 R2.
The machine runs daily automatic updates for "Important security updates", "Recommended updates" and "Unsupported updates". Not for "Pre-release updates".
Today I logged in the system, ran "sudo apt-get update" and it couldn't finish because some process is using dpkg.
I've ran "sudo apt-get upgrade" and it updated but hanged at:
Found linux image: /boot/vmlinuz-3.19.0-39-generic
Found initrd image: /boot/initrd.img.3.19.0-39-generic
Found linux image: /boot/vmlinuz-3.19.0-37-generic
Found initrd image: /boot/initrd.img.3.19.0-37-generic
Found linux image: /boot/vmlinuz-3.19.0-33-generic
Found initrd image: /boot/initrd.img.3.19.0-33-generic
Found linux image: /boot/vmlinuz-3.19.0-32-generic
Found initrd image: /boot/initrd.img.3.19.0-32-generic
Found linux image: /boot/vmlinuz-3.19.0-31-generic
Found initrd image: /boot/initrd.img.3.19.0-31-generic
I rebooted and hanged again at the same point for an "sudo apt-get upgrade".
Then I tried to clean the unused kernels. I ran:
uname -r
and got:
3.19.0-39-generic
So I removed 3.19.0-31, 3.19.0-32 and 3.19.0-33:
sudo rm /boot/initrd.img.3.19.0-31-generic
sudo rm /boot/initrd.img.3.19.0-32-generic
sudo rm /boot/initrd.img.3.19.0-33-generic
sudo rm /boot/vmlinuz-3.19.0-31-generic
sudo rm /boot/vmlinuz-3.19.0-32-generic
sudo rm /boot/vmlinuz-3.19.0-33-generic
Then, I tried to purge:
sudo apt-get purge linux-image-3.19.0-31-generic linux-image-3.19.0-32-generic linux-image-3.19.0-33-generic
But the process hanged also.
Then, I could "update" but the "upgrade" failed at:
Found linux image: /boot/vmlinuz-3.19.0-39-generic
Found initrd image: /boot/initrd.img.3.19.0-39-generic
Found linux image: /boot/vmlinuz-3.19.0-37-generic
Found initrd image: /boot/initrd.img.3.19.0-37-generic
At some update/upgrade, it suggested me to run dpkg --configure -a
but it also failed at the same point above.
Also, when I reboot, the system gets stuck at the "dots screen". I have to "power off" the virtual machine and restart it to get into it.
After some apt-get update
, apt-get upgrade
, dpkg --configure -a
and reboots I'm not sure how, but everything ran fine again.
Now I'm again with the same problems:
When I run
apt-get update
,apt-get upgrade
I get:E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
When I run
sudo dpkg --configure -a
it hangs after:Found linux image: /boot/vmlinuz-3.19.0-42-generic Found initrd image: /boot/initrd.img-3.19.0-42-generic Found linux image: /boot/vmlinuz-3.19.0-39-generic Found initrd image: /boot/initrd.img-3.19.0-39-generic
The system also hangs at the "dots screen" when I reboot
I'm quite noob with linux. Can anybody put some light here?