加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

yum 安装问题

发布时间:2020-12-15 16:58:23 所属栏目:安全 来源:网络整理
导读:yum安装的时候出现问题 Loaded plugins: fastestmirror,security Setting up Install Process Determining fastest mirrors Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6arch=x86_64repo=osinfra=stock error was 14: PYCURL ERR

yum安装的时候出现问题

Loaded plugins: fastestmirror,security

Setting up Install Process
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 7 - "couldn't connect to host"

Error: Cannot find a valid baseurl for repo: base


ping baidu.com 能ping通



查看cd /etc/yum.repos.d/

-rw-r--r-- 1 root root 488 Jan 11 15:22 centos6.8.repo
-rw-r--r-- 1 root root 1991 May 19 2016 CentOS-Base.repo
-rw-r--r-- 1 root root 647 May 19 2016 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 289 May 19 2016 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 630 May 19 2016 CentOS-Media.repo
-rw-r--r-- 1 root root 6259 May 19 2016 CentOS-Vault.repo


将Centos-* 移除,再执行yum install lrzsz 成功(lrzsz上个上传下载文件的工具)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读