Upgrading Ubuntu 8.04 LTS to 10.04 LTS with distupgrade

Note: Before upgrading, please beware that PHP 5.3, provided with Ubuntu 10.04, is not supported by several of the Virtualmin Professional Install Scripts. Since we have no control over those applications, the timeline for when they will work with PHP 5.3 is not under out control. We strongly recommend you check all of the applications you use, to be sure they will survive the upgrade, before moving from 8.04 to 10.04.

1. Plan for some down time (sorry, it's gotta happen with a distribution upgrade, regardless of Virtualmin being involved).

2. Convert your apt Virtualmin source in /etc/apt/sources.list to point to the virtualmin-lucid repo, instead of virtualmin-hardy. Also add a virtualmin-universal source (this is new for lenny and will make upgrades and some other stuff easier/faster in the future; both on my side as the maintainer of the repos and on your side as the user). The virtualmin-universal source line looks like:

deb http://SERIAL:KEY@software.virtualmin.com/ubuntu/ virtualmin-universal

Or, if using Virtualmin GPL:

deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal

3. Upgrade the apache2 package from lucid with:

apt-get install apache2

4. Upgrade virtualmin-base to the lucid version with:

apt-get install virtualmin-base

5. This will probably (hopefully) install apache2-suexec-custom. Configure it in /etc/apache2/suexec/www-data to point to /home instead of /var/www (this is the first line in the file).

6. Assuming upgrading virtualmin-base worked, you can then probably safely dist-upgrade. Let us know about any weird dependency issues that seem Virtualmin related by filing a ticket in the issue tracker.

Comments

Francewhoa's picture
Submitted by Francewhoa on Fri, 03/02/2012 - 15:21

Thanks for this doc Joe :) Very useful.

After adding those new repositories I suggest adding the following command apt-get update

This command is optional but recommended by the Ubuntu community. It ensure the repositories are up to date.

- - -
Senior Product Manager, and Co-Founder at Ubertus.org Inc.
Love back your Virtualmin & Webmin community

Francewhoa's picture
Submitted by Francewhoa on Fri, 03/02/2012 - 16:19

@Joe: In the documentation the following line

deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal

should read

deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal main

Without the main Ubuntu will return the following error message:

*: Malformed line ** in source list /etc/apt/sources.list (dist parse)

- - -
Senior Product Manager, and Co-Founder at Ubertus.org Inc.
Love back your Virtualmin & Webmin community

Francewhoa's picture
Submitted by Francewhoa on Fri, 03/02/2012 - 16:18

@Joe: Another important item is missing from the documentation. Users must add the following two lines to the sources.list before pulling in Lucid's applications

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

Without those lines Ubuntu will return the following message:

apache2 is already the newest version. apache2 set to manually installed.

Sources

- - -
Senior Product Manager, and Co-Founder at Ubertus.org Inc.
Love back your Virtualmin & Webmin community