On Mon, Jul 6, 2015 at 8:24 AM, Christopher Ross <fdra6390@tebibyte.org> wrote:

Picking up the akmod failure I find this:

root@snoopy 14:11:52 ~ # akmods --force
Checking kmods exist for 4.0.6-300.fc22.x86_64             [  OK  ]
Files needed for building modules against kernel
4.0.6-300.fc22.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/4.0.6-300.fc22.x86_64/
/usr/lib/modules/4.0.6-300.fc22.x86_64/build/Is the correct[FAILED]devel package installed?
root@snoopy 14:12:53 ~ #
root@snoopy 14:20:05 ~ # la /usr/src/kernels/4.0.6-300.fc22.x86_64/
ls: cannot access /usr/src/kernels/4.0.6-300.fc22.x86_64/: No such file or directory
root@snoopy 14:20:17 ~ # la /usr/src/kernels/
total 4.0K
drwxr-xr-x. 22 root root 4.0K Jul  6 14:11 4.0.6-300.fc22.x86_64+debug




So it cannot build the modules because there is no
/usr/src/kernels/4.0.6-300.fc22.x86_64/

But there is a 4.0.6-300.fc22.x86_64+debug

Does this mean I installed the wrong kernel and/or headers? If so, it wasn't on purpose. I've never told dnf which kernels to install, it's always chosen that by itself.

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. 

To make matters worse (I ran into this on a F21 laptop) if the debug kernel is installed and loaded you can't uninstall it. You have to boot to a previous kernel first.

Try this:
$ rpm -qa | grep kernel

If you see a bunch of debug packages then that's what's going on. You need to reboot to a previous kernel, uninstall them, reboot to the new kernel and install "kernel-devel". 

Since I've gotten the question multiple times I'll reiterate here, I can't just add "Requires: kernel-devel" to the akmods package because it doesn't cover kernel variants such as a PAE kernel, etc.

The problem is both kernel-devel and kernel-debug-devel provide the same capability and dnf chooses the debug package whereas yum chose the non-debug package. I'm considering add a conflict with the debug package to akmods but that means if you really WANT to install it and you have the akmods package installed you can't have both at the same time.

Thanks,
Richard