Apt-get in Linux

Source: Internet
Author: User
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: Let's take a look at the questions I encountered... 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 parameters and functions of apt-get: common APT command parameters :( Indicates the package name. it can be easily included in <>.) apt-cache search Search package apt-cache show Obtains information about the package, such as description, size, and version. sudo apt-get install Installation package sudo apt-get install --Reinstall: reinstall the installation package sudo apt-get-f install to fix the installation "-f = -- fix-missing" sudo apt-get remove Delete sudo apt-get remove --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 Learn how to use apt-cache rdepends Is to view which packages the package depends on sudo apt-get build-dep Install the relevant compilation environment apt-get source Download the source code sudo apt-get clean & sudo apt-get autoclean of The sudo apt-get check useless package to check whether there is any corrupted dependency
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.