当前位置:网站首页>window unbutu20 LTS apt,wget 安装时 DNS 解析错误
window unbutu20 LTS apt,wget 安装时 DNS 解析错误
2022-07-25 13:32:00 【木下瞳】

搜索了一大把,都是说 DNS 解析错误,照着大家的方法,去修改 /etc/resolv.conf 里面的东西就可以了,但是我发现修改后有一个问题,重启后,查看这个文件又自动还原成默认的样子了,不能持久化,所以目前只能每次遇到 DNS 问题时运行一下代码,再去 apt 安装
sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo bash -c 'echo "[network]" > /etc/wsl.conf'
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
sudo chattr +i /etc/resolv.confwget 也可能有这问题,我运行上面代码,再去安装就可以了
边栏推荐
- Friends let me see this code
- Canvas judgment content is empty
- Numpy quick start
- How to realize the configuration method of user password free login?
- My creation anniversary
- 0716RHCSA
- JS Array indexOf includes sort() 冒号排序 快速排序 去重和随机样本 random
- Online Learning and Pricing with Reusable Resources: Linear Bandits with Sub-Exponential Rewards: Li
- 【AI4Code】《Pythia: AI-assisted Code Completion System》(KDD 2019)
- 剑指offer专项突击版第10天
猜你喜欢

Docekr learning - MySQL 8 master-slave replication setup deployment

Install mujoco and report an error: distutils.errors DistutilsExecError: command ‘gcc‘ failed with exit status 1
![[figure attack and Defense] backdoor attacks to graph neural networks (sacmat '21)](/img/d2/6be99fd194c66e4f60af38c6e52c93.png)
[figure attack and Defense] backdoor attacks to graph neural networks (sacmat '21)

Redis visualizer RDM installation package sharing
![[six articles talk about scalablegnn] around www 2022 best paper PASCA](/img/ac/150f6397724593a30aab2805ba5084.png)
[six articles talk about scalablegnn] around www 2022 best paper PASCA

【GCN-RS】Region or Global? A Principle for Negative Sampling in Graph-based Recommendation (TKDE‘22)

【AI4Code】CodeX:《Evaluating Large Language Models Trained on Code》(OpenAI)

Date and time function of MySQL function summary

JS Array indexOf includes sort() 冒号排序 快速排序 去重和随机样本 random

Jupyter Notebook介绍
随机推荐
为提高效率使用ParallelStream竟出现各种问题
【服务器数据恢复】HP EVA服务器存储RAID信息断电丢失的数据恢复
HTTP cache tongtianpian, there may be something you want
QGIS加载在线地图:高德、天地图等
央行数研所穆长春:数字人民币可控匿名是维护公众利益和金融安全的客观需要
Hcip day 8 notes
好友让我看这段代码
0719RHCSA
领域驱动模型设计与微服务架构落地-模型设计
How to use handwritten JDBC?
并发编程之AQS
2022全球开发者中,你的收入排多少?
Convolutional neural network model -- alexnet network structure and code implementation
Hcip day 9 notes
Excel录制宏
VIM tip: always show line numbers
Numpy简介和特点(一)
Discussion on principle and application technology of MLIR
Hcip seventh day notes
Friends let me see this code