Hi all
I've just installed CentOS 5.1 x64, from the 1st CD (minimal installation) and then tried to install Apache, but keep on getting this error:
[root@cacti ~]# yum install apache Loading "installonlyn" plugin Repository centosplus is listed more than once in the configuration Setting up Install Process Setting up repositories not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or hasnt been released yet not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or hasnt been released yet Reading repository metadata in from local files Parsing package install arguments Nothing to do
Some extra info:
rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" '*yum*' yum-metadata-parser-1.0-8.fc6.x86_64.rpm yum-3.0.5-1.el5.centos.5.noarch.rpm yum-updatesd-3.0.5-1.el5.centos.5.noarch.rpm
Doing a "yum upgrade", I got this:
Dependency Installed: perl-Crypt-PasswdMD5.noarch 0:1.3-1.2.el5.rf perl-Digest-SHA1.x86_64 0:2.11-1.2.1 Updated: lftp.x86_64 0:3.7.3-1.el5.rf mtr.x86_64 2:0.72-1.el5.rf rsync.x86_64 0:3.0.2-1.el5.rf syslinux.x86_64 0:3.63-1.el5.rf Complete!
Does anyone know how to fix this?
Rudi Ahlers wrote:
[root@cacti ~]# yum install apache Loading "installonlyn" plugin Repository centosplus is listed more than once in the configuration Setting up Install Process Setting up repositories not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or hasnt been released yet not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or hasnt been released yet Reading repository metadata in from local files Parsing package install arguments Nothing to do
Does anyone know how to fix this?
Please do an "ls -l /etc/yum.repos.d/"
and show us the content of all .repo files in there.
Cheers,
Ralph
Ralph Angenendt wrote:
Rudi Ahlers wrote:
[root@cacti ~]# yum install apache Loading "installonlyn" plugin Repository centosplus is listed more than once in the configuration Setting up Install Process Setting up repositories not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or hasnt been released yet not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or hasnt been released yet Reading repository metadata in from local files Parsing package install arguments Nothing to do
Does anyone know how to fix this?
Please do an "ls -l /etc/yum.repos.d/"
and show us the content of all .repo files in there.
Cheers,
Ralph
[root@cacti ~]# rpm --verify centos-release S.5....T c /etc/yum.repos.d/CentOS-Base.repo
[root@cacti ~]# ls -l /etc/yum.repos.d/ total 32 -rw-r--r-- 1 root root 2044 Jun 19 08:57 CentOS-Base.repo -rw-r--r-- 1 root root 622 Nov 23 2007 CentOS-Media.repo -rw-r--r-- 1 root root 684 Mar 8 2007 mirrors-rpmforge -rw-r--r-- 1 root root 428 Mar 8 2007 rpmforge.repo
[root@cacti ~]# more /etc/yum.repos.d/* :::::::::::::: /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&rep... baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
:::::::::::::: /etc/yum.repos.d/CentOS-Media.repo :::::::::::::: # CentOS-Media.repo # # This repo is used to mount the default locations for a CDROM / DVD on # CentOS-5. You can use this repo and yum to install items directly off the # DVD ISO that we release. # # To use this repo, put in your DVD and use it with the other repos too: # yum --enablerepo=c5-media [command] # # or for ONLY the media repo, do this: # # yum --disablerepo=* --enablerepo=c5-media [command]
[c5-media] name=CentOS-$releasever - Media baseurl=file:///media/CentOS/ file:///media/cdrom/ file:///media/cdrecorder/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta :::::::::::::: /etc/yum.repos.d/mirrors-rpmforge :::::::::::::: http://apt.sw.be/redhat/el5/en/$ARCH/dag http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag #http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag
:::::::::::::: /etc/yum.repos.d/rpmforge.repo :::::::::::::: # Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag # URL: http://rpmforge.net/ [rpmforge] name = Red Hat Enterprise $releasever - RPMforge.net - dag #baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1
On Thu, Jun 19, 2008 at 07:31:37PM +0200, Rudi Ahlers wrote: ...
[root@cacti ~]# rpm --verify centos-release S.5....T c /etc/yum.repos.d/CentOS-Base.repo
Not the orignal version. That is the cause of your problem, see below.
[root@cacti ~]# ls -l /etc/yum.repos.d/ total 32 -rw-r--r-- 1 root root 2044 Jun 19 08:57 CentOS-Base.repo -rw-r--r-- 1 root root 622 Nov 23 2007 CentOS-Media.repo -rw-r--r-- 1 root root 684 Mar 8 2007 mirrors-rpmforge -rw-r--r-- 1 root root 428 Mar 8 2007 rpmforge.repo
rpmforge has been added but that should not be an issue.
[root@cacti ~]# more /etc/yum.repos.d/* :::::::::::::: /etc/yum.repos.d/CentOS-Base.repo ::::::::::::::
...
# If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead.
you should READ the comment ;) you can't have BOTH lines uncommented ...
[base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep... baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
BOOM! comment either lines mirrorlist or baseurl for all the repositories listed in this file.
and follow Akemi's advice :D
cheers,
Tru
On Thu, Jun 19, 2008 at 06:30:29PM +0200, Rudi Ahlers wrote:
Hi all
I've just installed CentOS 5.1 x64, from the 1st CD (minimal installation) and then tried to install Apache, but keep on getting this error:
not true, you must have at least added rpmforge in the way since you have: ...
Dependency Installed: perl-Crypt-PasswdMD5.noarch 0:1.3-1.2.el5.rf
.rf file -> rpmforge not CentOS
what about showing: rpm --verify centos-release and the files in /etc/yum.repos.d
Tru
On Thu, Jun 19, 2008 at 9:30 AM, Rudi Ahlers Rudi@softdux.com wrote:
Hi all
I've just installed CentOS 5.1 x64, from the 1st CD (minimal installation) and then tried to install Apache, but keep on getting this error:
[root@cacti ~]# yum install apache
Please try 'yum install httpd' instead.
Akemi