help-grub
[Top][All Lists]
Advanced

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

Re: unable to apt-get because of grub


From: Thilan Irshad
Subject: Re: unable to apt-get because of grub
Date: Mon, 8 Aug 2011 10:56:13 +0200

Dear Leslie,

Thankyou for your assistance. What additional information can help us identify the real issue ? 

I am really thankful for your help. 



On Sun, Aug 7, 2011 at 9:20 PM, Leslie Rhorer <address@hidden> wrote:

            It looks to me like perhaps you have stable in your sources.list file, but you are running Lenny.  You’ll need to either specify Lenny in your sources.list file or else upgrade to the stable release ( Squeeze).  At this point you may not be able to gracefully back out of the current situation, so an upgrade may be required.  There are a number of “gotchas” inherent in the Lenny => Squeeze upgrade, particularly WRT to the kernel and udev.  There are also some issues surrounding bootable RAID arrays.  Specific to the failure you are getting, my guess is grub-probe is failing because of the switch from /dev/hdx to /dev/sdx for sata (and IDE , I think) drives.  We’ll need a great deal more information to assist you further, including a listing from grub concerning the target drives, your version of udev, etc.

 


From: help-grub-bounces+lrhorer=address@hidden [mailto:help-grub-bounces+lrhorer=address@hidden] On Behalf Of Thilan Irshad
Sent: Saturday, August 06, 2011 1:33 PM
To: address@hidden
Subject: unable to apt-get because of grub

 

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




--
Thilan Irshad
Denmark
---------------

reply via email to

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