NVM, found the answer here https://help.ubuntu.com/community/Kernel/DkmsDriverPackage
I opened the makefile with gedit and I used the replace tool to replace every use of "$(shell uname -r)" with "$(KVER)" and I added the line "KVER ?= $(shell uname -r)" up top after the the line "CHIPSET = 3562". Then I modified the make line of my dkms.conf file to "MAKE[0]="make KVER=$kernelver"" and this solved the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/917980 Title: dkms recompiling using current kernel headers instead of the new one being installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/917980/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs