ubuntu12.04升級到14.04,apt-get install失敗的問題解決
Ubuntu升級之後打算安裝幾個新的軟體:
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
返回錯誤類似如下:
E: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/pool/universe/x/xfce4-appfinder/xfce4-appfinder_4.10.1-1_amd64.deb Could not resolve 'hk.archive.ubuntu.com' E: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/pool/universe/x/xfce4-mixer/xfce4-mixer_4.10.0-1ubuntu2_amd64.deb Could not resolve 'hk.archive.ubuntu.com'
這個是網路解析過程出錯導致的。ping內網機器可以,但是外網機器ping不通。
[email protected]:~$ ping cn.archive.ubuntu.com
ping: unknown host cn.archive.ubuntu.com
然後嘗試設定預設閘道器。
[email protected]:/etc$ sudo route add default gw 192.168.1.1
[sudo] password for irdetogame:
SIOCADDRT: Network is unreachable
提示 network is unreachable。原來
vi /etc/resolv.conf
nameserver <DNS server ip>
然後重啟網路配置。
/etc/init.d/networking restart
再次執行apt-get安裝就成功了。
相關推薦
ubuntu12.04升級到14.04,apt-get install失敗的問題解決
Ubuntu升級之後打算安裝幾個新的軟體: sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal 返回錯誤類似如下: E: Failed to f
關於ubuntu17.04之apt-get源失敗 解決辦法
失敗 解決 ted apt-get 關於 back 軟件源 成功 source 這個是清華的apt-get源,適用於ubuntu17.04 命令行:cd /etc/apt/sources.list.d 命令行:sudo vi /etc/apt/sources.list
Ubuntu 14.10執行apt-get update失敗
一、問題描述: 因為經常使用apt-get命令安裝所需要的開發軟體,但經常由於連結不上軟體源不能正常安裝,於是就是用sudo apt-get update命令來更新軟體源,但這條更新命令也經常不能正常使用,出現大量的錯誤:W: Failed to fetch *** 40
Ubuntu系統 apt-get update失敗解決辦法
(測試系統Ubuntu14.10和9.10) 使用apt-get的時候發現ubuntu和阿里雲均已經不提供該版本的源,所以需要找到其他的替代源。使用的ubuntu版本是14.10,屬於非LTS(長期支援版本),因此前一段時間還可以使用apt-get update來更新源,現
apt-get update失敗解決方案
剛準備入坑hadoop,結果在虛擬機器上面搭建環境的第一步就被難住了,對,我在jdk的安裝上面被難住了!!!長話短說,在執行sudo apt-get update時,出現了錯誤:“E:Some index files failed to download.They have
ubuntu apt-get update 失敗解決。
當執行apt-get update後出現如下錯誤時: E: Some index files failed to download, they have been ignored, or old ones used instead.可以將目錄下/var/lib/apt/li
ubuntu12.04 apt-get upgrade失敗的問題
今天,維護自己ubuntu伺服器,使用apt-get upgrade更新源,但是出現下面的失敗資訊: Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com o
ubuntu 14.04 apt-get update失敗的解決辦法
ubuntu 14.04 apt-get update失敗解決方法 在ubuntu14.04版本(虛擬機器)安裝jdk之前,一般我們會執行以下命令從源下載更新到系統 sudo apt-get install update 但這時總會出現形似:”fetc
2017-9-24-Linux移植:ubuntu server 16.04無法聯網&無法apt-get update解決
配置 ack src clas ron con span 技術 修改 無法上網!!!不能忍。。 現象:ifconfig 毛都沒有,想找一下ip都找不到。 ifconfig –a 可以列出所有網卡設備,確認VM VirtualBox網卡開對了,已經給到了虛擬機。 編輯/e
Ubuntu 17.04 apt-get 獲取失敗
log 無法安裝 站點 取消 sources update apt clean div 最近電腦上的ubuntu apt-get 命令出現了異常,百度好久終於解決。 問題:sudo apt-get update命令執行 全部忽略或者是錯誤 一些文件也無法安裝
apt,apt-get,aptitude層層升級,upgrade和dist-upgrade
apt集成了apt-get的部分命令,所以apt比apt-get高階一點,aptitude解決了apt對於依賴的問題,所以aptitude比apt又高階一點。 ##sudo apt-get install aaa ##sudo apt install aaa ##su
Ubuntu 16.04.3 LTS: apt-get update 失敗處理 Aborted (core dumped)
7ffeed1eb000-7ffeed1ed000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-f
Ubuntu14.04下編譯安裝或apt-get方式安裝搭建Apache或Httpd服務(圖文詳解)
不多說,直接上乾貨! 寫在前面的話 對於 在Ubuntu系統上,編譯安裝Apache它預設路徑是在/usr/local/apache2/htdocs 或者編譯安裝httpd它預設路徑是在/usr/local/apache/htdocs
ubuntu17.04安裝teamviewer 和用apt-get update遇到的一些問題
在ubuntu17.04上裝teamviewer 參考這篇教程https://www.cnblogs.com/wmr95/p/7574615.html但是用sudo apt-get install -f 修復安裝依賴包時出錯,W: 倉庫 “http://mirrors.163
ubuntu14.04 apt-get install 軟體時提示現在沒有可用的軟體包...但是它被其他的軟體包引用了 錯誤解決
在ubuntu下安裝lsb-coresudo apt-get install lsb-core時出現正在讀取軟體包列表... 完成正在分析軟體包的依賴關係樹 正在讀取狀態資訊... 完成 現在沒有可用的軟體包 lsb-core,但是它被其它的軟體包引用
ubuntu 14.04升級16.04 遇到的相關問題及解決
安裝ROS時,程式報錯: ***@bw-CW35:~$ sudo apt-get install ros-kinetic-desktop-full [sudo] *** 的密碼: 正在讀取軟體包列表... 完成 正在分析軟體包的依賴關係樹 正在
sudo apt-get install,出現了下面的Unable to locate package錯誤:
bsp ble 更換 pda 出現 tro sta 錯誤信息 發現 sudo apt-get install,出現了下面的Unable to locate package錯誤: 這叫一個郁悶啊,出師不利,不帶這麽嚇唬剛玩Ubuntu的小朋友吧~於是趕緊找資料
在ubuntu中我們使用sudo apt-get install 或者dpkg -i *.deb安裝軟件時,常常提示“有未能滿足的依賴關系“,解決方法
yun 依賴庫 all OS install rop bak pkg mir 很早之前在ubuntu安裝軟件時遇到的問題,今天打開ubuntu看到了,總結如下: 在ubuntu中我們使用sudo apt-get install 或者dpkg -i *.deb安裝軟件常常提示
Debian/Ubuntu系統下,apt-get update 、apt-get upgrade 、apt-get dist-upgrade 命令之間的區別
問題: 1. apt-get update和 apt-get upgrade之間有什麼區別? 2. 應該先跑哪個? 3. 他們中的任何一個會自動執行另一個嗎? 回答: 1. apt-get update和 apt-get
apt-get update,apt-get upgrade,apt-get dist-upgrade的作用
安裝或升級系統分下面幾個步驟。 第一步,獲得最近的軟體包的列表;列表中包含一些包的資訊,比如這個包是否更新過。 第二步,如果這個包沒有釋出更新,就不管它;如果釋出了更新,就把包下載到電腦上,並安裝。 apt-get update對應的就是第一步,