
如何解決這個問題?每次我嘗試安裝/更新軟體包時都會失敗
root@nson:~# sudo apt-get install dconf-editor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dconf-editor
0 upgraded, 1 newly installed, 0 to remove and 230 not upgraded.
Need to get 99,4 kB of archives.
After this operation, 492 kB of additional disk space will be used.
Err http://be.archive.ubuntu.com/ubuntu/ saucy/universe dconf-editor amd64 0.16.1-1
Could not resolve 'be.archive.ubuntu.com'
Failed to fetch http://be.archive.ubuntu.com/ubuntu/pool/universe/d/d-conf/dconf-editor_0.16.1-1_amd64.deb Could not resolve 'be.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@nson:~#
root@nson:~# sudo apt-get update
0% [Connecting to be.archive.ubuntu.com] [Connecting to security.ubuntu.com] [Connecting to extras.ubuntu.com]
答案1
透過前往儀表板並蒐索來開啟您的軟體中心。
在選單中,選擇“編輯”->“軟體來源”。
在開啟的彈出視窗中,將有一個「Ubuntu 軟體」標籤(第一個)和「從選擇選項下載」。選擇“主伺服器”並輸入您的密碼。
然後嘗試sudo apt-get update && sudo apt-get upgrade
在終端中運行。
答案2
首先檢查您是否有有效的網路連線。
然後更新儲存庫並嘗試安裝軟體包,
sudo apt-get update
sudo apt-get install <package name>