help-grub
[Top][All Lists]
Advanced

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

unable to apt-get because of grub


From: Thilan Irshad
Subject: unable to apt-get because of grub
Date: Sat, 6 Aug 2011 20:33:05 +0200

Dear respected Debian Administrators

I have an issue on my debian Server (Lenny 5). 

To give all the informations upfront :

My Webserver Specifikations 

Intel Core i5-750
4 x 2,66 GHz
6 GB DDR3-RAM
2 x 1.000 GB SATA II

System 
Debian Lenny (5 I think) & 64bit

My issue is, i am unable to install anything on my server ... 

i get the follow error msg: 
reconfiguring packages ...
(Reading database ... 46393 files and directories currently installed.)
Preparing to replace linux-image-2.6.26-2-amd64 2.6.26-26lenny2 (using .../linux -image-2.6.26-2-amd64_2.6.26-26lenny3_amd64.deb) ...
The directory /lib/modules/2.6.26-2-amd64 still exists. Continuing as directed.
Done.
Unpacking replacement linux-image-2.6.26-2-amd64 ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.26-2-amd64 /boot/v mlinuz-2.6.26-2-amd64
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.26-2-amd64 /boot/vm linuz-2.6.26-2-amd64
Generating grub.cfg ...
/usr/sbin/grub-probe: error: no such disk.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-2.6.26- 2-amd64.postrm line 331.
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.26-2-amd64 /boot/v mlinuz-2.6.26-2-amd64
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.26-2-amd64 /boot/vm linuz-2.6.26-2-amd64
Generating grub.cfg ...
/usr/sbin/grub-probe: error: no such disk.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 331.
dpkg: error processing /var/cache/apt/archives/linux-image-2.6.26-2-amd64_2.6.26 -26lenny3_amd64.deb (--unpack):
subprocess new post-removal script returned error exit status 1
configured to not write apport reports
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.26-2-amd64 /boot/v mlinuz-2.6.26-2-amd64
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.26-2-amd64 /boot/vm linuz-2.6.26-2-amd64
Generating grub.cfg ...
/usr/sbin/grub-probe: error: no such disk.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 331.
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-2.6.26-2-amd64_2.6.26-26lenny3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


nano /etc/fstab
tab
/dev/md0         /             ext3    defaults,usrquota,grpquota                 0     1
/dev/sda1         none          swap    sw                       0     0
proc             /proc         proc    defaults                 0     0




grub-pc:
Installed: 1.98+20100804-14
Candidate: 1.98+20100804-14
Version table:
*** 1.98+20100804-14 0
500 http://194.97.2.68/debian/ stable/main amd64 Packages
100 /var/lib/dpkg/status
1.96+20080724-16 0
500 ftp://ftp2.de.debian.org/debian/ lenny/main amd64 Packages


I was told on linux debian forum 

I strongly suspect that your quite old version of grub2 is the culprit on this (Lenny had grub - legacy - as default).

Can someone here help me identify my issue and help me with a workarround ? 

Its a webserver(dedicated), and i have SSH access to it.. 

All help most appriciated

reply via email to

[Prev in Thread] Current Thread [Next in Thread]