4

enter image description here

Background

While using Ubuntu 22.04.3, I switched from the proprietary nvidia driver to nouveau in an attempt to get my second monitor working again. Upon reboot, the display was not detected.

So I reinstalled Ubuntu using a USB installer. However, now I am stuck at the screen above on a fresh install. The colored pixels appear after a few seconds.

Graphics Card

$ ubuntu-drivers devices

vendor : NVIDIA Corporation model : GF119 [NVS 315] driver : nvidia-driver-390 - distro non-free recommended driver : xserver-xorg-video-nouveau - distro free builtin


Driver Installation

Via apt and ubuntu-drivers

Boot into recovery mode by holding shift. Enable networking while plugged into ethernet so that new drivers can be installed. Enter root to tinker with drivers.

$ sudo apt-get purge nouveau*
$ sudo apt-get purge nvidia*
$ sudo apt-get purge libnvidia*

$ sudo apt-get update $ sudo ubuntu-drivers autoinstall

Errors were encountered while processing: nvidia-dkms-390 nvidia-driver-390 E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo apt-get install nvidia-dkms-390

see logs at /var/crash/nvidia-kernel-source-390.0.crash E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is a gist of that .crash file. I see a lot of type errors and warnings, so maybe the driver itself is bugged? https://gist.github.com/aiqc/96a906344d789ad5c8834ecf5b602b58

Via Settings UI

If I try to update the nvidia driver through the settings UI, I get similar errors.

enter image description here

Via Nvidia's .run files

Similar errors https://www.nvidia.com/download/driverResults.aspx/101818/en-us/

Via ppa

I have tried installing the ppa drivers, and even downgraded my OS to match the specific version mention on the ppa page (22.04.2) https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update

$ sudo apt install nvidia-graphics-drivers-390 E: Unable to locate package nvidia-graphics-drivers-390

$ sudo apt install nvidia-driver-390 Errors were encountered while processing: nvidia-dkms-390 nvidia-driver-390 E: Sub-process /usr/bin/dpkg returned an error code (1)


Workaround

If I resume boot in recovery mode after deleting the drivers... it runs the OS with graphics:

llvmpipe (LLVM 15.0.7, 256 bits)

2 Answers2

5

To fix this issue, you need to downgrade your kernel version from 6.5 to 6.2.0-26-generic. Once done, repeat the driver installation steps, and you should be able to install the nvidia-driver-390.

fallback kernel version to 6.2.0-26-generic:

fallback kernel version to 6.2.0-26-generic

karel
  • 122,292
  • 133
  • 301
  • 332
1

You can alternatively try this patched version of the 390 drivers from an experimental PPA supporting up to kernel 6.8:

https://launchpad.net/%7Edtl131/+archive/ubuntu/nvidiaexp