Skip to content

Instantly share code, notes, and snippets.

@il-katta
Created November 18, 2025 18:51
Show Gist options
  • Select an option

  • Save il-katta/feb8aacad318bc1d4c3524b07ea35b86 to your computer and use it in GitHub Desktop.

Select an option

Save il-katta/feb8aacad318bc1d4c3524b07ea35b86 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Fix: DKMS fails to compile nvidia-current/550.163.01 module for kernel 6.17.2-1-pve
# Cause: NVIDIA 550 drivers from Debian repos are incompatible with Proxmox kernel > 6.14
# Solution: Pin kernel to 6.14 and exclude newer kernels from DKMS builds
# Credit: Andrea Cattaneo
# Pin Proxmox kernel to 6.14
proxmox-boot-tool kernel pin 6.14.11-4-pve
# Exclude kernels > 6.14 from NVIDIA DKMS builds
echo 'BUILD_EXCLUSIVE_KERNEL="^[2-5]\.|^6\.([0-9]|1[0-4])\."' >> /usr/src/nvidia-current-550.163.01/dkms.conf
# Fix broken packages
apt-get -f install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment