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

Summary of failed software installation on Linux system

王林
王林 Original
2019-12-18 10:25:44 5553browse

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

Solution:

Use the following command to repair Installation package

$ sudo apt-get --fix-broken install

or

$ sudo dpkg --purge xxx

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 (更新源)

and then enter again:

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

Finally, use the installation command:

sudo apt-get install‘软件名字’

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!

Statement:
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