Apt-get in Linux today prompts me errors when I want to watch videos in Linux. Various dependencies indicate that linux cainiao are hard to cope, at this time, I realized the advantages of apt-get. So I went to view the relevant information about apt-get: first, let's take a look at the problem I encountered. How can I solve it? 1. I want to install mplayer (sudo apt-get install mplayer) and get the following result: mplayer: Dependency: libavcodec53 (>=4:0. 8 ~ Beta2-2) but it will not be installed or libavcodec-extra-53 (> =. 8 ~ Beta2-2) but it will not be installed with: libavformat53 (>=4:0. 8 ~ Beta2-2) but it will not be installed or libavformat-extra-53 (> =. 8 ~ Beta2-2) but it will not be installed 2. I think it depends on the two packages, then I will install, at this time apt-get can find the installation of these two packages ha! Sudo apt-get install libavformat53 sudo apt-get install libavcodec53. The result is: libavformat53: Dependency: libavcodec53 (>=4:0. 8.6-0ubuntu0. 12.04.1) but it will not be installed or libavcodec-extra-53 (> =. 8.6) but it will not be installed with: libavcodec53 (<. 8.6-99) but it will not be installed or libavcodec-extra-53 (<. 8.6.99) but it will not be installed with libavcodec53: Dependency: libgsm1 (> = 1.0.13) but it will not be installed with dependency: libschroedinger-1.0-0 (> = 1.0.0) but it will not be installed with dependencies: libvpx1 (> = 1.0.0) But it will not be installed 3. install the packages on which the two files depend apt-get install libgsm1 and then repeat the second step. After these two files are installed, you can install mplayer !!! There are some online problems that cannot be installed, such as the "TechSmith Camtasia decoder" and "gstreamer0.10-ffmpeg, to install these two packages, if you encounter such problems, you can try the following descriptions about the apt-get parameters and functions: Common APT command parameters :( <package>, it indicates the package name, which can be easily included in <>) apt-cache search <package> search package apt-cache show <package> to obtain package information, for example, sudo apt-get install <package> Installation package sudo apt-get install <package>-reinstall: reinstall the installation package sudo apt-get-f install to fix the installation "- f = -- fix-missing "sudo apt-get remove <package> Delete sudo apt-get remove <package>-purge delete a package, including deleting configuration files and other sudo apt-get update sources sudo apt-get upgrade update installed packages sudo apt-get dist-upgrade system sudo apt-get dselect-upgrade use dselect upgrade apt-cache depends <package> to learn which packages depend on sudo apt-get build-dep by using apt-cache rdepends <package>. apt-get source <package> download the source code of this package sudo apt-get clean & sudo apt-get autoclean clear useless package sudo apt-get check whether there is any corrupted dependency