You are not logged in.

#1 2021-04-19 11:13:21

potuz
Member
Registered: 2009-10-23
Posts: 129

[SOLVED] accidentally hit CTRL-C while upgrading nvidia-dkms driver

Hi, I accidentally hit CTRL-C while doing a pacman -Syu. It was at the step where it was updating the nvidia driver with

dkms install --no-depmod -m nvidia -v 465.24.02 -k 5.11.15-arch1-2

The output is as

==> dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.11.15-arch1-2
==> dkms install --no-depmod -m nvidia -v 465.24.02 -k 5.11.15-arch1-2
^C
Interrupt signal received
error: command terminated by signal 2: Interrupt
(13/32) Updating linux initcpios...

I tried buiding the dkms tree myself but I am stupid enough that since the system was being stressed I interrupted that as well:

$ sudo dkms install --no-depmod -m nvidia -v 465.24.02 -k 5.11.15-arch1-2

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j12 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=5.11.15-arch1-2 IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules.........
^C

The problem is that now I am not sure if the nvidia driver will work in the new kernel if I reboot, and I can't simply reinstall it cause it fails the dkms step saying that it's already on the tree. If I try to remove it I can't with

$ sudo dkms remove nvidia/465.24.02 -k 5.11.15-arch1-2
Error! There is no instance of nvidia 465.24.02
for kernel 5.11.15-arch1-2 (x86_64) located in the DKMS tree.

I tried all versions of that with 5.11.15 with and without the arch...  I'd appreciate any help into how to make sure that the system will boot correctly if I reboot? how can I check if the modules were built or how can I reinstall them? I am not sure what is the list of files that I should see in /usr/lib/modules.

EDIT: Can I just simply remove the directory /var/lib/dkms/nvidia/465.24.02 and try again reinstalling the package nvidia-dkms?

Last edited by potuz (2021-04-19 12:31:21)

Offline

#2 2021-04-19 11:25:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,005

Re: [SOLVED] accidentally hit CTRL-C while upgrading nvidia-dkms driver

dkms install --force …

?
W/o having completed the module build, you'll not get KMS thus no GUI, but a console boot should™ still work.
Just rebuild the module and get a cup of coffee in the meantime…

Offline

#3 2021-04-19 11:47:16

potuz
Member
Registered: 2009-10-23
Posts: 129

Re: [SOLVED] accidentally hit CTRL-C while upgrading nvidia-dkms driver

seth wrote:
dkms install --force …

?
W/o having completed the module build, you'll not get KMS thus no GUI, but a console boot should™ still work.
Just rebuild the module and get a cup of coffee in the meantime…

No this still fails with the same error:

$ sudo dkms install --force --no-depmod -m nvidia -v 465.24.02 -k 5.11.15-arch1-2 
Error! This module/version has already been built on: 5.11.15-arch1-2
Directory: /var/lib/dkms/nvidia/465.24.02/5.11.15-arch1-2/x86_64
already exists.  Use the dkms remove function before trying to build again.

Offline

#4 2021-04-19 12:12:46

potuz
Member
Registered: 2009-10-23
Posts: 129

Re: [SOLVED] accidentally hit CTRL-C while upgrading nvidia-dkms driver

update, I removed the directory and reinstalled the dkms package, the dkms install and depmod stages worked without error. Will check if this reboots then

Offline

#5 2021-04-19 12:30:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,005

Re: [SOLVED] accidentally hit CTRL-C while upgrading nvidia-dkms driver

Yup, was about to say that.
Just checked the manpage and --force only applies to the ldtarball command :\

Offline

Board footer

Powered by FluxBB