pop-os / nvidia-graphics-drivers-470

Pop!_OS Legacy NVIDIA Graphics Drivers (470)
7 stars 2 forks source link

5.17.5 doesn't support Nvidia 470 driver #5

Closed mtimofiiv closed 2 years ago

mtimofiiv commented 2 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

My computer is a brand new System76 Gazelle laptop with a 3840.

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

2 related packages, driver version 470 and 510:

➜  ~ apt policy nvidia-driver-470
nvidia-driver-470:
  Installed: 470.86-1pop0~1650323395~22.04~5bc8ef6
  Candidate: 470.86-1pop0~1650323395~22.04~5bc8ef6
  Version table:
     470.103.01-0ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages
 *** 470.86-1pop0~1650323395~22.04~5bc8ef6 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
➜  ~ apt policy nvidia-driver-510
nvidia-driver-510:
  Installed: (none)
  Candidate: 510.68.02-1pop0~1651161204~22.04~46a1f79
  Version table:
     510.68.02-1pop0~1651161204~22.04~46a1f79 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
     510.60.02-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages

Issue/Bug Description:

This morning, I updated my "Operating System Updates" in the Pop!_Shop. After restarting, I also decided to update my Nvidia drivers from the 470 version to 510. I Installed the 510 package from the shop app and restarted my computer.

Then, I noticed I could not boot into any mode besides "Integrated graphics". Attempting to do so causes the initial login screen for my user to not show up, and basically after the boot disk encryption password input, the screen goes black.

So I restarted in recovery mode's previous conf, and was able to get it running.

I then attempted to install 470 again to fix my situation. But it is now not possible.

The Pop!_Store app simply crashes as it tries to install it. And running sudo apt-get install nvidia-driver-470 from the command line gives the following result:

nvidia-dkms-470 is already the newest version (470.86-1pop0~1650323395~22.04~5bc8ef6).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up nvidia-dkms-470 (470.86-1pop0~1650323395~22.04~5bc8ef6) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-470.86 DKMS files...
Deleting module nvidia-470.86 completely from the DKMS tree.
Loading new nvidia-470.86 DKMS files...
Building for 5.17.5-76051705-generic
Building for architecture x86_64
Building initial module for 5.17.5-76051705-generic
ERROR (dkms apport): kernel package linux-headers-5.17.5-76051705-generic is not supported
Error! Bad return status for module build on kernel: 5.17.5-76051705-generic (x86_64)
Consult /var/lib/dkms/nvidia/470.86/build/make.log for more information.
dpkg: error processing package nvidia-dkms-470 (--configure):
 installed nvidia-dkms-470 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-470:
 nvidia-driver-470 depends on nvidia-dkms-470 (>= 470.86); however:
  Package nvidia-dkms-470 is not configured yet.

dpkg: error processing package nvidia-driver-470 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                    Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-5.17.5-76051705-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
kernelstub.Config    : INFO     Looking for configuration...
kernelstub           : INFO     System information:

    OS:..................Pop!_OS 22.04
    Root partition:....../dev/dm-1
    Root FS UUID:........9d9e79d7-c0b7-4e09-be53-5ae686949617
    ESP Path:............/boot/efi
    ESP Partition:......./dev/nvme0n1p1
    ESP Partition #:.....1
    NVRAM entry #:.......-1
    Boot Variable #:.....0000
    Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash
    Kernel Image Path:.../boot/vmlinuz-5.17.5-76051705-generic
    Initrd Image Path:.../boot/initrd.img-5.17.5-76051705-generic
    Force-overwrite:.....False

kernelstub.Installer : INFO     Copying Kernel into ESP
kernelstub.Installer : INFO     Copying initrd.img into ESP
kernelstub.Installer : INFO     Setting up loader.conf configuration
kernelstub.Installer : INFO     Making entry file for Pop!_OS
kernelstub.Installer : INFO     Backing up old kernel
kernelstub.Installer : INFO     Making entry file for Pop!_OS
Errors were encountered while processing:
 nvidia-dkms-470
 nvidia-driver-470
E: Sub-process /usr/bin/dpkg returned an error code (1)

Steps to reproduce (if you know):

Not sure

Expected behavior:

That the 510 drivers would install properly, and since they don't then I could re-install the 470 drivers again.

Other Notes:

Obviously, the driver is not properly installed. Running nvidia-smi gives the following output:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

First of all, can I undo this problem and get my video card to actually work with either of the two driver versions?

I did come across a similar issue here, but the workaround did not work, still cannot install either of the driver packages:

https://github.com/pop-os/nvidia-graphics-drivers/issues/140#issuecomment-1054084166

And similar issues for other people as well:

https://www.reddit.com/r/pop_os/comments/uisu2w/pop_shop_wont_install_nvidia_470_driver_linux/

bassemkaroui commented 2 years ago

Me too I did the update today, and it resulted in installing the new kernel 5.17.5. Even though the nvidia driver 470 is installed sudo modprobe nvidia doesn't work telling me that there are no modules in /lib/modules/5.17.5-76051705-generic and thus when running nvidia-smi I got an error and my second screen doesn't work.

ganakee commented 2 years ago

I ran into this as well but a little different. I can only have the 470 drivers installed. See https://github.com/pop-os/pop/issues/2367 (closed above). After the update, I cannot boot to desktop. See troubleshooting at https://github.com/pop-os/pop/issues/2367 . I noted that @BassemKaroui reported that the second minotor does not work. This also is part of my issue. But, the second monitor is not the main monitor so the boot fails. During boot, the one screen comes on but as the non-primary screen, it has no login so is blank and then the kernel panic apparently happens cascading to a terminal prompt showing the failed booting process.