# execute following command as root user sudo -i dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub apt update apt install cuda chmod a+x /usr/local/cuda-9.1/bin/cuda-install-samples-9.1.sh # install cuda sample dependencies apt install libgl-dev libglu-dev libx11-dev libegl1-mesa-dev libgles2-mesa-dev libmpich-dev # back to normal user exit # install cuda examples cuda-install-samples-9.1.sh ./ # force input macro value as linux mint is not officially supported GLPATH="/usr/lib/x86_64-linux-gnu" GLLINK="-L/usr/lib/x86_64-linux-gnu" DFLT_PATH="/usr/lib" EGLLIB="/usr/lib/x86_64-linux-gnu" GLESLIB="/usr/lib/x86_64-linux-gnu" make -j6