[Ubuntu] Ubuntu16.04 installs the graphics driver and restarts to solve the black screen problem

Ubuntu16.04: After installing the graphics card driver and restarting the computer, the screen is black, stuck on the startup interface, or an sdb3 error occurs. How to deal with the problem:

开机后出现如下图所示问题:
Figure 1 An error message appears when booting, showing sdb3 error
解决办法:

  1. Reboot, hold down the Shift key, and select Ubuntu Advanced Options.
    Figure 2 Entering Ubuntu advanced options
  2. Select the third option to enter recovery mode.
    Figure 3 Entering recovery mode
  3. Select root in the list that appears and hit Enter to enter root mode. After entering this mode, the root password input field will appear at the bottom of the screen. Enter the Ubuntu user password here and hit Enter again to obtain root permissions.
    Figure 4 Entering root mode
  4. After entering root mode, the command line input will appear below, enter here as shown in Figure 5: sudo apt autoremove --purge nvidia-\*.
    Figure 5 Nvidia graphics card driver removal
  5. After the graphics card driver is removed, enter them in sequence on the command line cd /etc/X11 ls, and a list will appear as shown in Figure 6.
    Figure 6 Querying system files in etc/X11
  6. Continue to enter in sequence on the command line mkdir ~/xorg.bak mv xorg* ~/xorg.bakto operate the xorg file.
    Figure 7 Make changes to the graphical interface file xorg
  7. Enter to rebootrestart the system. The black screen error problem has been solved and you can successfully enter the Ubuntu system graphical interface.

Guess you like

Origin blog.csdn.net/qq_42114833/article/details/124422209