How to avoid GRUB errors after running apt-get upgrade - Ubuntu [closed]

烈酒焚心 提交于 2019-12-04 08:47:25

I had similar problem.

1) If you take a look man apt-get, you will find a configuration option-o. It helps to specify options for Debian packet manager dpkg.

2) In manual man dpkg you can find set of options --force-confdef(force to keep default option without prompting) and --force-confold (force to keep old conf files)

In some sources I found, that people pass env variable DEBIAN_FRONTEND=noninteractive as well, but I didn't find it in manuals.

So, final command in .sh script, that I use to upgrade:

sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!