How to solve the problem of Ubuntu 18.04 looping login/stuck on the boot interface/unable to enter the graphical interface

How to solve the problem of Ubuntu 18.04 looping login/stuck on the boot interface/unable to enter the graphical interface

Cause: NVIDIA graphics card driver is damaged

Solution:

  1. Reboot into command line mode
  2. Uninstall the original NVIDIA driver
  3. Reinstall the NVIDIA driver and restart to solve the problem

Step 1: Boot the Ubuntu system into command line mode

After the system starts, press the "ESC" key in the BIOS boot interface to enter the selection menu, select the first "*Ubuntu", and press the "e" key to enter the editing mode.

In the edit item that appears, you can see the parameters that GRUB parses for the kernel. We give the boot runlevel at the end of the line, 3 (multi-user mode, text only).

Press CTRL+X or F10 to boot the system, and it will enter command line mode after startup. This method is only temporary and not permanent. After the next system restart, if no changes are made, it will still enter the graphical interface mode.

Step 2: Uninstall NVIDIA driver

Login user in command line interface

Uninstall any old drivers

sudo apt-get remove nvidia-*
sudo apt-get autoremove

Uninstall the driver via the .run file

sudo nvidia-uninstall

Restart the system and enter the graphical interface normally, but since there is no graphics card driver at this time, the system resolution is low.

sudo reboot

Step 3: Reinstall NVIDIA graphics driver

Manual installation is recommended. NVIDIA driver download address:

https://www.nvidia.cn/Download/index.aspx?lang=cn/

Stop the graphical interface and enter command line mode

sudo telinit 3

User login

cd to the path where the driver installation program is located

Run the .run file using bash or the ./ command

bash NVIDIA******.run

Restart the system and the problem is solved.

sudo reboot

This is the end of this article on how to solve the problem of Ubuntu 18.04 looping login/stuck on the boot interface/unable to enter the graphical interface. For more related content about Ubuntu 18.04 unable to enter, please search 123WORDPRESS.COM's previous articles or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Solution to Ubuntu 18.04 not being able to connect to the network in VMware virtual machine
  • How to install MySQL on Ubuntu 18.04 (linux)
  • A simple tutorial on installing Sogou Pinyin in Ubuntu 18.04
  • How to reset the password if the Ubuntu 18.04 server password is forgotten or tampered with
  • Detailed graphic tutorial on installing Ubuntu 18.04 system on Windows 10 system
  • Install MySQL 5.7 on Ubuntu 18.04
  • Ubuntu 18.04 obtains root permissions and logs in as root user
  • Ubuntu 18.04 Tomcat9 installation graphic tutorial
  • Example of how to change the domestic source in Ubuntu 18.04

<<:  js Promise concurrent control method

>>:  Vue implements weather forecast function

Recommend

How to connect to docker server using ssh

When I first came into contact with docker, I was...

Mybatis paging plug-in pageHelper detailed explanation and simple example

Mybatis paging plug-in pageHelper detailed explan...

How to write HTML head in mobile device web development

Copy code The code is as follows: <head> &l...

Solution to the problem of z-index not taking effect in CSS3

I recently wrote a combination of CSS3 and js, an...

JS thoroughly understands GMT and UTC time zones

Table of contents Preface 1. GMT What is GMT Hist...

What you need to know about responsive design

Responsive design is to perform corresponding ope...

JavaScript exquisite snake implementation process

Table of contents 1. Create HTML structure 2. Cre...

A detailed introduction to seata docker high availability deployment

Version 1.4.2 Official Documentation dockerhub st...

How to create a view on multiple tables in MySQL

In MySQL, create a view on two or more base table...

Creating a file system for ARM development board under Linux

1. Please download the Busybox source code online...

Vue implements multi-tab component

To see the effect directly, a right-click menu ha...