[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grub-help
Subject:    Re: unable to apt-get because of grub
From:       Thilan Irshad <ninetenone () gmail ! com>
Date:       2011-08-08 8:56:13
Message-ID: CAE5EDfcPjN3jPdAyYNUohcuJ0d_Jh2x3kKBOFygiBYPWxyux=w () mail ! gmail ! com
[Download RAW message or body]

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 <lrhorer@satx.rr.com> 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=satx.rr.com@gnu.org [mailto:
> help-grub-bounces+lrhorer=satx.rr.com@gnu.org] *On Behalf Of *Thilan
> Irshad
> *Sent:* Saturday, August 06, 2011 1:33 PM
> *To:* help-grub@gnu.org
> *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
---------------

[Attachment #3 (text/html)]

Dear Leslie,<div><br></div><div>Thankyou for your assistance. What additional \
information can help us identify the real issue ? </div><div><br></div><div>I am \
really thankful for your help. </div><div><br></div><div><br><br> <div \
class="gmail_quote">On Sun, Aug 7, 2011 at 9:20 PM, Leslie Rhorer <span \
dir="ltr">&lt;<a href="mailto:lrhorer@satx.rr.com">lrhorer@satx.rr.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">





<u></u>
<u></u>





<div lang="EN-US" link="blue" vlink="blue">

<div>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span \
style="font-size:10.0pt;font-family:Arial;color:navy">            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 =&gt; 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.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span \
style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> \
<u></u></span></font></p>

<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">

<div>

<div class="MsoNormal" align="center" style="text-align:center"><font size="3" \
face="Times New Roman"><span style="font-size:12.0pt">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span \
style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font \
size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> \
help-grub-bounces+lrhorer=<a href="mailto:satx.rr.com@gnu.org" \
target="_blank">satx.rr.com@gnu.org</a> [mailto:<a \
href="mailto:help-grub-bounces%2Blrhorer" \
target="_blank">help-grub-bounces+lrhorer</a>=<a href="mailto:satx.rr.com@gnu.org" \
target="_blank">satx.rr.com@gnu.org</a>] <b><span style="font-weight:bold">On Behalf \
Of </span></b>Thilan Irshad<br>

<b><span style="font-weight:bold">Sent:</span></b> Saturday, August 06, 2011
1:33 PM<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:help-grub@gnu.org" \
target="_blank">help-grub@gnu.org</a><br> <b><span \
style="font-weight:bold">Subject:</span></b> unable to apt-get because of \
grub</span></font><u></u><u></u></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">Dear respected Debian \
Administrators<u></u><u></u></span></font></p>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">I have an issue on my debian Server (Lenny 5). \
<u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">To give all the informations upfront \
:<u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">My Webserver Specifikations <u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">Intel Core i5-750<span>        \
</span><u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">4 x 2,66 GHz<span>  </span><u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">6 GB DDR3-RAM<span>     \
</span><u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">2 x 1.000 GB SATA II<span>           \
</span><u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">System <u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">Debian Lenny (5 I think) &amp; \
64bit<u></u><u></u></span></font></p>

</div>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">My issue is, i am unable to install anything on my server \
... <u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">i get the follow error msg: <u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><span><font size="1" color="seagreen" face="Courier New"><span \
style="font-size:9.0pt;font-family:&quot;Courier \
New&quot;;color:seagreen;background:white">reconfiguring packages \
...</span></font></span><font size="1" color="seagreen" face="Courier New"><span \
style="font-size:9.0pt;font-family:&quot;Courier \
New&quot;;color:seagreen;background:white"><br>

<span>(<u></u><u></u>Reading<u></u><u></u>
database ... 46393 files and directories currently installed.)</span><br>
<span>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) ...</span><br>
<span>The directory /lib/modules/2.6.26-2-amd64 still
exists. Continuing as directed.</span><br>
<span>Done.</span><br>
<span>Unpacking replacement linux-image-2.6.26-2-amd64
...</span><br>
<span>Examining /etc/kernel/postrm.d .</span><br>
<span>run-parts: executing
/etc/kernel/postrm.d/initramfs-tools 2.6.26-2-amd64 /boot/v
mlinuz-2.6.26-2-amd64</span><br>
<span>run-parts: executing
/etc/kernel/postrm.d/zz-update-grub 2.6.26-2-amd64 /boot/vm \
linuz-2.6.26-2-amd64</span><br> <span>Generating grub.cfg ...</span><br>
<span>/usr/sbin/grub-probe: error: no such disk.</span><br>
<span>run-parts: /etc/kernel/postrm.d/zz-update-grub
exited with return code 1</span><br>
<span>Failed to process /etc/kernel/postrm.d at
/var/lib/dpkg/info/linux-image-2.6.26- 2-amd64.postrm line 331.</span><br>
<span>dpkg: warning: subprocess old post-removal script
returned error exit status 1</span><br>
<span>dpkg - trying script from the new package instead
...</span><br>
<span>Examining /etc/kernel/postrm.d .</span><br>
<span>run-parts: executing
/etc/kernel/postrm.d/initramfs-tools 2.6.26-2-amd64 /boot/v \
mlinuz-2.6.26-2-amd64</span><br> <span>run-parts: executing
/etc/kernel/postrm.d/zz-update-grub 2.6.26-2-amd64 /boot/vm
linuz-2.6.26-2-amd64</span><br>
<span>Generating grub.cfg ...</span><br>
<span>/usr/sbin/grub-probe: error: no such disk.</span><br>
<span>run-parts: /etc/kernel/postrm.d/zz-update-grub
exited with return code 1</span><br>
<span>Failed to process /etc/kernel/postrm.d at
/var/lib/dpkg/<a href="http://tmp.ci/postrm" target="_blank">tmp.ci/postrm</a> line \
331.</span><br> <span>dpkg: error processing
/var/cache/apt/archives/linux-image-2.6.26-2-amd64_2.6.26 -26lenny3_amd64.deb
(--unpack):</span><br>
<span>subprocess new post-removal script returned error
exit status 1</span><br>
<span>configured to not write apport reports</span><br>
<span>Examining /etc/kernel/postrm.d .</span><br>
<span>run-parts: executing
/etc/kernel/postrm.d/initramfs-tools 2.6.26-2-amd64 /boot/v
mlinuz-2.6.26-2-amd64</span><br>
<span>run-parts: executing
/etc/kernel/postrm.d/zz-update-grub 2.6.26-2-amd64 /boot/vm
linuz-2.6.26-2-amd64</span><br>
<span>Generating grub.cfg ...</span><br>
<span>/usr/sbin/grub-probe: error: no such disk.</span><br>
<span>run-parts: /etc/kernel/postrm.d/zz-update-grub
exited with return code 1</span><br>
<span>Failed to process /etc/kernel/postrm.d at
/var/lib/dpkg/<a href="http://tmp.ci/postrm" target="_blank">tmp.ci/postrm</a> line \
331.</span><br> <span>dpkg: error while cleaning up:</span><br>
<span>subprocess new post-removal script returned error
exit status 1</span><br>
<span>Errors were encountered while processing:</span><br>
<span>/var/cache/apt/archives/linux-image-2.6.26-2-amd64_2.6.26-26lenny3_amd64.deb</span><br>
 <span>E: Sub-process /usr/bin/dpkg returned an error
code (1)</span></span></font><u></u><u></u></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><span><font size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:#E1EBF2">nano /etc/fstab</span></font></span><font \
size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:#E1EBF2"><br>

</span></font><span><font size="1" color="seagreen" face="Courier New"><span \
style="font-size:9.0pt;font-family:&quot;Courier \
New&quot;;color:seagreen;background:white">tab</span></font></span><font size="1" \
color="seagreen" face="Courier New"><span \
style="font-size:9.0pt;font-family:&quot;Courier \
New&quot;;color:seagreen;background:white"><br>

<span>/dev/md0         / 
           ext3   
defaults,usrquota,grpquota             
   0     1</span><br>
<span>/dev/sda1       
 none          swap    sw   
                   0 
   0</span><br>
<span>proc           
 /proc         proc    defaults 
               0     0</span></span></font><u></u><u></u></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

<div>

<p class="MsoNormal"><font size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:#E1EBF2"><br> <br>
<span>grub-pc:</span><br>
<span>Installed: 1.98+20100804-14</span><br>
<span>Candidate: 1.98+20100804-14</span><br>
<span>Version table:</span><br>
<span>*** 1.98<a href="tel:%2B20100804-14%200" value="+20100804140" \
target="_blank">+20100804-14 0</a></span><br> <span>500 <a \
href="http://194.97.2.68/debian/" target="_blank"><font color="#105289"><span \
style="color:#105289;text-decoration:none">http://194.97.2.68/debian/</span></font></a> \
stable/main amd64 Packages</span><br>
<span>100 /var/lib/dpkg/status</span><br>
<span>1.96+20080724-16 0</span><br>
<span>500 <a href="ftp://ftp2.de.debian.org/debian/" target="_blank"><font \
color="#105289"><span \
style="color:#105289;text-decoration:none">ftp://ftp2.de.debian.org/debian/</span></font></a> \
lenny/main amd64 Packages</span></span></font><u></u><u></u></p>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><span><font size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:white">I was told on linux debian forum \
</span></font></span><u></u><u></u></p>


<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><span><font size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:white">I strongly suspect that your quite old \
version of grub2 is the culprit on this (Lenny had grub - legacy - as \
default).</span></font></span><u></u><u></u></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><span><font size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:white">Can someone here help me identify my issue \
and help me with a workarround ? </span></font></span><u></u><u></u></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><span><font size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:white">Its a webserver(dedicated), and i have SSH \
access to it.. </span></font></span><u></u><u></u></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><span><font size="2" color="#333333" face="Trebuchet MS"><span \
style="font-size:10.0pt;font-family:&quot;Trebuchet \
MS&quot;;color:#333333;background:white">All help most \
appriciated</span></font></span><u></u><u></u></p>


</div></div></div>

</div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>Thilan \
Irshad<br>Denmark<br>---------------<br> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic