I stuffed up my grub...

Bernie

Expert Member
Joined
May 2, 2006
Messages
2,134
Reaction score
98
I am not sure how I stuffed up my grub, but I did.

In March this year I messed around with it, but didnt think I had an issue.

Today I decide to do apt-get update / install -f etc and I just get errors.

This is on Ubuntu server 12.04 (no gui)

Can I fix this quick or do I need a re-install

Generating grub.cfg ...
/etc/grub.d/00_header.downloading.ignore: 1: /etc/grub.d/00_header.downloading.ignore: This: not found
/etc/grub.d/00_header.downloading.ignore: 2: /etc/grub.d/00_header.downloading.ignore: It: not found
/etc/grub.d/00_header.downloading.ignore: 3: /etc/grub.d/00_header.downloading.ignore: This: not found
/etc/grub.d/00_header.downloading.ignore: 4: /etc/grub.d/00_header.downloading.ignore: Syntax error: "(" unexpected

I can not install any new packages.

TIA.
 
Uninstall Grub and reinstall it?

Would be the first thing I would try.

****

Oh and you never need a reinstall. That's just the easy way out admitting defeat.
 
I thought you were talking about messing up your dinner meal
 
Since I am still using grub legacy, which is a lot easier to manage if you have a non-gui system, I am afraid I can not help you. But if you can get grub legacy onto that baby I am all in ....

But what I have learned in the past a
Code:
 sudo grub -mkconfig -o /boot/grub/grub.cfg
should suffice to get it straight again. Have you tried that?

More help to be found here
 
Last edited:
Since I am still using grub legacy, which is a lot easier to manage if you have a non-gui system, I am afraid I can not help you. But if you can get grub legacy onto that baby I am all in ....

But what I have learned in the past a
Code:
 sudo grub -mkconfig -o /boot/grub/grub.cfg
should suffice to get it straight again. Have you tried that?

More help to be found here

Thank you.
 
I've had the same issue with Ubuntu 12.04 server boxes using 120MB /boot partitions.

Due to all the kernel updates /boot can run out of space causing havoc with the update.

Removing the old kernels and running the update again helped me before. Not sure if that is the issue here but it might help someone else.
 
Top
Sign up to the MyBroadband newsletter
X