无法在Raspberry Pi中获得apt-get更新工作

时间:2019-03-27 19:44:55

标签: python raspberry-pi3 apt-get

我正在尝试执行

sudo apt-get update

但我总是每次都会收到此错误

Err:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
  Temporary failure resolving 'raspbian.raspberrypi.org'
Err:2 http://archive.raspberrypi.org/debian stretch InRelease
  Temporary failure resolving 'archive.raspberrypi.org'
Reading package lists... Done
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/InRelease  Temporary failure resolving 'raspbian.raspberrypi.org'
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.

在此先感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

好像您的pi未连接到Internet或您使用的DNS服务器出了点问题。

也请删除python标记,因为它不相关。