Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save woiza/bf221c5265d099d34da764ebd330e583 to your computer and use it in GitHub Desktop.

Select an option

Save woiza/bf221c5265d099d34da764ebd330e583 to your computer and use it in GitHub Desktop.
One line to rebuild all DKMS modules on Ubuntu
Here goes.
ls /usr/src/linux-headers-* -d | sed -e 's/.*linux-headers-//' | \
sort -V | tac | sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start
Run as root.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment