您现在的位置:首页 >> 综合文章 >> 传奇版本下载 >> 内容

linux 中出现Error Downloading Packages修改DNS服务器配置地址

时间:2018/5/15 2:25:11

  核心提示: linux 中出现 Error Downloading Packages: screen-4.0.3-19.el6.i686: failure: Packages/screen-4.0.3-19.e...

linux 中涌现

Error Downloading Packages:
  screen-4.0.3-19.el6.i686: failure: Packages/screen-4.0.3-19.el6.i686.rpm from base: [Errno 256] No more mirrors to try.


涌现以下情况,我个人是直接修改DNS服务器地址配置 


================================================================================================
Install       1 Package(s)

Total download size: 485 k
Installed size: 783 k
Is this ok [y/N]: y
Downloading Packages:
http://mirrors.cat.pdx.edu/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cat.pdx.edu'"
Trying other mirror.
http://mirrors.sonic.net/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.sonic.net'"
Trying other mirror.
http://mirror.oss.ou.edu/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.oss.ou.edu'"
Trying other mirror.
http://mirror.steadfast.net/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.steadfast.net'"
Trying other mirror.
http://repos-tx.psychz.net/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'repos-tx.psychz.net'"
Trying other mirror.
http://mirror.es.its.nyu.edu/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.es.its.nyu.edu'"
Trying other mirror.
http://mirror.riverfrontnetworks.com/CentOS/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.riverfrontnetworks.com'"
Trying other mirror.
http://mirror.linux.duke.edu/pub/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.linux.duke.edu'"
Trying other mirror.
http://mirror.us-midwest-1.nexcess.net/CentOS/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirror.us-midwest-1.nexcess.net'"
Trying other mirror.
ftp://ftp.ussg.iu.edu/linux/centos/6.9/os/i386/Packages/screen-4.0.3-19.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'ftp.ussg.iu.edu'"
Trying other mirror.


Error Downloading Packages:
  screen-4.0.3-19.el6.i686: failure: Packages/screen-4.0.3-19.el6.i686.rpm from base: [Errno 256] No more mirrors to try.

设置措施很简单,通过编辑

vi /etc/resolv.conf
 设置首选DNS和次要DNS。如下图,排在前面的就是首选DNS,后面一行就是次要的DNS服务器DNS

在最后一排加入代码

nameserver 114.114.114.114
 按 ESC   输入 :wq   保存并退出,这下就正常了。



作者:传奇发布站 来源:www.caisf.com
  • 采【搜服】(www.caisf.com) © 2018 版权所有 All Rights Reserved.
  • 手机版 Email:caisfw@foxmail.com GM交流群:传奇技术发布站交流群 蜀ICP备17007502号-2
  • Powered by caisf V4.0.6