[Liunx] apt-get install the software: dependency problems and conflicts resolved

Normal use apt-get install to install depend conflicts arise:

Something like this:

mi @ ubuntu: ~ $ sudo apt -get install gcc-5-base: i386
Reading package lists ... Done
Building dependency tree package
Reading state information ... Done
gcc-5-base : i386 has the latest version (5.4.0-6ubuntu1 ~ 16.04.11).
gcc-5-base: i386 is set manually.
You may need to run "apt-get -f install" to correct the following errors:
The following packages have unmet dependencies:
cpp-5: dependence: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) However 5.4.0-6ubuntu1 ~ 16.04.10 about to be installed
g ++ - 5: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be 5.4.0-6ubuntu1 ~ 16.04.10 installation
gcc-5: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
gcc-5-base: destruction: gcc-5- base: i386 (= 5.4.0-6ubuntu1 ~ 16.04.10 !) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.11
gcc-5-base: i386: destruction:! gcc-5-base ( = 5.4. 0-6ubuntu1 ~ 16.04.11) but about to be installed 5.4.0-6ubuntu1 ~ 16.04.10
libasan2: dependence: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libatomic1: dependency: gcc-5-base (= 5.4.0- 6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libcc1-0: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but 5.4.0-6ubuntu1 ~ 16.04.10 about to be mounted
libcilkrts5: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libgcc-5-dev: dependence: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libgomp1: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04. 11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libitm1: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be 5.4.0-6ubuntu1 ~ 16.04.10 installation
liblsan0: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be installed 5.4.0-6ubuntu1 ~ 16.04.10
libmpx0: dependence: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libquadmath0: dependency: gcc-5-base (= 5.4.0- 6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libstdc ++ - 5-dev: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but 5.4.0- 6ubuntu1 ~ 16.04.10 about to be installed
libstdc ++ 6: dependence: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libtsan0: dependence : gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04.11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
libubsan0: dependency: gcc-5-base (= 5.4.0-6ubuntu1 ~ 16.04 .11) but about to be mounted 5.4.0-6ubuntu1 ~ 16.04.10
E: unmet dependent relationship. Try not specify the name of the package to run "apt-get -f install" (you can also specify a solution).

1 do not result in a conflict of .deb installation package can be removed.
2 If there are, and sudo apt-get install -f does not resolve dependency conflicts,
observe specific version conflicts depend conflict, the use of `` the option to specify the version installed.
3 If you specify the installation process is similar to mid-year report, a document covering the conflict, can be forced to cover.

Error handling archive /var/cache/apt/archives/gcc-5-base_5.4.0-6ubuntu1~16.04.11_amd64.deb (--unpack):: dpkg attempt to cover shared '/ usr / share / doc / gcc- 5-base / changelog.Debian.gz ', which packages gcc-5-base: other examples of different amd64

See:
https://askubuntu.com/questions/989694/how-to-solve-dpkg-error-processing-archive-var-cache-apt-archives-libvlccore9

Guess you like

Origin www.cnblogs.com/coding-gaga/p/11465107.html