树莓派-ubuntu更换源报 E: Failed to fetch。。。。错误的解决办法

Posted 儒雅随和狗粉丝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了树莓派-ubuntu更换源报 E: Failed to fetch。。。。错误的解决办法相关的知识,希望对你有一定的参考价值。

 

在树莓派中安装ubuntu系统,将源更换为阿里,网易之类的源都报下面这写错误

E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-backports/main/binary-arm64/Packages  404  Not Found [IP: 36.104.154.185 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-proposed/main/binary-arm64/Packages  404  Not Found [IP: 36.104.154.185 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-security/main/binary-arm64/Packages  404  Not Found [IP: 36.104.154.185 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-updates/main/binary-arm64/Packages  404  Not Found [IP: 36.104.154.185 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty/main/binary-arm64/Packages  404  Not Found [IP: 36.104.154.185 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

将源改为中国科学技术大学的源之后,就成功了:

$ sudo vim /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe

更新

sudo apt update

 

 

 

 

以上是关于树莓派-ubuntu更换源报 E: Failed to fetch。。。。错误的解决办法的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu更新源报错Certificate verification failed: The certificate is NOT trusted.

vmware虚拟机与树莓派4B安装ubuntu1804 + ros遇到的问题

树莓派树莓派更换源

树莓派 阿里云源

树莓派更换软件源的方法

树莓派4的hdmi无输出黑屏的解决