How to perform a distribution upgrade using apt-fast?
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 ?
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