LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-22-2008, 02:46 AM   #1
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Rep: Reputation: 15
You already have a NoLOADER configuration in /etc/grub.conf


I am experiencing the following when running apt-get ugrade on a MythBuntu (8.04 Hardy) box:

Quote:
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-2.6.24-19-generic (2.6.24-19.36) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.24-19.34 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.24-19.34 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/vmlinuz-2.6.24-18-generic
Found kernel: /boot/vmlinuz-2.6.24-12-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

You already have a NoLOADER configuration in /etc/grub.conf
Running boot loader as requested
Running /usr/sbin/grub ...
Boot loader failed to run
dpkg: error processing linux-image-2.6.24-19-generic (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.24-19-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade
but it didn't help.

As best as I can figure the "Linux-image-2.6.24-19-nn" isn't being updated.

As I have pretty much exhausted google and other forums to try and sort this out I am hoping someone here might have an idea about the cause and solution.

TIA
 
Old 07-23-2008, 12:49 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If it's simply something in /etc/grub.conf (funny; I think it should officially be /boot/grub/menu.lst, but whatever..), have you tried to take a backup copy of the file, then empty the original file and then run apt? Does it still fight back?

The backup copy is taken in case something goes wrong, when you can just put it back and "revert" the changes.

In terminal, use bash if you're not sure:
Code:
su -
cp /etc/grub.{conf,conf.bak}
echo "" > /etc/grub.conf
exit
And if you want the original file back,
Code:
su -
cp /etc/grub.{conf.bak,conf}
exit
That's just a guess, but try it out by all means.
 
Old 07-23-2008, 02:50 PM   #3
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by b0uncer View Post

In terminal, use bash if you're not sure:
Code:
su -
cp /etc/grub.{conf,conf.bak}
echo "" > /etc/grub.conf
exit
And if you want the original file back,
Code:
su -
cp /etc/grub.{conf.bak,conf}
exit
Thanks, but either emptying or even deleting /etc/grub.conf I get the same error. Oddly, I have a four other Ubuntu based PCs around me, yet none of them have a file called /etc/grub.conf

BTW, if I delete /etc/grub.conf it gets re-created. All lines in it are commented out, so it seems it doesn't even serve a purpose.

Maybe I need to rebuild the mythbuntu box?

Thanks
 
Old 09-12-2008, 05:42 PM   #4
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by confused_bof View Post
I am experiencing the following when running apt-get ugrade on a MythBuntu (8.04 Hardy) box:

For the benefit of anyone else who might be struck down by this,

Quote:
sudo rm /etc/grub.conf
sudo apt-get update
sudo apt-get install
should fix it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
can some fc4 user mail his grub.conf and tell me how can i make this grub read this amolgupta Linux - Software 1 03-15-2006 04:04 AM
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration