You are not logged in.

#1 2023-10-13 23:23:59

MeanTeacher
Member
Registered: 2023-09-24
Posts: 13

Can't install nvidia-dkms

I am using hyprland. However,after a full system update,I can no longer start it. Therefore,I try to reinstall nvidia-dkms and linux-headers and I failed and got several errors.
Here is the error
This is the error when I reinstall nvidia-dkms

Packages (1) nvidia-dkms-535.113.01-2

Total Installed Size:  70.01 MiB
Net Upgrade Size:       0.00 MiB

checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/535.113.01 -k 6.5.7-arch1-1
:: Processing package changes...
reinstalling nvidia-dkms...
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod nvidia/535.113.01 -k 6.5.7-arch1-1
==> depmod 6.5.7-arch1-1
==> ERROR: Missing 6.4.12-arch1-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.2-arch1-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.5-arch1-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.4-arch2-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.3-arch1-1 kernel headers for module nvidia/535.113.01.

This is output of dkms-status

nvidia/535.113.01, 6.5.7-arch1-1, x86_64: installed

And this is the output of pacman -Qikk linux-headers

Name            : linux-headers
Version         : 6.5.7.arch1-1
Description     : Headers and scripts for building modules for the Linux kernel
Architecture    : x86_64
URL             : https://github.com/archlinux/linux
Licenses        : GPL2
Groups          : None
Provides        : None
Depends On      : pahole
Optional Deps   : None
Required By     : None
Optional For    : dkms
Conflicts With  : None
Replaces        : None
Installed Size  : 123.57 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Wed 11 Oct 2023 05:10:21 AM CST
Install Date    : Sat 14 Oct 2023 07:00:48 AM CST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

linux-headers: 19576 total files, 0 altered files

Offline

#2 2023-10-14 06:21:40

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: Can't install nvidia-dkms

There was no need to re-install the package

seth, in the thread you hi-jacked wrote:
==> ERROR: Missing 6.4.12-arch1-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.2-arch1-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.5-arch1-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.4-arch2-1 kernel headers for module nvidia/535.113.01.
==> ERROR: Missing 6.5.3-arch1-1 kernel headers for module nvidia/535.113.01.

You seem to have a bunch old old kernels flying around?

Which one are you actually booting?

uname -a
cat /proc/cmdline

And since you've now an nvidia module for 6.5.7-arch1-1, is this acutally still an issue?

Offline

Board footer

Powered by FluxBB