Error to update CentOS 6 using yum

General support questions

Error to update CentOS 6 using yum

Postby arfanahmed » 2011/09/15 10:57:34

[root@localhost ~]# yum -y update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.averse.net
* extras: mirror.averse.net
* updates: mirror-cybernet.lums.edu.pk
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

ls /etc/yum.repos.d/
adobe-linux-i386.repo CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo

it seems that local mirror server is not available can someone guide me through this. how can i change mirror or.....!
arfanahmed
 
Posts: 1
Joined: 2011/09/15 10:45:53

Error to update CentOS 6 using yum

Postby HerpGuy » 2011/09/15 12:38:47

Please post contents of /etc/yum.repos.d/CentOS-Base.repo
HerpGuy
 
Posts: 21
Joined: 2011/04/16 10:15:17

Re: Error to update CentOS 6 using yum

Postby kmuzheri » 2011/09/19 14:20:10

As mentioned above it would be very useful to post the contents of /etc/yum.repos.d/CentOS-Base.repo . Further, you may need to state whether you are connected directly to the internet or you are sitting in a LAN and possibly with a firewall.

By any rate, the basic approach is:
1. Make sure that you can browse the internet using the browser, that would ascertain that its not a connection problem. From your post, it doesnt seem to be the connection
2. Configure /etc/yum.conf if you are sitting in a LAN to make sure that you get through the proxy, if not in a LAN, dont worry about this step.
3. Configure the /etc/yum.repos.d/*.repo, making sure all the settings are proper.

I will focus on the CentOS-Base.repo, (Note that you also have adobe-linux-i386.repo, you may need to look into it too).
This repo has "stanzas", and each specify a particular repository to pull packages from. Following is a basic set up you may find useful:

[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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

FOR THIS REPO MAKE SURE THE BASEURL IS COMMENTED, IT WORKS JUST FINE

For the other repos make sure of the following:
enabled=1
gpgcheck=1
baseurl=xyz //where xyz is a valid url AND/OR
mirrorlist=xyz //giving valid mirror list.



Hope it helps
kmuzheri
 
Posts: 15
Joined: 2011/08/29 10:52:14


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 13 guests