PDA

View Full Version : [ubuntu] How to do a release upgrade non-interactively?



godatum2
December 5th, 2018, 03:41 PM
Am trying up upgrade 14.04 to 16.04 with the command
sudo do-release-upgrade -f DistUpgradeViewNonInteractive

But it still gives me prompts for updating certain /etc/ files. Tried this but fails as it doesn't accept some of the prompts
sudo sh -c 'echo "yN\yN\yes\yes\nN\yes\nN\nN\nN\nN\nN\nN\nN\N\yN\yN" | DEBIAN_FRONTEND=noninteractive /usr/bin/do-release-upgrade -f DistUpgradeViewNonInteractive'

Frogs Hair
December 5th, 2018, 03:57 PM
May be related.

https://ubuntuforums.org/showthread.php?t=2265877

Autodave
December 5th, 2018, 03:59 PM
I cannot answer your question....sorry. But I can tell you that upgrading from one release to another seldom works without problems. You are usually better served by backing up anything that you need to keep and doing a clean install. 18.04 is out now and if you were to install that, you would be good for at least 5 more years.

Frogs Hair
December 5th, 2018, 05:15 PM
I cannot answer your question....sorry. But I can tell you that upgrading from one release to another seldom works without problems. You are usually better served by backing up anything that you need to keep and doing a clean install. 18.04 is out now and if you were to install that, you would be good for at least 5 more years.

Great advice if you have the option.

godatum2
December 7th, 2018, 11:55 AM
May be related.

https://ubuntuforums.org/showthread.php?t=2265877

Thanks, yes adding those lines worked.