如何删除yum存储库
发布时间:2020-12-15 18:32:38 所属栏目:安全 来源:网络整理
导读:当我在yum(centos 6)中搜索包时,它会尝试搜索名为“c6-media”的repro 它给出了一堆错误如下 file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xmlTrying other mirror.file:///media/cdrec
当我在yum(centos 6)中搜索包时,它会尝试搜索名为“c6-media”的repro
它给出了一堆错误如下 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. Error: Cannot retrieve repository metadata (repomd.xml) for repository: c6-media. Please verify its path and try again 显然这个错误似乎说yum正试图搜索
所有yum回购位于/etc/yum.repos.d/.因此,您可以删除回购:
# rm -f /etc/yum.repos.d/c6-media.repo 或临时禁用它: # yum --disablerepo=c6-media search ... (在c6-media.repo中更改enabled = 1到enabled = 0表示永久) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |