Skip to content

Instantly share code, notes, and snippets.

@h3ct0r
Created June 4, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h3ct0r/1f74f1654c96e1299b26320f1d0162f7 to your computer and use it in GitHub Desktop.
Save h3ct0r/1f74f1654c96e1299b26320f1d0162f7 to your computer and use it in GitHub Desktop.
Mark the kernel as hold so its never updated. Useful for cases where a kernel upgrade breaks your cuda/nvidia/etc environment.
echo linux-image-generic hold | sudo dpkg --set-selections
dpkg -l linux-image-generic
echo linux-headers-generic hold | sudo dpkg --set-selections
dpkg -l linux-headers-generic
sudo apt update
apt-mark showhold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment