Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My distribution upgrade from natty to ocelot has been running on and off for quite some time. The speeds at which it downloads is really slow, and I was wondering if there was a way to use the apt-fast command to perform a distribution upgrade to ocelot ?

I looked into the source of do-release-upgrade but it uses the Upgrade module in python, and I could not find a reference to apt-get or wget which I could have replaced with apt-fast or axel.

Maybe if I could just perform an update via do-release-upgrade and then run apt-fast upgrade when it asks me to press ENTER after updating the software sources ? Would it work ?

share|improve this question
Did you ever figure this out? Your question was just allocated to me as part of Clean-Up. – Tom Brossman Apr 4 '12 at 16:27
Yes, I tried the above and it does work. I'll write down an answer. – Abhay Rana Apr 4 '12 at 20:34
up vote 6 down vote accepted

I tried it out, and it does work.

Ado-release-upgrade would update your software sources to point to the newer version of ubuntu. After it runs an update, and asks you to press enter to start the process of upgrade, just open a new terminal, and start the upgrade yourself.

You'd need to delete the lock file for apt first.

sudo rm /var/lib/apt/lists/lock
apt-fast dist-upgrade

Remember that this has to be entered on a new terminal, because, if you cancel the upgrade at that step, the upgrade rolls back the changes to the repositories.

After apt-fast finishes, you can shift to the original terminal and continue the upgrade

share|improve this answer
Nice, thanks for updating – Tom Brossman Apr 4 '12 at 20:36
I guess it works only for normal dist upgrade but not for beta/dev dist upgrade. – mac Mar 26 '13 at 8:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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