Home >Operation and Maintenance >Linux Operation and Maintenance >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 )
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!