1

I m upgrading Ubuntu14(trusty) to Ubuntu16. Is there any way to do-release-upgrade without any prompts. I was already try a lot of method likes,

do-release-upgrade -f DistUpgradeViewNonInteractive
sudo sh -c 'echo "y\n\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\n" | DEBIAN_FRONTEND=noninteractive /usr/bin/do-release-upgrade'

those command doesn't work for me.

Tuang
  • 31
  • 1
  • 4

1 Answers1

2

Run the following command before do-release-upgrade:

sudo echo DPkg::options \{ \"--force-confdef\"\; \"--force-confold\"\; \} | sudo tee /etc/apt/apt.conf.d/local

Then:

sudo do-release-upgrade -f DistUpgradeViewNonInteractive

That seems to fix the couple of configuration files that don't listen to the "DistUpgradeViewNonInteractive" setting in the most recent releases.

Note that this might break things, I encountered this GRUB bug as well as some other random crashes while upgrading via this manner. I don't recommend this upgrade path for production servers.

Mahn
  • 121