apt-get update报“Temporary failure resolving '***.com/cn'
解决办法:
1.打开/etc/resolv.conf;
$sudo vim /etc/resolv.conf
2.修改nameserver即DNS服务器;
我这里使用腾讯云和阿里云的DNS
加入:
nameserver 119.29.29.29
nameserver 223.5.5.5
3.重新使用此指令,成功执行。
apt-get update报“Temporary failure resolving '***.com/cn'的更多相关文章
- ubuntu apt-get Failed to fetch Temporary failure resolving 'security.ubuntu.com'
		
发现是因为代理设置原因,导致无法上网,设置代理后问题解决. System Setting -> Network -> Network Proxy -> input IP+Port - ...
 - ubuntu 执行apt-get update报错Failed to fetch
		
在ubuntu下执行sudo apt-get update时,经常会遇到报错: Err http://security.ubuntu.com precise-security InRelease Er ...
 - Docker ubuntn 使用apt-get update报错
		
在docker 容器中执行apt-get update有时候会报错,当然造成错误的原因有很多情况,具体情况具体分析, APT Hash sum mismatch错误的常见解决方法总结这篇博客写的不错, ...
 - 运行ntpdate报错:Temporary failure in name resolution
		
一.问题报错: 忽然发现某台机器时间慢了些几分钟,之前没有搭建ntpd服务,目前都是使用的ntpdate加定时任务进行时间同步.直接执行ntpdate报错如下: # ntpdate cn.pool.n ...
 - mycat启动报错UnknownHostException(Temporary failure in name resolution)解决方法
		
重启命令 ./mycat restart 查看日志 cd logs tail -f wrapper.log 报错信息 INFO | jvm 2 | 2018/05/09 11:28:28 | Erro ...
 - Ubuntu遇到apt-get update报错:"E: Could not get lock /var/lib/apt/lists/lock"
		
sudo apt-get update报错:"E: Could not get lock /var/lib/apt/lists/lock" 出现此问题的原因可能是有另外一个程序在运 ...
 - yum安装软件报错:curl#6 - "Could not resolve host: mirrorlist.centos.org; Temporary failure in name resolut
		
# yum install -y epel-release Loaded plugins: fastestmirror Repository base is listed more than once ...
 - 大数据学习——Linux-SSH报错:Could not resolve hostname centos02: Temporary failure in name resolution
		
https://blog.csdn.net/mcb520wf/article/details/83303792 随笔异常 ssh: Could not resolve hostname centos0 ...
 - sudo apt update报错
		
在Ubuntu系统下,使用sudo apt-get update有时会出现“W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/.... 校验和不符”, xj@xj ...
 - ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The remote end hung up unexpectedly
		
问题出现的情景:使用git pull拉取开发的代码到测试服务器,报错: ssh: Could not resolve hostname git.****-inc.com : Temporary fai ...
 
随机推荐
- Java基础|01.基础语法(1)
			
目录 00x1 基本语法 1.类的语法 2.对象的语法 3.方法的声明 4.小例子 00x2 类和对象的关系 1.堆.栈和元空间 2.基本数据类型和引用数据类型的区别 3. 空对象(null) 00x ...
 - CORS预检
			
CORS是一种常见的跨域机制,一般由服务端提供一个Access-Control-Allow-Origin头来解决问题,但是这仅对一些"简单请求"有效.那么何谓"简单请求& ...
 - ubuntu安装xface
			
Gnome.KDE.XFACE桌面环境安装和卸载 出自Ubuntu中文 安装桌面环境 (一)在终端中运行安装: 1.安装XFACE: sudo apt-get install xubuntu-desk ...
 - 微信小程序  css   overflow :hidden 子元素不生效
			
原css .item .right { width: 70%; } .item .right .name { font-size: 32rpx; font-family ...
 - POJ3723 Conscription 题解
			
start: 2021-08-04 16:56:50 题目链接: http://poj.org/problem?id=3723 题目内容: Description Windy has a countr ...
 - pandas数据增删改查+拼接
			
pandas数据的拼接+增删改查 def lengthways_joint(df,df1): #纵向拼接 if list(df.columns) == list(df1.columns): leb_j ...
 - 图模配置文件之 mdimport.ini
			
mdimport.ini文件是图模导入中最最最关键的一个配置文件,其中既包含图模导入程序model_import.model_debug相关的配置,也包含红黑图管理界面显示及应用相关的配置信息,还包含 ...
 - C/C++命名规范-C语言基础
			
这一篇文章想要介绍的是编写代码的时候业界比较常用的一些命名规范,以及个人平时的一些命名规范.涉及"驼峰命名法"."下划线命名法"."帕斯卡命名法&qu ...
 - 背景图片 css写法
			
background: url('../../assets/sj-my.png') no-repeat; background-size: 100% 100%;
 - 【Golang】Demo
			
并发控制 package main // demo 参考地址https://studygolang.com/articles/25950 import ( "github.com/siddo ...