2017-09-16 35 views
-1

我是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. 

任何幫助表示讚賞。 謝謝。

+0

https://raspberrypi.stackexchange.com/ - 是Raspberry Pi特定問答網站。 – Dmitry

+0

謝謝..這是有幫助的.. –

回答

0

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中進行相同的更改。謝謝。 –

相關問題