Go to content Go to navigation Go to search

Ubuntu Release Upgrade · Nov 5, 08:52 PM by Dylan Doxey

The first time I did a release upgrade on my Ubuntu desktop machine I just did a substitution replacement in my /etc/apt/sources.list (something) like this:

$: sudo perl -pi -e 's{dapper}{hardy}g' /etc/apt/sources.list

And then followed by:

$: sudo apt-get update
...
$: sudo apt-get upgrade
...

That approach worked, that time. The next release cycle I advised a coworker to do the same, and that was a disaster!


bad release upgrade

From that time forward I was careful to always use the upgrade manager GUI tool to do my release upgrades. This has been easy and relatively disaster free.


But what about my server?


I came to the conclusion recently that doing apt-get dist-upgrade wasn't getting me the release upgrades and I was in danger of running on a relase I couldn't upgrade from.


Note to self: if you want to do a release upgrade, use the do-release-upgrade tool.

$: sudo do-release-upgrade

I shall now live happily ever after.

Commenting is closed for this article.