Ubuntu 10.04 upgrade GPL to Pro

I’m in the process of moving my virtualmin installation from a physical server to a virtual server at AWS. Both servers are running Ubuntu 10.04.

I have Virtualmin Pro on the physical server and Virtualmin GPL on the virtual server. I’ve been testing the virtual server with a small number of sites. Now that I feel comfortable with AWS I’d like to upgrade the virtual server to Virtualmin Pro and migrate the remainder of my sites (about 70).

I read in another post that it is allowable to run Virtualmin Pro on two servers to facilitate a migration. I’ve tried upgrading Virtualmin GPL to Pro using my existing serial number and key. After the upgrade complete, no packages are installed and I’m still running Virtualmin GPL. The only change I can see is that my Pro license is listed on the information screen, but it says I have unlimited instead of the 100 in my current license.

Any ideas on how to get this installation upgraded to Pro?

I read in another post that it is allowable to run Virtualmin Pro on two servers to facilitate a migration

Yup!

I’ve tried upgrading Virtualmin GPL to Pro using my existing serial number and key. After the upgrade complete, no packages are installed and I’m still running Virtualmin GPL. The only change I can see is that my Pro license is listed on the information screen, but it says I have unlimited instead of the 100 in my current license.

Hmm, can you show us the output you get while performing the upgrade to Pro? And what steps are you using to do that, are you using the “Upgrade to Virtualmin Pro” option within Virtualmin?

The main reason that shouldn’t work is if you’re license were expired… but I verified that you should have an active 100 domain license.

-Eric

Thanks for the quick reply:

Heres the output from the upgrade:

Creating Virtualmin license file …
… done

Updating available packages from APT …
Hit http://us-west-2.ec2.archive.ubuntu.com lucid Release.gpg
Hit http://us-west-2.ec2.archive.ubuntu.com lucid-updates Release.gpg
Hit http://us-west-2.ec2.archive.ubuntu.com lucid Release
Hit http://us-west-2.ec2.archive.ubuntu.com lucid-updates Release
Hit http://us-west-2.ec2.archive.ubuntu.com lucid/main Packages
Hit http://us-west-2.ec2.archive.ubuntu.com lucid/universe Packages
Hit http://us-west-2.ec2.archive.ubuntu.com lucid/main Sources
Hit http://us-west-2.ec2.archive.ubuntu.com lucid/universe Sources
Hit http://us-west-2.ec2.archive.ubuntu.com lucid-updates/main Packages
Hit http://us-west-2.ec2.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us-west-2.ec2.archive.ubuntu.com lucid-updates/main Sources
Hit http://us-west-2.ec2.archive.ubuntu.com lucid-updates/universe Sources
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://security.ubuntu.com lucid-security Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/universe Sources
Reading package lists…
… done

Upgrading Virtualmin Debian packages : webmin-virtualmin-google-analytics usermin webmin-virtual-server webmin-security-updates webmin-virtualmin-awstats webmin-virtualmin-htpasswd usermin-virtual-server-theme usermin-virtual-server-mobile webmin-virtual-server-mobile webmin-virtualmin-dav webmin-virtualmin-mailman webmin-virtual-server-theme webmin-virtualmin-svn webmin

Reading package lists…
Building dependency tree…
Reading state information…
webmin-virtualmin-google-analytics is already the newest version.
usermin is already the newest version.
webmin-virtual-server is already the newest version.
webmin-security-updates is already the newest version.
webmin-virtualmin-awstats is already the newest version.
webmin-virtualmin-htpasswd is already the newest version.
usermin-virtual-server-theme is already the newest version.
usermin-virtual-server-mobile is already the newest version.
webmin-virtual-server-mobile is already the newest version.
webmin-virtualmin-dav is already the newest version.
webmin-virtualmin-mailman is already the newest version.
webmin-virtual-server-theme is already the newest version.
webmin-virtualmin-svn is already the newest version.
webmin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
… done

Your system has been successfully upgraded to Virtualmin Pro!

If I go to system information it says:

Virtualmin version 3.92.gpl GPL

Under Virtualmin Licenses it says:

Licensed domains Unlimited Domains left Unlimited

If I click on the Re-check Virtualmin license link I get a 404.

Hmm, that’s unusual!

What output do you receive if you run this command:

cat /etc/apt/sources.list

It almost seems as if it’s not seeing the Virtualmin repository for some reason. But we’ll get it straightened out :slight_smile:

-Eric

cat /etc/apt/sources.list
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid main universe
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid main universe
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates main universe
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates main universe
deb http://security.ubuntu.com/ubuntu lucid-security main universe
deb-src http://security.ubuntu.com/ubuntu lucid-security main universe

Okay, it looks like you don’t have any of the Virtualmin repositories setup in your sources.list file there.

How did you perform your initial Virtualmin installation, did you by chance use the install.sh script?

Also, what output do you get if you run this command:

find /etc/apt/ | xargs grep virtualmin

Yes, I used the install.sh script.

root@awssjlinux1:~# find /etc/apt/ | xargs grep virtualmin
Binary file /etc/apt/trusted.gpg~ matches
Binary file /etc/apt/trusted.gpg matches

Aha, yeah, it definitely appears as if the Virtualmin repositories were removed from the sources.list file.

You can add the following lines to your /etc/apt/sources.list to get it to see the Virtualmin GPL repo:

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

After that, run apt-get update – and then see if you’re able to get it to switch to Virtualmin Pro cleanly.

-Eric

I see this when I run apt-get update:

Err http://software.virtualmin.com virtualmin-lucid/main Packages
404 Not Found
Hit http://security.ubuntu.com lucid-security/universe Sources
W: Failed to fetch http://software.virtualmin.com/gpl/debian/dists/virtualmin-lucid/main/binary-amd64/Packages.gz 404 Not Found

I decided to go ahead and perform the upgrade to Pro. Seems to have completed successfully.

Thanks for your help

Nuts, those errors are because I screwed up when giving you the repositories to use :slight_smile:

I accidentally combined the names from Debian and Ubuntu to form a repository that doesn’t exist :slight_smile:

During the upgrade process, Virtualmin may have corrected that; however, just to be super-sure, can you paste in the contents of your current sources.list file?

I’ll verify that it’s correct.

Note that I’ve marked this post as private, so although the entry will contain your Virtualmin license key information, no one but the Virtualmin staff will be able to see it.

-Eric

Eric,

Here’s the list

deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid main universe
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid main universe
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates main universe
deb-src http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates main universe
deb http://security.ubuntu.com/ubuntu lucid-security main universe
deb-src http://security.ubuntu.com/ubuntu lucid-security main universe
deb http://5557153:dUYsGnEyvt@software.virtualmin.com/debian/ virtualmin-lucid main
deb http://5557153:dUYsGnEyvt@software.virtualmin.com/debian/ virtualmin-universal main

Okay, change these two lines:

deb http://5557153:dUYsGnEyvt@software.virtualmin.com/debian/ virtualmin-lucid main deb http://5557153:dUYsGnEyvt@software.virtualmin.com/debian/ virtualmin-universal main

To instead read like so (it’s just changing the debian to ubuntu):

deb http://5557153:dUYsGnEyvt@software.virtualmin.com/ubuntu/ virtualmin-lucid main deb http://5557153:dUYsGnEyvt@software.virtualmin.com/ubuntu/ virtualmin-universal main

After that, run “apt-get update”, and make sure that there aren’t any errors.

-Eric

Made the changes. No more errors with apt-get update

Thanks