Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I edit: /boot/grub/menu.lst and /etc/default/grub, but the terminal did not allow to update the Grub

the code from the terminal:

user@user-desktop:~$ sudo update-grub
/etc/default/grub: 29: menuentry: not found
share|improve this question
You need to include the menu.lst file in your question if you expect people to help here. Probably you have made a mistake with the syntax of the file. – Peter Jenkins Mar 29 '13 at 9:37
Anyway, the '29' in the error message is the line number where the mistake probably is. – Peter Jenkins Mar 29 '13 at 9:39

Check the file /etc/default/grub. There is something wrong on line 29. Maybe a typo or something else. Check the entry on this line against other similar entries.

share|improve this answer
i cant edit this file /etc/default/grub the edit commend is not working why?? – user143588 Mar 28 '13 at 9:27
@user143588 sudo vim /etc/default/grub – eddy147 Apr 24 '15 at 8:32

Try to install grub-pc package,it will create a new grub file inside /etc/default and thereby you can easily update the grub.

sudo apt-get install grub-pc
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.