Fault Description:
Ubuntu (16.04) After the system is booted up, the mouse and keyboard fail. There is no response. The system cannot be operated, accessed or restarted.
Cause of failure:
Ubuntu’s desktop environment was destroyed by the installation of software with a similar theme or format, i.e. the ubuntu-Desktop of the system could not find the path.
Solutions:
1. Forcibly restart the PC (press the power key) and keep pressing Esc to enter the GRUB screen
2. Select recovery Mode and press Enter
Menu commands:
<1> resume
Resume - Resume Normal boot. This mode is provided to users who accidentally enter this option, allowing them to resume the normal boot modeCopy the code
<2> clean
Clean -- Try to make free space Clean software packages, Try to clear unnecessary file storage space on the hard disk.Copy the code
<3> dpkg
DPKG -- Repair broken packagesCopy the code
<4> failsafeX
failsafeX --- Run inFailsafe Graphic Mode Runs in secure graphic modeCopy the code
<5> fsck
FSCK -- Check all File System Check and repair bad sectors or logical bad sectors. Scan and repair disks or hard disks. Suitable for abnormal startupCopy the code
<6> grub
Grub -- Update GRUB bootloader Updates GRUB bootCopy the code
<7> network
Shell interface with network connection, directly start in text mode, and Enable network connection supportCopy the code
<8> root
Root -- Drop to root shell prompt Shell interface of the highest administratorCopy the code
<9> system-summary
System-summary -- System summary View system information or dataCopy the code
3. Select Resume — Resume Normal boot and Enter (Enter)
4. After entering the TTY command, a white blinking cursor appears in the upper left corner. Press Ctrl + Alt + F1 to enter the TTY command mode
The interface prompts users to log in: enter as root account (other accounts have no permission to log in)
From the command line, enter startx:
startx
Copy the code
When you start the GUI, an error message is displayed:
/etc/X11/Xinit/xserverrc: 3: exec: /usr/bin/X: not found
xinit: giving up
...
Copy the code
This error occurred because the Ubuntu-desktop could not find the path. Solution: Install Ubuntu-desktop and run the following command:
sudo apt-get install ubuntu-desktop
Copy the code
5. After the installation, run the restart command
Sudo shutdown -r now or sudo rerootCopy the code
References:
Blog.csdn.net/chichoxian/…
Blog.csdn.net/zjwcdd/arti…