CentOS yum 用不了

Chason.HU Chason.HU 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

CentOS6.5 64位,能ping通外网,使用yum报错:

[root@node1 yum.repos.d]# yum search vim
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
[/color]

然后更换了163的yum源(http://mirrors.163.com/.help/CentOS6-Base-163.repo)后出现以下错误

[root@node1 yum.repos.d]# yum search vim
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
base | 3.4 kB 00:00
http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again


各位大侠给点指导
...全文
评论 11
收藏 已收藏
分享
返回顶部