Failed to upgrade to Virtualmin Pro :

Creating Virtualmin license file …
… done

Failed to upgrade to Virtualmin Pro : No Virtualmin GPL repository was found in /etc/yum.repos.d/virtualmin.repo

I got this error while in VM after entering my serial and license key and hitting upgrade.

I’m on CentOS 5.3

Any ideas?

If you didn’t install using the automated install script, but did use the RPM packages of Virtualmin and Webmin, you’ve got a system state that the upgrader doesn’t know how to handle (the upgraded best deals with systems installed with install.sh, but it can be fooled into working pretty well with just about any other Virtualmin GPL system).

Here’s what you do:

Remove /etc/virtualmin-license to undo the bit of the upgrade that did occur

Setup the yum repository for Virtualmin GPL with:

rpm -ivh http://software.virtualmin.com/gpl/centos/5/i386/virtualmin-release-1.0-1.rhel.gpl.noarch.rpm

Then try the upgrade within Virtualmin

I, of course, assume you have good backups. Upgrades are not particularly dramatic or dangerous. But, I want to remind you to keep good backups, because something is bound to go wrong someday. :wink:

Retrieving http://software.virtualmin.com/gpl/centos/5/i386/virtualmin-release-1.0-1.rhel.gpl.noarch.rpm
Preparing… ########################################### [100%]
package virtualmin-release-1.0-1.rhel.gpl.noarch is already installed

What do I do then? heh.

Whoah. How’s that even possible?

So, does /etc/yum.repos.d/virtualmin.repo exist?