使用sudo apt-get update后报错:

Err:1 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu bionic InReleaseTemporary failure resolving 'ppa.launchpad.net'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InReleaseTemporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic InReleaseTemporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-updates InReleaseTemporary failure resolving 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu bionic-backports InReleaseTemporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/wireshark-dev/stable/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.

使用ping www.baidu.com测试一下网络,如果出现:ping: www.baidu.com: Temporary failure in name resolution就是网络问题了,

解决方法

首先

sudo vim /etc/systemd/resolved.conf

修改DNS如下:

[Resolve]
DNS=8.8.8.8
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStubListener=yes

修改下如下配置文件

vim /etc/resolv.conf 

添加如下内容:

nameserver 8.8.8.8

然后重启:

reboot

重启完成后更新一下源就行:

sudo apt-get update

解决Some index files failed to download.They have been ignored, or old ones used instead报错相关推荐

  1. sudo apt-get update E: Some index files failed to download. They have been ignored, or old ones use

    执行 sudo apt-get update,出现以下问题: W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-secu ...

  2. E: Some index files failed to download. They have been ignored, or old ones used instead.解决方案

    1.删除 /var/lib/apt/lists/所有文件  $ sudo rm /var/lib/apt/lists/* -vf 有文件夹不能删除的话使用  $ sudo rm -rf /var/li ...

  3. open failed: EACCES (Permission denied)权限已加,写入sd卡仍报错的解决办法

    不知道大家有没有碰到过这种情况,在运行虚拟机时,或者使用高版本的安卓手机时,即使是在清单文件中加了权限,向sd卡写入数据时还是会报错:open failed: EACCES (Permission d ...

  4. django解决NameError: name ‘_mysql‘ is not defined 或 mysqlclient 1.4.0 or newer is required报错

    完整的报错是: NameError: name '_mysql' is not defined或django.core.exceptions.ImproperlyConfigured: mysqlcl ...

  5. 解决关于 ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it....报错

    mysql> create user 'zhilong'@'%' identified by '123456'; ERROR 1290 (HY000): The MySQL server is ...

  6. 解决 'config.h' file not found。升级xcode 新版本导致旧的RN项目打开报错 解决方法。...

    2019独角兽企业重金招聘Python工程师标准>>> 电脑升级了最新的 macOS Mojave 和最新的 XCode 10,升级之后解决出现以前旧版本的RN项目打不开. 解决方法 ...

  7. 解决ImportError: /home/xxx/Software/anaconda3/lib/libstdc++.so.6: version `GLIBCXX_3.4.29‘ not found报错

    运行脚本时出现这个报错意味着当前conda环境gcc动态库需要更新 我们可以在相应conda环境下输入以下代码更新: conda install -c anaconda libstdcxx-ng 然后 ...

  8. cydia软件路径_Cydia报错解决大全

    一.主屏幕没有 Cydia 图标  1.设备需已越狱  2.不完美越狱,需要引导才能出现Cydia图标,清楚icon 缓存.    二.Cydia 无法启动(或有闪退现象)  1.Cydia 以前的版 ...

  9. Jetson设备下使用docker报错的排错过程完整记录,failed to create shim: OCI runtime create failed: container_linux.go:38

    起因是要使用nvidia部署好的ngc镜像部署 nvidia@nvidia-desktop:~$ sudo docker images REPOSITORY TAG IMAGE ID CREATED ...

最新文章

  1. mysql java jdbc 如何 update select
  2. C++编译器Qt Creator下载地址
  3. java applet 记事本_jsb java编写的安卓app记事本程序,适合app初学者 Applet 243万源代码下载- www.pudn.com...
  4. PyObject_CallMethod
  5. 粘包的原因分析及解决
  6. Python中MD5加密字符串
  7. DAS、NAS、SAN区别
  8. 【Linux】一步一步学Linux——Bash常用快捷键(11)
  9. PL/SQL 编程(二)
  10. 中英翻译机c语言实验报告引言,课程设计--C语言关键字中英翻译机.doc
  11. 内核并发控制---互斥量(来自网易)
  12. linux查看和编辑文件,查看和编辑文件(Linux的快捷键和主要命令)
  13. Java开发过程中需要注意的技巧有哪些?
  14. 字体推荐——sarasa更纱黑体
  15. 广告学计算机平面设计(1)形考5,精编国家开放大学电大专科《计算机平面设计》网络课形考任务1答案.docx...
  16. IP命令--mesh路由重启后IP地址被重新分配的问题
  17. aardio学习记录-1.基本概念和自定义类的调用
  18. KafKa 开启 SASL 验证
  19. CF896C Willem, Chtholly and Seniorious(珂朵莉树)
  20. dm8127 A8 yuv420sp 送入到videoM3编码--已经解决

热门文章

  1. node.js——麻将算法(四)胡牌算法的一些优化处理方案(无赖子版)
  2. gcc g++ 支持c++11编译的标准和区别
  3. Pycharm配置Python虚拟环境与在虚拟环境安装PYQT5
  4. 【AI视野·今日Sound 声学论文速览 第一期】Thu, 14 Apr 2022
  5. 《学习OpenCV》课后习题解答(第四章)(仅供参考)(不断更新)
  6. 输出一行星花 1110 java
  7. 29.课时29.【Django模板】url标签使用详解(Av61533158,P29)
  8. 前端开发课件 202002
  9. django-后台传图0912
  10. fzyzojP2291 -- 小添添的庄园之道路修复