1

What is the exact meaning of adding the -d option at the end of do-release-upgrade command? The Ubuntu documentation defines it as:

to upgrade to a development version of Ubuntu.

Once 16.04.01 is released, is there any difference in sudo do-release-upgrade -d and sudo do-release-upgrade?

I started my upgrade process from 14.04.05LTS to 16.04.01LTS using:

sudo do-release-upgrade -d

After starting this, I read that:

Upgrading to a development release is not recommended

Because of this I closed the terminal process doing upgrade. Now when I run sudo do-release-upgrade -d, I am able to resume the upgrade. But if I run sudo do-release-upgrade I am getting the message:

no new release found

How should I resume the upgrade process correctly?

2

Using sudo do-release-upgrade -d will upgrade you to the latest development version as you've read. Currently that is 16.10, named Yakkety Yak, which is being developed at the moment for release in October this year.

The best course of action is to check whether your /etc/apt/sources.list file has been modified by the do-release-upgrade command.

Check whether there are any references to Trusty in the file with:

grep -i trusty /etc/apt/sources.list

If you get lines of output from this command, you are safe to run the following two apt-get commands to ensure that your packages for trusty are as up to date as possible:

sudo apt-get update
sudo apt-get dist-upgrade 

Otherwise you will need to reset your sources.list file to its original form.

Now, check that your update manager is trying to go to the right release with:

grep -i prompt /etc/update-manager/release-upgrades

You should see a line saying Prompt=lts. If that is there, then sudo do-release-upgrade should work.

  • I was upgrading from 14.04 to 16.04. Sorry for not mentioning that in the original post. I edited it now. – Erdnase Sep 12 '16 at 12:16
  • So I started an update from 14.04.05 to 16.10 ? Then realising that, I closed the terminal. But now I am able to resume only the interrupted upgrade. How can I stop the same and start the really intended upgrade? – Erdnase Sep 12 '16 at 12:17
  • It really depends how far it got through the process. You should probably do the grep command with the word trusty in place of yakkety. If you get some output, it's a good sign in this case. – Arronical Sep 12 '16 at 12:22
  • Just now read your edit. The sources.list was pointing to xenial instead of yakkety. However I replaced it with its backup file which was pointing to trusty. Now why sudo apt-get dist-upgrade is suggested instead of sudo do-release-upgrade ? Thank you so much for your help. – Erdnase Sep 12 '16 at 12:29
  • The apt-get dist-upgrade was originally there when I thought you were going from 16.04 to 16.04.1. Ii is useful to use now to make sure that all of your packages for 14.04 are as up to date as possible before trying to move to 16.04.1. – Arronical Sep 12 '16 at 12:54

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.