DEV Community

Brandon Rozek
Brandon Rozek

Posted on • Originally published at brandonrozek.com on

Rebuild Kernel Modules with Akmods

Akmods is the Fedora/Red Hat way of managing kernel modules. In Ubuntu, this is dkms. If you’re like me and force reboot shortly after performing an update, then you might have not given akmods enough time to compile any extra kernel modules (for example: Nvidia). This meant that I had to boot into an older kernel to try to fix the problem….

Once in the older kernel, you can check the kernel versions by:

ls /usr/src/kernels/

Enter fullscreen mode Exit fullscreen mode

Then select the kernel which you failed to build and run:

sudo akmods --kernels 5.15.18-200.fc35.x86_64

Enter fullscreen mode Exit fullscreen mode

to trigger the rebuild.

Though the better solution is to avoid this problem to begin with. If you reboot not as root, then systemd will check to see if any process is inhibiting the poweroff. If that’s the case, wait patiently and don’t type sudo reboot.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay