Author Archive

Upgrading Virtualmin GPL to Virtualmin Pro Centos bug fix

Posted by on Wednesday, 1 July, 2009

Virtualmin is a fantastic piece of software which allows the not-so-techy run a full hosting server nicely, however I’ve come accross a bug that seems to happen mostly in Centos 5 when trying to upgrade and you happened to have used the rpm to install

This is how you do it.

Login to Virtualmin. Click on System Settings . Click on “Upgrade to Virtualmin Pro” and enter your serial number etc.

Now if you get the following error

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

Put this into /etc/yum.repos.d/virtualmin.repo

[virtualmin]
name=Red Hat Enterprise $releasever - $basearch - Virtualmin
baseurl=http://software.virtualmin.com/gpl/rhel/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1

[virtualmin-universal]
name=Virtualmin Distribution Neutral
baseurl=http://software.virtualmin.com/gpl/universal/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1

Then try again. It should all go well now for you and be able to update.


Upgrading older releases of Ubuntu when support ends

Posted by on Tuesday, 30 June, 2009

Many times I’ve seen a VPS running such old versions of Ubuntu that they can no longer use apt at all because its no longer a supported release. For the most part at this stage, i fully recommend doing a reinstall of the machine which is the much easier faster solution. If for whatever reason this is not accepetable (its a server at a datacenter miles away kinda thing and not a VPS) this is what you do.

$ sudo vim /etc/apt/sources.list

and replace the repositories with:

deb http://old-releases.ubuntu.com/ubuntu/ $version main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ $version main restricted
deb http://old-releases.ubuntu.com/ubuntu/ $version-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ $version-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ $version universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ $version universe multiverse
deb http://old-releases.ubuntu.com/ubuntu $version-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu $version-security main restricted

Swapping out the $version for the actual version (ie edgy, intrepid etc) you currently have installed

Update your sources and install the upgrade tool with the following command.

$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get install update-manager-core

Now run the upgrade:

$ sudo do-release-upgrade

The tool will run for a minute, then it may give you an error about your repositories saying they are invalid and would you like to update your repositories. Don’t answer yet. Open a new console and modify /etc/apt/sources.list

deb http://us.archive.ubuntu.com/ubuntu/ $newversion main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ $newversion main restricted
deb http://us.archive.ubuntu.com/ubuntu/ $newversion-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ $newversion-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ $newversion universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ $newversion universe multiverse
deb http://security.ubuntu.com/ubuntu $newversion-security main restricted
deb-src http://security.ubuntu.com/ubuntu $newversion-security main restricted

Then go back to the original prompt and choose y. The tool will then succeed. After your initial upgrade, simply running do-release-upgrade will suffice.

If you are going from one old-release to another expired release then you do not need to edit the sources.list in between.


Debian GNU/Linux 5.0 Update (RC2)

Posted by on Sunday, 28 June, 2009

——————————————-

The Debian Project http://www.debian.org/
Debian GNU/Linux 5.0 updated press@debian.org
June 27th, 2009 http://www.debian.org/News/2009/20090627
————————————————————————-

Debian GNU/Linux 5.0 updated

The Debian project is pleased to announce the second update of its stable
distribution Debian GNU/Linux 5.0 (codename “lenny”). This update mainly
adds corrections for security problems to the stable release, along with
a few adjustment to serious problems.

Please note that this update does not constitute a new version of Debian
GNU/Linux 5.0 but only updates some of the packages included. There is
no need to throw away 5.0 CDs or DVDs but only to update via an up-to-
date Debian mirror after an installation, to cause any out of date
packages to be updated.

Those who frequently install updates from security.debian.org won’t have
to update many packages and most updates from security.debian.org are
included in this update.

New CD and DVD images containing updated packages and the regular
installation media accompanied with the package archive respectively will
be available soon at the regular locations.

Upgrading to this revision online is usually done by pointing the
aptitude (or apt) package tool (see the sources.list(5) manual page) to
one of Debian’s many FTP or HTTP mirrors. A comprehensive list of
mirrors is available at:

<http://www.debian.org/distrib/ftplist>