Ubuntu24.04 install Driver ,verersion: 560.35.03.Unable to enter the desktop, a black screen appears

After installing the driver using apt install nvidia-driver-560, a black screen appears and I cannot log in to the desktop normally. Here are some messages:


nvidia-bug-report.log.gz (497.8 KB)

You’re running a VM but you don’t have the drm driver for the virtual VGA installed. The nvidia driver comes with a drm driver so supercedes the virtual vga but doesn’t have any outputs.
The correct driver for the virtual vga (bochs-drm) should be in the package linux-modules-extra-$(uname -r)
Alternatively, for a workaround, setting “nomodeset” should work as well, reboot required. Also, creating an xorg.conf with a device section containing the BusID of the virtual vga should work.

Thanks, I’ll try it.

Thank you, the black screen problem was solved by apt install linux-modules-extra-$(uname -r) and setting “nomodeset”. Thanks again