Automating update with stackscript - new version of grub?
apt-get update
apt-get -y install aptitude
aptitude -y full-upgrade
Today, however, the stackscript halted; through the lish console I can see:
Package configuration
┌──────────────────────────┤ Configuring grub-pc ├──────────────────────────┐
│ A new version (/tmp/grub.gxbLmWQ8iS) 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 │
│ keep the local version currently installed │
│ show the differences between the versions │
│ show a side-by-side difference between the versions │
│ show a 3-way difference between available versions │
│ do a 3-way merge between available versions (experimental) │
│ start a new shell to examine the situation │
│ │
│ │
│ <ok>│
│ │
└───────────────────────────────────────────────────────────────────────────┘</ok>
This page wants user input… but I want this to be a hands-free install. How can I configure the update to automatically select an option from this menu?
Running Ubuntu 16.04 LTS, kernel is Latest 64-bit.
3 Replies
export DEBIAN_FRONTEND=noninteractive
before the update, it went through without an issue then.