<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 6, 2015 at 8:24 AM, Christopher Ross <span dir="ltr"><<a href="mailto:fdra6390@tebibyte.org" target="_blank">fdra6390@tebibyte.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Picking up the akmod failure I find this:<span class=""><br>
<br>
root@snoopy 14:11:52 ~ # akmods --force<br>
Checking kmods exist for 4.0.6-300.fc22.x86_64 [ OK ]<br>
Files needed for building modules against kernel<br>
4.0.6-300.fc22.x86_64 could not be found as the following<br>
directories are missing:<br>
/usr/src/kernels/4.0.6-300.fc22.x86_64/<br>
/usr/lib/modules/4.0.6-300.fc22.x86_64/build/Is the correct[FAILED]devel package installed?<br></span>
root@snoopy 14:12:53 ~ #<br>
root@snoopy 14:20:05 ~ # la /usr/src/kernels/4.0.6-300.fc22.x86_64/<br>
ls: cannot access /usr/src/kernels/4.0.6-300.fc22.x86_64/: No such file or directory<br>
root@snoopy 14:20:17 ~ # la /usr/src/kernels/<br>
total 4.0K<br>
drwxr-xr-x. 22 root root 4.0K Jul 6 14:11 4.0.6-300.fc22.x86_64+debug<br>
<br>
<br>
<br>
<br>
So it cannot build the modules because there is no<br>
/usr/src/kernels/4.0.6-300.fc22.x86_64/<br>
<br>
But there is a 4.0.6-300.fc22.x86_64+debug<br>
<br>
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.</blockquote><div><br></div><div>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. </div><div><br></div><div>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.</div><div><br></div><div>Try this:</div><div>$ rpm -qa | grep kernel</div><div><br></div><div>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". <br></div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Richard</div></div></div></div>