WSL: Could not resolve hostname Temporary failure(无法解析域名)
原文链接
WSL 无法解析域名
Could not resolve hostname github.com: Temporary failure in name resolution
解决方法
# 1. 编辑 /etc/wsl.conf 文件
$ vim /etc/wsl.conf
[network]
generateResolvConf = false# 2. 重启 wsl
$ wsl --shutdown
# 3. 启动 wsl, 拷贝保留原来的 /etc/resolv.conf文件, 创建一个新的 /etc/resolv.conf 文件编辑如下
$ sudo mv /etc/resolv.conf /etc/resolv.conf.old
$ sudo vi /etc/resolv.conf
nameserver 8.8.8.8
WSL: Could not resolve hostname Temporary failure(无法解析域名)相关推荐
- Git clone 提示“Could not resolve hostname”解决
事情是这样的,今天我要给OpenHarmony贡献代码,于是我将项目Fork下来以后,进行clone 突然,看图吧, 于是我 ping gitee.com 发现啥也不是,这个时候我想既然作为咸鱼,就做 ...
- ssh:could not resolve hostname XXX:Temporary failure in name resolution
今天使用虚拟机提交github项目发现出现: ssh:could not resolve hostname XXX:Temporary failure in name resolution 先是pin ...
- hadoop启动报错:localhost: ssh: Could not resolve hostname localhost
hadoop启动journalnode时报错:localhost: ssh: Could not resolve hostname localhost: Temporary failure in na ...
- scp命令传输出现ssh: Could not resolve hostname错误
ssh: Could not resolve hostname xxxxx: Temporary failure in name resolution 原因是docker导出的镜像需要离线导入,在命名 ...
- Temporary failure in name resolution错误解决方法
今天迁移服务器之后原本正常运行的程序报"Temporary failure in name resolution"错误,意思是域名解析失败,但是DNS什么的设置没有问题,其实是主机 ...
- Temporary failure resolving——Ubuntu DNS未配置报错与解决
Temporary failure resolving--Ubuntu DNS未配置报错与解决记录 环境信息: WSL Ubuntu 18.04 LTS 安装unzip命令所需的工具包 sudo ap ...
- Temporary failure in name resolution
最近在使用yum方式安装perl-DBD-MySQL时碰到了Temporary failure in name resolution,Trying other mirror.即命名解析失败,尝 ...
- Failed to resolve hostname 192: The name does not resolve for the supplied parameters
ffmpeg打开流时,报错,url打印出来没有问题,但是在ffmpeg中乱码了. Failed to resolve hostname 192: The name does not resolve f ...
- 错误提示:ssh: Could not resolve hostname devsrv: Name or service not known
ssh: Could not resolve hostname devsrv: Name or service not known ubuntu下 scp时出错:ssh: Could not reso ...
最新文章
- 少一些计较多_新的一年:少一分计较,多一分宽容
- 使用SharePoint 2007 Web Service上传文件到文档库
- Spring集成TestNg测试
- 学习笔记——XSLT转换器的使用(Xalan和Saxon) .(转)
- 第18章 类加载机制与反射
- (FFOS Gaia) Telemetry - AUM分析
- 升级 ubuntu_重要:Canonical 安全更新,请相关 Ubuntu 版本赶紧升级
- upc组队赛15 Supreme Number【打表】
- osgi java_使普通的旧Java OSGi兼容
- 开源RefreshListView下拉刷新效果
- 怀化学院计算机科学专业排名,2019怀化学院专业排名
- LwIP应用开发笔记之十一:LwIP带操作系统UDP服务器
- Android开发四大组件
- 初识java atomic
- 坐标中国|中国速度,挑战极限驱动发展“快车”
- Favicon.ico图片在线制作网站PHP源码+支持多种图片格式转换
- SpringSecurity实现数据库认证
- MP1541升压电路
- Kafka分区分配策略以及重平衡过程总结
- 2-3 Coursera吴恩达《改善深度神经网络》第三周课程笔记-超参数调试、Batch正则化和编程框架
热门文章
- MATLAB中libsvm的svmtrain和svmpredict函数的使用方法与参数设置
- 【Java知识点总结】Java 常量
- mysql 优化 视图_如何优化MySQL视图
- RSA算法原理(简单易懂)
- #program once 和 #ifndef
- css滑动门技术的应用,css 滑动门技术的介绍及实例分享
- Linux命令:使用grep命令进行与(AND)或(OR)非(NOT)查询
- sql语句内联 左联 右联的区别
- JQueryDOM之删除节点
- e生保等待期什么意思_关于e生保等待期的那些小秘密!你一定要知道!