git submodule deinit -f -- your/submodule; rm -rf .git/modules/your/submodule; git rm -f your/submodule
1- Remove all cuda packages
2- Download x86_64 Ubuntu 16.04 deb(local) https://developer.nvidia.com/cuda-80-ga2-download-archive
sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb;
sudo apt update;
sudo apt install cuda
sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev
sudo apt purge -y aisleriot apport baobab cups cups-common eog evince evince-common file-roller gedit gedit-common gnome-calendar gnome-calculator gnome-font-viewer gnome-keyring gnome-mahjongg gnome-mines gnome-sudoku libreoffice-.* rhythmbox.* shotwell shotwell-common simple-scan thunderbird.* totem totem-common totem-plugins transmission-common transmission-gtk ubuntu-wallpapers.* ubuntu-mono