Linux错误PYCURL ERROR 6
来源:互联网 发布:c编程思想pdf 编辑:程序博客网 时间:2024/05/21 10:30
#以超级账户登录
[root@chenganzhen-oracle-test ~]# yum install lrzsz
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
报错:在使用yum命令在centos官方网站安装上传和下载包时。报不能解析主机mirrorlist.centos.org。yum命令用不了。不能去官网下载软件包。
[root@chenganzhen-oracle-test ~]# ping mirrorlist.centos.org #ping连接不了centos官方网站的主机mirrorlist.centos.org
[root@chenganzhen-oracle-test ~]# ping www.baidu.com #也连接不了百度网站
怀疑是DNS配置不正确,不能正确解析域名。思索下,其实我们只是需要修改/etc/resolv.conf文件,直接一个dns服务器的ip地址即可
[root@chenganzhen-oracle-test ~]# cd /etc/; #切换到ETC目录
[root@chenganzhen-oracle-test etc]# ls -all; #查看该目录文件
[root@chenganzhen-oracle-test etc]# cat resolv.conf; #查看配置文件
; generated by /sbin/dhclient-script
nameserver 8.8.8.8
nameserver 114.114.114.114
[root@chenganzhen-oracle-test etc]# vi resolv.conf; #修改配置文件,把域名服务器地址8.8.8.8改为192.168.2.1
; generated by /sbin/dhclient-script
nameserver 192.168.2.1
按ESC退出
:wq命令保持该修改
[root@chenganzhen-oracle-test etc]# service network restart
[root@chenganzhen-oracle-test etc]# cat resolv.conf; #查看修改之后的配置文件
; generated by /sbin/dhclient-script
nameserver 192.168.2.1
[root@chenganzhen-oracle-test etc]#ping www.baidu.com; #可以连接外网了。yum命令可以用了。
[root@station106 ~]# yum -y install lrzsz; #安装上传和下载的软件包
安装完成后有两个命令可以实现上传下载。
rz 上传。
sz fimename 下载。
[root@chenganzhen-oracle-test ~]# yum install lrzsz
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
报错:在使用yum命令在centos官方网站安装上传和下载包时。报不能解析主机mirrorlist.centos.org。yum命令用不了。不能去官网下载软件包。
[root@chenganzhen-oracle-test ~]# ping mirrorlist.centos.org #ping连接不了centos官方网站的主机mirrorlist.centos.org
[root@chenganzhen-oracle-test ~]# ping www.baidu.com #也连接不了百度网站
怀疑是DNS配置不正确,不能正确解析域名。思索下,其实我们只是需要修改/etc/resolv.conf文件,直接一个dns服务器的ip地址即可
[root@chenganzhen-oracle-test ~]# cd /etc/; #切换到ETC目录
[root@chenganzhen-oracle-test etc]# ls -all; #查看该目录文件
[root@chenganzhen-oracle-test etc]# cat resolv.conf; #查看配置文件
; generated by /sbin/dhclient-script
nameserver 8.8.8.8
nameserver 114.114.114.114
[root@chenganzhen-oracle-test etc]# vi resolv.conf; #修改配置文件,把域名服务器地址8.8.8.8改为192.168.2.1
; generated by /sbin/dhclient-script
nameserver 192.168.2.1
按ESC退出
:wq命令保持该修改
[root@chenganzhen-oracle-test etc]# service network restart
[root@chenganzhen-oracle-test etc]# cat resolv.conf; #查看修改之后的配置文件
; generated by /sbin/dhclient-script
nameserver 192.168.2.1
[root@chenganzhen-oracle-test etc]#ping www.baidu.com; #可以连接外网了。yum命令可以用了。
[root@station106 ~]# yum -y install lrzsz; #安装上传和下载的软件包
安装完成后有两个命令可以实现上传下载。
rz 上传。
sz fimename 下载。
阅读全文
0 0
- Linux错误PYCURL ERROR 6
- 14: PYCURL ERROR 6
- CentOS [Errno 14] PYCURL ERROR 6 错误如何解决
- error was 14:pycurl error 6
- linux使用yum更新下载时报错PYCURL ERROR 56
- fix pycurl link error
- 安装pycurl错误
- centos 6 尝鲜纪实 - [Errno 14] PYCURL ERROR 6 - ""
- PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- CentOS [Errno 14] PYCURL ERROR 6 - ""
- yum安装失败[Errno 14] PYCURL ERROR 6
- CentOS使用yum install出现PYCURL ERROR 6
- centos安装pycurl出现src/module.c:723: error: ‘CURLPROTO_*’ undeclared错误的解决办法
- 错误pycurl.error: (60, 'SSL certificate problem: unable to get local issuer certificate')解决方案
- Python Pycurl 多线程段错误
- PycURL
- pycurl
- PYCURL ERROR 6 - "Couldn't 安装东西报错,apache安装启动
- 教你wamp下多域名如何配置
- Ubuntu 14.04,samba 无法访问,指定网络名不再使用
- POJ1201-Intervals(差分约束)
- 3094. Quicksum
- mac 下安装mysql&启动
- Linux错误PYCURL ERROR 6
- PAT甲级 1032
- Android开源项目分类汇总
- 自定义的信号和槽实例
- CSS笔记
- typedef struct与struct的区别
- vue2.0安装和实例
- Android学习之创建自定义View(入门)
- Codeforces Round #392 (Div. 2) 758C Unfair Poll