I have this problem because the graphics card driver is not installed properly. I tried various tutorials on the Internet to no avail. For example, ctrl+alt+F1 enters text mode and then deletes the driver. I am stuck there, and typing nothing is useless . So when this problem occurred on my side, I directly reinstalled the system, and then reinstalled the graphics card driver.
How to install NVIDIA graphics driver
I tried several methods on the Internet
https://blog.csdn.net/u014682691/article/details/80605201
For example, methods 1 and 3 here, the results still report the error in the title after installation; finally follow the following Method (similar to method 2 in the above link, but different), solves this problem:
-
Open the terminal, first delete the old driver *,
input the command
sudo apt-get purge nvidia*
-
Disable the built-in nouveau nvidia driver
Pass the commandsudo vim /etc/modprobe.d/blacklist.conf
and add the following content:
blacklist nouveau
options nouveau modeset=0
and then update itsudo update-initramfs -u
-
The system needs to be restarted after modification . After restarting, confirm whether Nouveau has been disabled, use the command:
lsmod | grep nouveau
no output is disabled; -
Command line input
init 3
Enter text mode -
Enter the driver directory folder:
sudo chmod a+x NVIDIA.run
Execute the installation authority,
install the driver.sudo ./NVIDIA.run -no-opengl-files
At this time only the driver file is installed, and the opengl file is not installed. If xorg.conf appears during the installation process, do not install it, and select NO. -
Finally, test whether the installation is successful.
Enter the command line.nvidia-smi
If the following picture appears, the installation is successful, and then restart the system.