Ubuntu prompts for an unmet dependency when installing software

Source: Internet
Author: User
Tags aliyun

Environment: Ubuntu 14.04 STL, 64-bit

In Ubuntu, when we install software using sudo apt-get install or dpkg-i *.deb, we often prompt for "unsatisfied dependencies" because the version of the repository that is dependent on the current software source does not meet the requirements of the software.
Workaround:
Step 1: Update the software source. Ubuntu comes with the old software source, a lot of software version is low, the domestic more useful source has Ali;
sudo cp/etc/apt/sources.list/etc/apt/sources.list.bak #备份
sudo vim/etc/apt/sources.list #修改源列表, copy Alibaba Cloud Source to sources.list file
sudo apt-get update #更新本地源列表;

Alibaba Cloud Source:

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 step 2:sudo apt-get Install The software name. There will be a hint of "unsatisfied dependencies";
Step 3:sudo apt-get-f Install. This command downloads the correct version of the dependent library for the current unsatisfied dependency;
Step 4:sudo apt-get Install software name. This step will install the software correctly, OK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.