Home > Operation and Maintenance > Linux Operation and Maintenance > Summary of failed software installation on Linux system

Summary of failed software installation on Linux system

王林
Release: 2019-12-18 10:25:44
Original
5677 people have browsed it

Summary of failed software installation on Linux system

Problem 1. Ubuntu encounters an error message when using "apt-get install" to install the program

you might want to run 'apt-get -f install' to correct these
Copy after login

Solution:

Use the following command to repair Installation package

$ sudo apt-get --fix-broken install
Copy after login

or

$ sudo dpkg --purge xxx
Copy after login

where xxx is the program that failed to install. Its name will be given in the error prompt. However, it may not be given in the error prompt, but the previous installation was correct. Errored program.

Free learning video tutorial recommendation: linux video tutorial

Question 2. The installation failure occurs when using Ubuntu to install software as follows (the system is newly installed under a virtual machine )

Summary of failed software installation on Linux system

Solution:

Enter next time on the command line:

sudo apt-get update (更新源)
Copy after login

and then enter again:

sudo apt-get install upgrade  (更新已安装的包)
Copy after login

Finally, use the installation command:

sudo apt-get install‘软件名字’
Copy after login

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of Summary of failed software installation on Linux system. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template