[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing linux-image-2.6.26-1-amd64 on lenny (grub problems)



Hello,

On Thu, 2009-05-28 at 12:13 +1200, Simon wrote:
> 
> We have a fresh install of lenny on a VM 

Which VM?

> and tried to perform the initial apt-get update/upgrade but are having
> issues with dependency problems. Can someone point me in the correct
> direction here please?


> # apt-get upgrade
[..]
> Setting up linux-image-2.6.26-1-amd64 (2.6.26-13lenny2) ...
[..]
> Running postinst hook script update-grub.
> Searching for GRUB installation directory ... found: /boot/grub
> warning: grub-probe can't find drive for /dev/sda1.

This error message is your actual problem.

What is the mount point for / and /boot ?
  mount | grep " /\(boot\)\? "

What are the partitions available one the system ?
  cat /proc/partitions


> grub-probe: error: Cannot find a GRUB drive for /dev/sda1.
> Check your device.map.

To solve your problem, you will have to adjust the content of the
file /boot/grub/device.map

Mine looks like :
   (hd0)	/dev/sda

The disk device (sda) [not a partition like sda1], must be the "first"
disk device, as seen by the bios at boot time.


>  subprocess post-installation script returned error exit status 1
[..]
> dpkg: error processing linux-image-2.6-amd64 (--configure):
>  dependency problems - leaving unconfigured

linux-image-2.6-amd64 depends on linux-image-2.6.26-1-amd64, which has
just failed to be configured. Therefore dpkg complains that
linux-image-2.6-amd64 can't be configured because it depends on a
package (linux-image-2.6.26-1-amd64) that couldn't be configured.

This isn't a "dependency problem".
This is a "postinst" (post-installation) script problem, due to grub
failing to configure.

Franklin


Reply to: