使用sudo apt-get update报错:

E: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/xenial/main/binary-amd64/Packages 404 Not Found [IP: 101.6.15.130 80]
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。

原因分析:源的问题,更换源

先备份源文件

sudo cp /etc/apt/sources.list  /etc/apt/sources-bak.list

修改源文件

sudo gedit /etc/apt/sources.list

将内容替换成

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

保存即可,重新运行sudo apt-get update

本教程使用的是ubuntu18.04,其他版本清参考以下网址替换内容
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/

使用sudo apt-get update报错:E: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/xenial/main/b相关推荐

  1. 报错: Err:8 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu xenial Release.gpg The following signatur

    报错: Err:8 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu xenial Release.gpg The following signatures ...

  2. Linux 使用wegt报错,ERROR: cannot verify mirrors.tuna.tsinghua.edu.cn‘s certificate, issue

    上面报错的意思是: 连接到 mirrors.tuna.tsinghua.edu.cn 不安全,使用"不检查证书",即在 wget 后加入no-check-certificate 即 ...

  3. apt update时出现Duplicate sources.list entry http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial Release

    问题描述:执行sudo apt update出现以下信息 Duplicate sources.list entry http://mirrors.tuna.tsinghua.edu.cn/ubuntu ...

  4. sudo apt-get update 报错 ubuntu xenial InRelease 明文签署文件不可用,结果为‘NOSPLIT’(您的网络需要认证吗?)解决

    一句话总结:换可用的国内源. 问题的产生: 今天刚装了个ubuntu 16.04(还没装新的)结果想装个vim一直不成功,sudo apt -update多次总是出现下面的: 获取:1 http:// ...

  5. Fedora或CentOS运行dnf update报错

    今天我照常打开电脑,随手运行了一句sudo dnf update,然后屏幕输出了一堆错误信息,我挨个删除仓库,最后事情越搞越乱,只好把除了NVIDIA以外的更新源全删了. 这下芭比Q了,虽然现在执行更 ...

  6. 【BUG解决】sudo apt-get update 报错 E: The repository ‘http://xxx Release‘ does not have a Release file.

    BUG描述 前两天在虚拟机Vmware中安装了Ubuntu18.04操作系统,因为需要安装其他工具.所以想着执行命令 sudo apt-get update 更新一下系统,以便进行安装.结果出现&qu ...

  7. Ubuntu20.04更换软件源之后apt-get update报错

    Ubuntu20.04更换软件源之后apt-get update报错 按照网上的教程想更换清华的镜像 参考:https://blog.csdn.net/baidu_41617231/article/d ...

  8. apt-get update 报错 W: Unknown Multi-Arch type 'no' for package 'compiz-core'

    源 #deb包 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http:// ...

  9. kali linux 2.0配置更新源后apt-get update 报错

    这个是我/etc/apt/sources.list的更新源: 1 deb http://http.kali.org/kali kali-rolling main contrib non-free 2 ...

最新文章

  1. 5G领衔,十余名专家解析当下最火的“新基建”
  2. 景驰获雷诺领投A轮融资,更名WeRide.ai,联手广州公交推出无人出租
  3. 文章页调用栏目链接和栏目名称的方法
  4. SAP B1 9.1 生产收货数量加已完成数量不能大于计划数量(存储过程控制代码)...
  5. DEDECMS短信宝短信插件
  6. 热敏电阻温度采集简述
  7. html文档绝对引用,excel中的绝对引用怎么用 excel中引用绝对引用是哪个键
  8. 关于幼儿教师音乐素养对幼儿成长影响力的研究的论文怎么写呀
  9. 春季养生知识多 吃萝卜可预防上火
  10. LeetCode1221.分割平衡字符串1894.找到需要补充粉笔的学生编号(C++)
  11. Simulation?Emulation?模拟?仿真?
  12. 6580 8.1 mtp模式,查看手机容量大小修改
  13. 这套系统,可能真的是数据分析师未来5年的机遇!
  14. C++中调用SPLUS对象经典例子
  15. Python切割九宫格图
  16. 物流企业的信息化融合趋势及竞争战略研究 (zt)
  17. 安卓加密壳(dexcrypt) , 防止apktool,dex2jar 等工具逆向你的apk,附上下载地址
  18. 录音服务器修复中是什么原因,在母带中修复音频的 10 个常用方法
  19. 世界上并无汉语编程——正如世界上并无英语编程
  20. android增加5G热点,运营商甘拜下风:Android 11将划分5G信号新层次

热门文章

  1. 音素,音节,单词,句子,语言
  2. SMRT: Snow Microwave Radiative Transfer model
  3. 上拉电阻(Pull-upResistors)
  4. 一个电商购物(B2C)网站性能测试需求
  5. Win32程序标准开发流程 .
  6. python实现bp神经网络预测,神经网络算法预测彩票
  7. hdu 4523 威威猫系列故事——过生日 小模拟
  8. 百度SEO站群Sober主题英文版-电子商务主题(WordPress响应式)
  9. SQL的注入对于安全测试的重要性~
  10. 万全的Error:Flash Download failed-“Cortex-M3“解决方案