I manage 300+ machines that run openafs that has a dkms built kernel module like the nvidia module that needs to be built. I also manage dozens of nvidia gpu servers where users have sudo access and can install anything they want. Here is a snippet of what I found. Note this is for 16.04 systems but 14.04 systems running the 4.4.0-116 kernel will have similar problems: Short story, if your machine is not using the Ubuntu supplied gcc you will have issues with afs and nvidia built kernel modules or any dkms built kernel modules. Longer story below. NOTE! this problem affects at least, openafs, nvidia, virtual box or any dkms built module. I am going to forward this info to