ubuntu安裝軟體時提示有未能滿足的依賴關係

來源:互聯網
上載者:User

環境:ubuntu 14.04 STL、64位    

在ubuntu中我們使用sudo apt-get install 或者dpkg -i *.deb安裝軟體時,常常提示“有未能滿足的依賴關係“,這是因為當前軟體源中依賴庫的版本不滿足軟體的要求。
解決辦法:
步驟1:更新軟體源。ubuntu內建的軟體源比較舊,很多的軟體版本較低,國內比較好用的源有阿里源;
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #備份
sudo vim /etc/apt/sources.list #修改源列表,將阿里雲源複製到sources.list檔案中
sudo apt-get update #更新本地源列表;

阿里雲源:

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse  步驟2:sudo apt-get install 軟體名稱。這裡會提示“有未能滿足的依賴關係“;
步驟3:sudo apt-get -f install。這個命令會針對當前不滿足的依賴關係,下載正確版本的依賴庫;
步驟4:sudo apt-get install 軟體名稱。這一步就會正確安裝軟體了,ok。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.