How do I apt-get -y dist-upgrade without a grub config prompt?

Posted by fratrik on Ask Ubuntu See other posts from Ask Ubuntu or by fratrik
Published on 2012-06-05T17:27:02Z Indexed on 2012/06/06 4:47 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

Per Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files?

I did the following:

ec2run ami-3c994355 --region us-east-1 -n 1 -t m1.large -z us-east-1d

On the machine:

sudo apt-get update
sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade

I still get a prompt asking me which config file I want to use. These are the lines that come before the prompt:

Setting up grub-pc (1.99-21ubuntu3.1) ...

then:

                         +-------------------------------------------------------¦ Configuring grub-pc +-------------------------------------------------------+                              
                         ¦ A new version of configuration file /etc/default/grub is available, but the version installed currently has been locally modified.  ¦                              
                         ¦                                                                                                                                     ¦                              
                         ¦ What do you want to do about modified configuration file grub?                                                                      ¦                              
                         ¦                                                                                                                                     ¦                              
                         ¦                                     install the package maintainer's version                                                        ¦                              

(Unrelated, was this too much information?)

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about grub2