Home  >  Article  >  Operation and Maintenance  >  how to repair linux system

how to repair linux system

尚
Original
2020-01-14 16:57:373979browse

how to repair linux system

Make a USB LiveCD boot disk, start the Ubuntu system in the boot disk, and then follow these steps:

Back up your important data on external storage to prevent this After the method fails, important data is lost.

Enter the following commands in sequence:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
sudo apt clean
sudo apt-get update --fix-missing
sudo apt install -f
sudo dpkg --configure -a
sudo apt-get upgrade

Then use the sudo reboot command to restart.

Recommended learning: linux tutorial

The above is the detailed content of how to repair 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