<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">&lt;<a href="mailto:fdra6390@tebibyte.org" target="_blank">fdra6390@tebibyte.org</a>&gt;</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&#39;t on purpose. I&#39;ve never told dnf which kernels to install, it&#39;s always chosen that by itself.</blockquote><div><br></div><div>I think you&#39;ve been bitten by a recent bug that&#39;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&#39;t do this. Dnf isn&#39;t &quot;wrong&quot; 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&#39;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&#39;s what&#39;s going on. You need to reboot to a previous kernel, uninstall them, reboot to the new kernel and install &quot;kernel-devel&quot;. <br></div><div><br></div><div>Since I&#39;ve gotten the question multiple times I&#39;ll reiterate here, I can&#39;t just add &quot;Requires: kernel-devel&quot; to the akmods package because it doesn&#39;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&#39;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&#39;t have both at the same time.</div><div><br></div><div>Thanks,</div><div>Richard</div></div></div></div>