Err:1 http://archive.raspberrypi.org/debian stretch InRelease Temporary failure resolving 'archive.raspberrypi.org' Err:2 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch InRelease Temporary failure resolving 'mirrors.ustc.edu.cn' Reading package lists... Done W: Failed to fetch http://mirrors.ustc.edu.cn/raspbian/raspbian/dists/stretch/InRelease Temporary failure resolving 'mirrors.ustc.edu.cn' W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease Temporary failure resolving 'archive.raspberrypi.org' W: Some index files failed to download. They have been ignored, or old ones used instead.
时间: 2024-04-03 13:33:52 浏览: 225
sudo apt-get install ethereum遇到E: Failed to fetch http://ppa.launchpad.net/, Unable to fetch some等
5星 · 资源好评率100%
根据你的问题,我猜测你遇到了在树莓派上安装软件时出现的问题。错误信息中提到了“Temporary failure resolving”,这意味着在连接软件源的过程中出现了网络连接问题。你可以尝试检查你的网络连接,或者更换其他可用的软件源。你可以在树莓派上执行以下命令更换为清华大学的软件源:
1.备份原有的源文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.编辑源文件
sudo nano /etc/apt/sources.list
3.在该文件中添加以下内容
#清华大学源
deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main non-free contrib
4.更新软件列表
sudo apt-get update
希望这能够帮助你解决问题。
阅读全文