Skip to content

Instantly share code, notes, and snippets.

@metral
Created October 17, 2013 19:59
Show Gist options
  • Save metral/7031249 to your computer and use it in GitHub Desktop.
Save metral/7031249 to your computer and use it in GitHub Desktop.
Non-interactive apt-get update & dist-upgrade - Ubuntu
#!/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
@rgaufman
Copy link

rgaufman commented Dec 5, 2022

Unfortunately doesn't work, I get this:
Screenshot 2022-12-05 at 14 19 11

and:

Screenshot 2022-12-05 at 14 19 27

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

@therightstuff
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment