centos yum 错误 Error: Cannot find a valid baseurl for repo: base 装了个CentOS 6.x,使用yum时出现了下面的错误提示。 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?re ... =i386&repo=base Error: Cannot find a valid baseurl for repo: base 然后 ping mirrorlist.centos.org 发现ping不通。怀疑是dns设置问题。 ping www.ctohome.com 也出现 unknown host www.ctohome.com 的错误。多试一试偶尔会ping通,说明dns的确有问题。于是,我们来修改dns配置: vi /etc/resolv.conf 在最后一行添加:nameserver 8.8.8.8 倘若没有vi编辑器,可以用这种方法:echo "nameserver 8.8.8.8" >> /etc/resolv.conf 搞定,ping www.baidu.com 顺畅了,yum可以用了! |
相关文章
- 01-05安装yum 提示 cannot find a valid baseurl for repo:base/7/x86_64
- 01-05Cannot find a valid baseurl for repo: base/7/x86_64
- 01-05centos6 使用yum报错Error: Cannot find a valid baseurl for repo: base
- 01-05Error: Cannot find a valid baseurl for repo: base
- 01-05Linux安装Apache报错:Cannot find a valid baseurl for repo: base/7/x86_64解决方案
- 01-05CENTOS7错误:Cannot find a valid baseurl for repo: base/7/x86_6
- 01-05CentOS7系统局域网内配置本地yum源解决cannot find a valid baseurl for repo
- 01-05安装CentOS7后,无法联网,用yum安装软件提示 cannot find a valid baseurl for repo:base/7/x86_64 的解决方法
- 01-05【已解决】CentOS7使用yum安装Docker显示错误:cannot find a valid baseurl for repo: base/7/x86_64
- 01-05centos7 cannot find a valid baseurl for repo base (转载)