Knowledgebase: SolarCloud VPS
Do you get an error when upgrading to Debian 6 (squeeze) in your VPS?
Posted by Support, Last modified by Support on 25 May 2011 06:50 PM
Since these are Xen based deployments, and the issue lies in the fact that grub can’t find your disk. This causes all apt-get upgrades to fail when dealing with the kernel or anything that works with grub.

Here is the output of apt-get upgrade that is relevant to this issue:
Setting up linux-image-2.6.32-5-686-bigmem (2.6.32-31) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686-bigmem
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-686-bigmem /boot/vmlinuz-2.6.32-5-686-bigmem
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-686-bigmem /boot/vmlinuz-2.6.32-5-686-bigmem
Searching for GRUB installation directory ... found: /boot/grub
warning: grub-probe can't find drive for /dev/xvda1.
grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your device.map.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-5-686-bigmem.postinst line 799, <STDIN> line 2.
dpkg: error processing linux-image-2.6.32-5-686-bigmem (--configure):
subprocess installed post-installation script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
linux-image-2.6.32-5-686-bigmem
E: Sub-process /usr/bin/dpkg returned an error code (1)

Because Xen manages your kernel on a level that is not visible to the VPS or instance you’re working in, you can just easily remove grub:

apt-get remove grub-legacy grub-common

Simple as that. Now you will be able to manage your system as you normally would, and not worry about constant errors while using apt-get.
(173 vote(s))
Helpful
Not helpful

Comments (0)