I came across a weird situation while meddling with repositories in CentOS 6.2.
# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.dei.uc.pt
* c6-media:
* extras: ftp.dei.uc.pt
* updates: ftp.dei.uc.pt
file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/repodata/repomd.xml
Trying other mirror.
repo id repo name status
base CentOS-6 - Base 4,764
c6-media CentOS-6 - Media 0
extras CentOS-6 - Extras 0
updates CentOS-6 - Updates 0
repolist: 4,764
So I figured that disabling the c6-media repository would fix things, however iIssuing yum --disablerepo=c6-media resulted in yum displaying it's help file.
While investigating the issue I came across Red Hat Bugzilla – Bug 689208 in which a user faced the same exact problem under Fedora 14.
The solution is:
# yum-config-manager --disable c6-media
Loaded plugins: fastestmirror, refresh-packagekit
================================ repo: c6-media ================================
[c6-media]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/i386/6
baseurl = file:///media/CentOS/,
file:///media/cdrom/,
file:///media/cdrecorder/
cache = 0
cachedir = /var/cache/yum/i386/6/c6-media
cost = 1000
enabled = 0
enablegroups = True
exclude =
failovermethod = priority
gpgcadir = /var/lib/yum/repos/i386/6/c6-media/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/i386/6/c6-media/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
hdrdir = /var/cache/yum/i386/6/c6-media/headers
http_caching = all
includepkgs =
keepalive = True
mdpolicy = group:primary
mediaid =
metadata_expire = 21600
metalink =
mirrorlist =
mirrorlist_expire = 86400
name = CentOS-6 - Media
password =
persistdir = /var/lib/yum/repos/i386/6/c6-media
pkgdir = /var/cache/yum/i386/6/c6-media/packages
proxy =
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
username =
Now running yum update works as expected:
# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.dei.uc.pt
* extras: ftp.dei.uc.pt
* updates: ftp.dei.uc.pt
Setting up Update Process
No Packages marked for Update
Success ;)
1 comment:
thanks - this worked well
Post a Comment