ubuntu server 無法update [論壇 - Ubuntu安裝問題]
正在瀏覽:
1 名遊客
ubuntu server 無法update |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員一級
![]() ![]() 註冊日期:
2017/8/23 16:08 所屬群組:
已註冊使用者 等級: 1
HP : 0 / 0
![]() |
環境:Hyper-V
版本:ubuntu-16.04.3-server-amd64 -------------------------------------- 網路連線是正常的 可以連到此伺服器的網站 但使用指令:sudo apt-get update 就是無法更新 已經換過好幾個下載伺服器 錯誤內容大同小異(附件圖片)
2017/8/23 17:18
|
||||||||||
![]() |
回覆: ubuntu server 無法update |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 36
HP : 179 / 895
![]() |
Felix6 寫到: 我沒在電腦前, 根據上面藍色字的線索,我猜有可能主機在更新,<--純猜測,我沒驗証,有可能講錯。 通常我遇到這樣的狀況是選擇等待, 過一段時間再試,或是隔天再試。 若還是有同樣的狀況發生,我才會再去找出錯的環節。 若您想深究的話,提供之前的一篇討論「#2 回覆: apt 出現許多錯誤訊息」,讓您有探索的起點。 該篇遇到的情形不見得跟您的是一樣的。 要探究的重點,是套件庫的結構和原理。 瞭解了基楚原理,您才比較有機會可以解惑。 ================================================================================ 或是使用「temporary failure resolving 'tw.archive.ubuntu.com'」當關鍵字找其它的討論。 例如:「{急}UBUNTU 12.04 已改變伺服器源但還是無法更新及安裝(已解決)」。 ================================================================================ 以上提供參考 報告完畢 ![]()
2017/8/23 18:26
|
||||||||||
![]() |
回覆: ubuntu server 無法update |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員一級
![]() ![]() 註冊日期:
2017/8/23 16:08 所屬群組:
已註冊使用者 等級: 1
HP : 0 / 0
![]() |
已解決 是DNS沒有設定好 修改完後就正常了 感謝提供連結找到問題:)
2017/8/24 9:15
|
||||||||||
![]() |
回覆: ubuntu server 無法update |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 36
HP : 179 / 895
![]() |
Felix6 寫到: 感謝您的回覆, 根據您的回覆,下面做了個小實驗。 以下測試環境是「Xubuntu 16.04 amd64 英文界面」 ================================================================================ 執行
然後把「resolv.conf」的內容清空,或是每行都加上「#」來註解掉 然後執行
就會顯示 Err:1 http://tw.archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'tw.archive.ubuntu.com' Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:3 http://tw.archive.ubuntu.com/ubuntu xenial-updates InRelease Temporary failure resolving 'tw.archive.ubuntu.com' Err:4 http://tw.archive.ubuntu.com/ubuntu xenial-backports InRelease Temporary failure resolving 'tw.archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://tw.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'tw.archive.ubuntu.com' W: Failed to fetch http://tw.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'tw.archive.ubuntu.com' W: Failed to fetch http://tw.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'tw.archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead. ##「DNS」相關的討論 * 關於「resolvconf」的操作使用
2017/8/24 10:02
|
||||||||||
![]() |
回覆: ubuntu server 無法update |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 36
HP : 179 / 895
![]() |
以下測試環境是「Xubuntu 16.04 amd64 英文界面」
================================================================================ 然後也可以下載「apt」的「Source Package」來探索 執行
然後可以看到一個資料夾「apt-1.2.24」,兩個檔案「apt_1.2.24.dsc」和「apt_1.2.24.tar.xz」。 接著執行
就會顯示
就可以找到「apt-1.2.24/methods/connect.cc」這個檔案, 在第「211」行, 可以找到「return _error->Error(_("Temporary failure resolving '%s'"),」 更多套件的操作,請參考「[索引] 套件操作實務」。 ================================================================================ 以上探索的起點,提供參考 報告完畢 ![]()
2017/8/24 10:17
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.