Yum Fehler, yum –disablerepo geht nicht, CentOS 6

Tip:

Eine Menge Ärger mit yum & Repositories in CentOS 6

Error:
(…)
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
(..)

Während ich nach einer Lösung forschte, kam ich zu Red Hat Bugzilla – Bug 689208 in dem von genau den gleichen Problem unter Fedora 14 die Rede ist.

Die Lösung ist:

# yum-config-manager --disable c6-media
:mrgreen:
Ergebniss:
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 ; 😀

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.