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