Ubuntu 20.04 does not start when trying to install nvidia driver

Introduction

I put Ubuntu 20.04 in a slightly old notebook PC and reused it, but when I changed the settings several times, the GUI disappeared (I couldn't reach the login screen), so I had a lot of troubles, so I made a memo.

environment

Vaio VPCZ1 (Geforce GT 330M, Core series 1st generation fossil PC) Ubuntu 20.04.1 LTS

phenomenon

I tried to install the nvidia driver from the GUI like this (Recently, they found the necessary driver without permission and can install it with GUI ...) Screenshot from 2021-01-09 15-05-52.png

Installation fails with the following error Screenshot from 2021-01-09 15-07-07.png

The next time I restart, the login screen does not appear Underscore (caret) flashes on a black screen

Cause

The nVidia 340 driver (latest 340.108) does not support running on Linux kernel 5.4 and above [^ patch]. Due to this effect, it seems that the GUI cannot be displayed if it is forcibly installed. Support timeframes for Unix legacy GPU releases

[^ patch]: As you can see in here, it seems that you are developing a patch for volunteers to use, but as of January 2021 linux kernel 5.8 is not working?

Coping

Press Esc at startup to start in recovery mode Select "root" from the menu and enter the following to remove the nvidia driver.

$ sudo apt-get purge nvidia*
$ sudo service lightdm stop

Right now (January 2021) it doesn't seem to work with Linux kernel 5.8, so either give up installing the driver or consider using an older version of the kernel.

Summary

Especially when installing the nvidia driver on an old PC Make sure that the driver corresponds to the version of the Linux kernel used.

reference

What to do if Ubuntu GUI doesn't boot due to Nvidia driver

The installation of the NVIDIA display driver 340 fails in Kubuntu 20.10 It was easy to understand here.

Recommended Posts

Ubuntu 20.04 does not start when trying to install nvidia driver
When Anaconda Navigator (Mac) does not start
Error when trying to install psycopg2 in Python
Check when the Docker container does not connect to the Internet
Freetype2 support not available on PIL when trying to blockdiag on CentOS6.5
I get an error when trying to install maec 4.0.1.0 with pip
Tkinter canvas (window) does not start when running Python 3.7.4 with Atom
What to do when Ubuntu crashes
[Centos8] logrotate does not start properly
Steps to install Ubuntu in VirtualBox
How to install MBDyn (Linux Ubuntu)
UnicodeEncodeError when trying to run radon
How to install Go on Ubuntu
I got an error when trying to install Xgboost and its solution
How to fix a bug that jupyter notebook does not start automatically
What to do if pyenv install does not proceed with an error
Notes on what to do when matplotlib scatter () / scatter3d () does not work
When cv2.VideCapture (aviname) does not read well
Steps to install Python environment on Ubuntu
Workaround if you get an error when trying to install PySide with pip
Solution to the problem that build does not end when installing OpenCV (PEP517)
[Ubuntu 18.04 LTS] What to do when the screen resolution cannot be selected [NVIDIA]
What to do when the graph does not appear in jupyter (ipython) notebook
[EC2] What to do when selenium is stuck and processing does not proceed