how to repair linux system

Release: 2020-01-14 16:57:37
Original
4053 people have browsed it

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
Copy after login

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!

Related labels:
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