Created
October 17, 2013 19:59
-
-
Save metral/7031249 to your computer and use it in GitHub Desktop.
Non-interactive apt-get update & dist-upgrade - Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# update & dist-upgrade | |
unset UCF_FORCE_CONFFOLD | |
export UCF_FORCE_CONFFNEW=YES | |
ucf --purge /boot/grub/menu.lst | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -o Dpkg::Options::="--force-confnew" --force-yes -fuy dist-upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately doesn't work, I get this:

and:
Any solution to this? - opened a question here: https://askubuntu.com/questions/1444094/how-to-do-apt-get-dist-upgrade-with-noninteractive