I get:

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)

Please see full output here: http://pastebin.com/rmBsiBeS

link|improve this question

feedback

2 Answers

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 device.map.

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 device.map 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/device.map /boot/grub/device.map.bak
grub-mkdevicemap

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/device.map; it should look like:

    (hd0) /dev/sda1

  2. Force grub to recheck the drives.

    grub-install --recheck /dev/sda

link|improve this answer
Ah still some problems: pastebin.com/0bFQ8dWz 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: pastebin.com/KQdT0yKN – Kevin Duke Sep 12 '11 at 22:14
Hmm, can you post the outputs of cat /boot/grub/device.map, and mount? – Andrew M. Sep 12 '11 at 22:46
pastebin.com/iJhswwUX – Kevin Duke Sep 13 '11 at 0:31
show 3 more comments
feedback
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.

linux-image-2.6.26-1-amd64
linux-image-2.6.26-2-amd64
linux-image-2.6-amd
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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