Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I get:

dpkg: error processing linux-image-2.6-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please see full output here:

share|improve this question

2 Answers 2

It appears that the issue is with trying to update grub:

Searching for GRUB installation directory ... found: /boot/grub
warning: grub-probe can't find drive for /dev/sda1.
grub-probe: error: Cannot find a GRUB drive for /dev/sda1.  Check your

User postinst hook script [update-grub] exited with value 1
dpkg: error processing linux-image-2.6.26-1-amd64 (--configure):
subprocess post-installation script returned error exit status 1

This is caused when grub tries to read your file and fails to find some of the mappings. Fortunately, assuming this is just a borked config file, it can easily be regenerated.

cp /boot/grub/ /boot/grub/

Future updates should now go more smoothly. Hope this fixes your problem!

EDIT: Still empty? You have two options (at least, in this specific case):

  1. Add the device manually to /boot/grub/; it should look like:

    (hd0) /dev/sda1

  2. Force grub to recheck the drives.

    grub-install --recheck /dev/sda

share|improve this answer
Ah still some problems: I recently edited the locales file but I restored the file back, I'm not sure why it's saying these – Kevin Duke Sep 12 '11 at 6:29
So, technically this is a different issue, but make sure that the locales you're using are available in /usr/share/i18n/locales. You should be able to run locale-gen manually to see if the settings work. – Andrew M. Sep 12 '11 at 11:15
Yes, that fixed the locales, but the grub problem seems unchanged. See output: – Kevin Duke Sep 12 '11 at 22:14
Hmm, can you post the outputs of cat /boot/grub/, and mount? – Andrew M. Sep 12 '11 at 22:46 – Kevin Duke Sep 13 '11 at 0:31
up vote 0 down vote accepted

Found out what the problem was.

The issue was due to some post installation scripts due to grub failing to configure. This wasn't the issue due to dependencies.

The issue was fixed by removing these packages from the server as these packages were not installed completely.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.