Upgrading on RedHat 4ES

5 posts / 0 new
Last post
#1 Wed, 07/28/2010 - 07:31
okohll

Upgrading on RedHat 4ES

I have Virtualmin 3.59 running on Webmin 1.510 and I'd like to update Virtualmin.

I tried the command line

yum install virtualmin

and got the result

Setting up Install Process Setting up repositories virtualmin 100% |=========================| 951 B 00:00
not using ftp, http[s], or file for repos, skipping - 4ES is not a valid release or hasnt been released yet Cannot find a valid baseurl for repo: update Error: Cannot find a valid baseurl for repo: update

My /etc/yum/yum.repos.d/virtualmin.repo is

[virtualmin] name=Red Hat Enterprise $releasever - $basearch - Virtualmin baseurl=http://SSSSSSS:KKKKKKKKK@software.virtualmin.com/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://SSSSSSSSSS:KKKKKKKKKK@software.virtualmin.com/universal/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin gpgcheck=1

I'm not familiar with yum, using RPM usually. Can you help?

Regards Oliver

Wed, 07/28/2010 - 09:43
andreychek

Hi Oliver,

What other repositories are setup on your server? It's possible one of the other repositories is causing trouble. You can determine that by running the following:

ls /etc/yum.repos.d/

Seeing what .repo files are in that dir should give us some clues.

Also, you may want to look at this URL to verify that your license and serial number are still valid:

http://virtualmin.com/serial/

As an aside, I'm glad you're looking to upgrade, as that Virtualmin version is a bit on the older side! :-)

-Eric

Wed, 07/28/2010 - 09:49 (Reply to #2)
okohll

The serial number's valid thanks. In /etc/yum.repos.d/, I have two other files:

[custuser@eul0001189 ~]$ ls /etc/yum.repos.d/ CentOS-Base.repo pgdg-84-redhat.repo virtualmin.repo

[custuser@eul0001189 ~]$ cat /etc/yum.repos.d/CentOS-Base.repo

CentOS-Base.repo

#

This file uses a new mirrorlist system developed by Lance Davis for CentOS. The mirror system uses the connecting IP address of the client and the update status of each mirror to pick mirrors that are updated to and geographically close to the client. You should use this for CentOS updates unless you are manually picking other mirrors.

#

If the mirrorlist= does not work for you, as a fall back you can try the remarked out baseurl= line instead.

# #

[base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

released updates

[update] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

packages used/produced in the build but not released

[addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons

baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/

gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

additional packages that may be useful

[extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/

gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

additional packages that extend functionality of existing packages

[centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/

gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

contrib - packages by Centos Users

[contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib

baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/

gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

[custuser@eul0001189 ~]$ cat /etc/yum.repos.d/pgdg-84-redhat.repo [pgdg84] name=PostgreSQL 8.4 $releasever - $basearch baseurl=http://yum.pgsqlrpms.org/8.4/redhat/rhel-$releasever-$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

[pgdg84-source] name=PostgreSQL 8.4 $releasever - $basearch - Source failovermethod=priority baseurl=http://yum.pgsqlrpms.org/srpms/8.4/redhat/rhel-$releasever-$basearch enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

Wed, 07/28/2010 - 09:54
andreychek

Hrm, I wonder if that CentOS repository is causing you troubles. While CentOS and RHEL have their similarities, having the actual CentOS repository in there may be causing trouble.

Try just renaming the CentOS repo file using something like this:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.orig

And then see if that yum command works for you.

-Eric

Wed, 07/28/2010 - 10:01
okohll

That worked, thanks!

Topic locked