0

When I run apt-get --yes upgrade in a script it sometimes stops and prompts for input.

Today in 14.04 LTS it is prompting for what to do for grub/menu.lst. I don't know what could be asked for in a future upgrade.

I tried running this with a newline piped in. I also tried just a carriage return. neither worked (seems like the input was lost). I did not find a suitable option in apt-get such as --no-prompts.

I tried the answer here but it still gives me a menu prompt asking what config choice I want.

Any idea how to bypass this prompt?

Skaperen
  • 435

2 Answers2

1

You can try with the Yes command:

yes | sudo apt-get --assume-yes upgrade
Panta
  • 1,297
-1

i ended up doing apt-mark hold grub-legacy-ec2 ... the package that was triggering the problem to keep it from updating ... as suggested in a link found here: Blacklisting grub packages from installing

Skaperen
  • 435