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?
/dev/tty
instead ofSTDIN
. – Skaperen Mar 12 '15 at 09:30