When I was trying to install a .deb file, dpkg gave me this error:
dpkg: error: dpkg status database is locked by another process
So I tried the dpkg --configre -a
and it gave me this output
Setting up linux-image-4.10.0-24-generic (4.10.0-24.28) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.10.0-24-generic
vmlinuz(/boot/vmlinuz-4.10.0-24-generic
) points to /boot/vmlinuz-4.10.0-24-generic
(/boot/vmlinuz-4.10.0-24-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.10.0-24-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-24-generic /boot/vmlinuz-4.10.0-24-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-24-generic /boot/vmlinuz-4.10.0-24-generic
it stopped in last line for 1h and then I had to use Ctrl+c to exit.
Whats wrong with my system?
P. S. : Once I had a trouble installing wicd and since then apt is giving me all kind of errors. if this is related to that, is there anyway to say apt to do checks to find the problem(s)? or I have to reinstall the ubuntu?