On 06/07/15 14:31, Richard Shaw wrote:
I think you've been bitten by a recent bug that's cropped up
with dnf.
Yum chose the shorted name by default that met a particular requirement
so kernel-devel was chosen over kernel-debug-devel, but dnf doesn't do
this. Dnf isn't "wrong" but it does create a serious inconvenience.
In my case the machine is running the non-debug kernel but installing
xorg-x11-drv-nvidia brought in the debug headers. I installed the
non-debug headers too and now the module builds.
root@snoopy 14:51:53 ~ # dnf install kernel-devel
Last metadata expiration check performed 1:23:10 ago on Mon Jul 6
13:28:58 2015.
Dependencies resolved.
===================================================================================================================================
Package Arch Version
Repository Size
===================================================================================================================================
Installing:
kernel-devel x86_64
4.0.6-300.fc22 updates 9.4 M
Transaction Summary
===================================================================================================================================
Install 1 Package
Total download size: 9.4 M
Installed size: 35 M
Is this ok [y/N]: y
Downloading Packages:
kernel-devel-4.0.6-300.fc22.x86_64.rpm
996 kB/s | 9.4 MB 00:09
-----------------------------------------------------------------------------------------------------------------------------------
Total
864 kB/s | 9.4 MB 00:11
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : kernel-devel-4.0.6-300.fc22.x86_64
1/1
Verifying : kernel-devel-4.0.6-300.fc22.x86_64
1/1
Installed:
kernel-devel.x86_64 4.0.6-300.fc22
Complete!
root@snoopy 14:52:34 ~ # !la
la /usr/src/kernels/
total 8.0K
drwxr-xr-x. 22 root root 4.0K Jul 6 14:11 4.0.6-300.fc22.x86_64+debug
drwxr-xr-x. 22 root root 4.0K Jul 6 14:52 4.0.6-300.fc22.x86_64
root@snoopy 14:52:39 ~ # !ak
akmods --force
Checking kmods exist for 4.0.6-300.fc22.x86_64 [ OK ]
Building and installing nvidia-kmod [ OK ]
Sadly, I can't check right now whether X can now happily use the nVidia
drivers.
Thanks,
Chris R.