Saturday, 26 November 2011

Debian 5 apt-get issue

We may get the following error when we install/upgrade any packages through "apt-get" in Debian 5.

======
Error:
======
.
.
.
dpkg: error processing linux-image-2.6.26-2-amd64 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-2.6-amd64:
 linux-image-2.6-amd64 depends on linux-image-2.6.26-2-amd64; however:
  Package linux-image-2.6.26-2-amd64 is not configured yet.
dpkg: error processing linux-image-2.6-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.26-1-amd64
 linux-image-2.6.26-2-amd64
 linux-image-2.6-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
============================================================

This error is due to the reason that the following packages will not be successfully installed/removed.

======
 linux-image-2.6.26-1-amd64
 linux-image-2.6.26-2-amd64
 linux-image-2.6-amd64
======

We can fix this issue by removing the packages using "apt-get" as follows:

=====
# apt-get remove linux-image-*
=====

Thus the issue is fixed and we wont get the above error in 'apt-get'.

Have a nice day :)

No comments: