I keep getting error messages when I try to install updates.

Asked by Michael Otavka

I am using ubuntu 12.04. The program runs fine on my desktop pc that I built about 5 years ago. I have an NEC Multi-Sync LCD 1770NXM monitor, an ATi Radeon 9200 video adapter, and an Intel D865PERL motherboard. The pc is dual boot (Windows XP Pro and ubuntu). The only problem that is apparent to me while running ubuntu is that the Grub menu does not show up when I boot. I get a magenta flash, then I get a no-signal indication on the monitor until it boots into ubuntu. If I press the down arrow on the keyboard 5 times after the magenta flash, I can boot into Windows, but the Grub menu does not appear. I have tried holding down the shift key and that does not work.

Listed below is the message that I get in Synaptic when I try to install updates:

dependency problems - leaving unconfigured
Setting up grub-pc (1.99-21ubuntu3.1) ...
/var/lib/dpkg/info/grub-pc.config: 1: /etc/default/grub: password: not found
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up friendly-recovery (0.2.25) ...
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: password: not found
dpkg: error processing friendly-recovery (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.26.28); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 memtest86+
 ubuntu-standard
 linux-image-3.2.0-26-generic
 linux-image-generic
 grub-pc
 friendly-recovery
 linux-generic

Can you help me with a sloution to these issues?

Thank you,
Michael Otavka
<email address hidden>

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output og:

gedit /etc/default/grub

Thanks

Revision history for this message
Michael Otavka (motavka) said :
#2

Below is the content of /etc/default/grub file:

password
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x1024

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Thank you,
Michael Otavka

---- actionparsnip <email address hidden> wrote:
> Your question #203678 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/203678

>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Can you give the output og:
>
> gedit /etc/default/grub
>
> Thanks
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/203678
>
> You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Run:

gksudo gedit /etc/default/grub

And delete the top line of the file which is where 'password' is coming from. Save the new file, close gedit and run:

sudo update-grub

HTH

Revision history for this message
Michael Otavka (motavka) said :
#4

I removed the "password" line in /etc/default/grub, then updated the grub. I then got the following message:

michael@michael-desktop:~$ sudo update-grub
[sudo] password for michael:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-26-generic
Found initrd image: /boot/initrd.img-3.2.0-26-generic
Found linux image: /boot/vmlinuz-3.0.0-21-generic
Found initrd image: /boot/initrd.img-3.0.0-21-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done

The system found a number of files where previously I was getting error messages and could not update those files.

I then turned off the pc and re-booted.

Still no grub menu when I boot up.

I then ran sudo apt-get update and the system appears to have updated correctly.

Thank you. I appreciate the help. If you have any suggestions on how I might be able to have the grub menu display on screen when I boot up, I would appreciate it. If not, it is a small inconvenience to me to continue running the pc as is. I have installed ubuntu 12.04 on a Sony Vaio laptop and have no problem with the grub menu displaying when I boot up.

Thank you again,
Michael Otavka
<email address hidden>

---- actionparsnip <email address hidden> wrote:
> Your question #203678 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/203678
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> Run:
>
> gksudo gedit /etc/default/grub
>
> And delete the top line of the file which is where 'password' is coming
> from. Save the new file, close gedit and run:
>
> sudo update-grub
>
> HTH
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/203678/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/203678
>
> You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

If you hold SHIFT at boot you will see Grub, as you dual boot you should be shown the menu by default. If you give the output of:

uname -a

I can give a command to clean up grab which may help

If you add random words to config files (like the 'password' you added) you will get issues.

Revision history for this message
Michael Otavka (motavka) said :
#6

If I hold down the shift key when I boot, I get "Grub Loading...." in the upper left corner of the monitor, then I get a magenta flash, then nothing but a no display message. If I do not hold down the shift key, then I do not get the Grub Loading message and a magenta flash, then a no display message. In either case, the grub menu does not display.

As I mentioned before, if I do nothing at boot, the system automatically boots into ubuntu. If I press the down arrow key 5 times after the magenta flash, I boot into Windows XP.

Once I am in ubuntu or Windows, the display works fine.

Where/when do I type in the uname -a command?

I have read on ubuntu posts that others have this problem or some variation of this problem. To get the grub menu to display, one article suggests a number of lines to change in grub:

change the GRUB_HIDDEN_TIMEOUT to 10,
change the GRUB_HIDDEN_TIMEOUT_QUIET to false
change GRUB_CMDLINE_LINUX_DEFAULT to ""
uncomment GRUB_TERMINAL=console

Does any of this sound like it could make the grub menu display?

Thank you.

---- actionparsnip <email address hidden> wrote:
> Your question #203678 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/203678
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> If you hold SHIFT at boot you will see Grub, as you dual boot you should
> be shown the menu by default. If you give the output of:
>
> uname -a
>
> I can give a command to clean up grab which may help
>
> If you add random words to config files (like the 'password' you added)
> you will get issues.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/203678/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/203678
>
> You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

see https://help.ubuntu.com/community/Grub2 for details how to configure grub

Can you help with this problem?

Provide an answer of your own, or ask Michael Otavka for more information if necessary.

To post a message you must log in.