Apt-get-f Install repair dependent damage

Source: Internet
Author: User

1. When using commands Apt-get install or dpkg-i in Linux, there are sometimes the following dependency errors:


At this point, execute the following command immediately: Apt-get-f install.
2, Apt-get Grammar:

(1) apt-get [options] command [package name]
Options
-h this Help file.
-Q Output To log-no progress indicator
-QQ does not output information except for errors
-D Download only-do not install or extract archive files
-S is not actually installed. Simulate execution command
-Y assumes that all inquiries are optional, without prompting
-F attempt to fix system dependency damage
-M if the archive is not positioned, try to continue
-U Displays the list of update packages at the same time
-B Get the source package and compile-V to display the detailed version number
-c=? Read this configuration file
-o=? Set custom configuration options, such as-O dir::cache=/tmp

(2) There are several command fields in the syntax:

Update-Get the package list back
Upgrade-To update
Install-Installing a new package
Remove-Remove Package
Autoremove-Automatically remove all unused packages
Purge-Remove packages and configuration files
Source-Download Source file
BUILD-DEP-Compiling dependencies for source package configuration
Dist-upgrade-Release upgrade
Dselect-upgrade-Update According to Dselect selection
Clean-Clears the downloaded archive
AutoClean-Clears the old downloaded archive
Check-check to see if there is a corrupted dependency

3. Appendix---apt-get principle

It is well known that under the Linux operating system, the use of Apt-get to install software is very convenient. As long as a sudo apt-get install software name, you can easily solve the software installation, the most important thing is that he can solve the various complex dependencies, so that you do not have to this headache, and in Apt-get before the advent of the use of dpkg or earlier. Configure;make;make Install to install software is really unimaginable, install the software A, prompts you to install software B, finally installed, and prompted to install software C .... All kinds of entanglements. So apt is the advanced package management tool that greatly facilitates the vast number of Linux users, but also reduces the threshold for Linux users to get started. Whenever you execute a command to install or update a software, or update a software source, apt accesses the address within/etc/apt/sources.list and finds the package information for the system in the Web site, such as the operating system is Ubuntu, and the Web site is deb http:// Mirrors.163.com/ubuntu/precise main restricted universe Multiverse NetEase, then when we execute the installation command, he will visit the corresponding http://mirrors.163.com /ubuntu/dists/lucid/main/binary-i386/'s packages.gz, this file is a list of packages and their dependencies on the server and has been compressed with gzip. Apt-get Update uses this checklist to determine what additional packages are available and his content is stored in/var/lib/apt/lists, by accessing the lists to determine whether the software is installed, the latest version, and whether the dependencies are met, This determines the content to be updated and updated, and the installation process is done primarily by dpkg.
In general, APT is a management tool that tends to be downloaded.

4, reference

Www.cnblogs.com/pswzone/archive/2012/04/09/2438885.html

Www.cnblogs.com/kulin/archive/2012/07/31/2616490.html

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.