Per Make apt-get (or aptitude) run with -y 但不提示替换配置文件?
我做了以下事情:
ec2run ami-3c994355 --region us-east-1 -n 1 -t m1.large -z us-east-1d
Run Code Online (Sandbox Code Playgroud)
在机器上:
sudo apt-get update
sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
Run Code Online (Sandbox Code Playgroud)
我仍然收到提示,询问我想使用哪个配置文件。这些是出现在提示之前的行:
Setting up grub-pc (1.99-21ubuntu3.1) ...
Run Code Online (Sandbox Code Playgroud)
然后:
????????????????????????????????????????????????????????? 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? ?
? ? …
Run Code Online (Sandbox Code Playgroud)