I was able to build it after manually making the changes shown in the below forum post.
http://www.nvnews.net/vbulletin/showpost.php?s=09accab934da34868e512d84facb6c92&p=2033988&postcount=3 -- [Karmic] nvidia DKMS building and installation for kernel 2.6.31-1-generic fails with exit status 10 https://bugs.launchpad.net/bugs/394262 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs