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

Docker's flexible implementation of building a PHP environment

Use Docker to build a flexible online PHP environ...

Some notes on mysql self-join deduplication

Let me briefly explain the functional scenario: T...

MySQL transaction autocommit automatic commit operation

The default operating mode of MySQL is autocommit...

How to create a Pod in Kubernetes

Table of contents How to create a Pod? kubectl to...

HTML table tag tutorial (3): width and height attributes WIDTH, HEIGHT

By default, the width and height of the table are...

JS operation object array to achieve add, delete, modify and query example code

1. Introduction Recently, I helped a friend to ma...

IE8 provides a good experience: Activities

Today I had a sneak peek at IE8 beta 1 (hereafter...

How to enable remote access permissions in MYSQL

1. Log in to MySQL database mysql -u root -p View...

MySQL database table partitioning considerations [recommended]

Table partitioning is different from database par...

How to implement Ajax concurrent request control based on JS

Table of contents Preface Ajax serial and paralle...

How to install MySQL database on Debian 9 system

Preface Seeing the title, everyone should be thin...

Several ways to manually implement HMR in webpack

Table of contents 1. Introduction 2. GitHub 3. Ba...

Solution to CSS flex-basis text overflow problem

The insignificant flex-basis has caused a lot of ...

CentOS 6.4 MySQL 5.7.18 installation and configuration method graphic tutorial

The specific steps of installing mysql5.7.18 unde...