sudo apt-get update&sudo apt-get install tightvncserver在Raspbian stretch上给出错误
问题描述:
我是Raspberry pi初学者。我已经设法使用腻子远程连接rpi。sudo apt-get update&sudo apt-get install tightvncserver在Raspbian stretch上给出错误
我想用tightvncserver访问RPI贵,但sudo易于得到更新和命令和apt-get安装tightvncserver是给错误:
[email protected]:~ $ sudo apt-get update
Err:1 http:/archive.raspbian.org/raspbian stretch InRelease
Temporary failure resolving 'archive.raspbian.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:/archive.raspbian.org/raspbian/dists/stretch/InRelease Temporary failure resolving 'archive.raspbian.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.)检查您的网络连接。 2.)确保你的DNS解析工作正常。 3.)去检查raspberrypi.org并为你的操作系统版本找到正确的版本库。
以上三种三者中的任何一种都可能解决您的问题。
+0
互联网连接建立也没有问题的存储库。问题是没有。 2,为此,我将/etc/resolv.conf的内容更改为nameserver 8.8.8.8 nameserver 8.8.4.4。它解决了我的问题。 tightvncserver工作正常,并得到gui。但每次登录时,我都必须在/etc/resolv.conf中进行相同的更改。谢谢。 –
https://raspberrypi.stackexchange.com/ - 是Raspberry Pi特定问答网站。 – Dmitry
谢谢..这是有帮助的.. –