PPA installed driver 396.24 is causing CUDA 9.2 installation error
Solution 1:
I ran into the same problem, and fixed it by doing this:
-
Fix the broken package
sudo dpkg -i --force-overwrite /var/cuda-repo-9-2-local/./nvidia-396_396.26-0ubuntu1_amd64.deb
-
Reinstall the whole thing while passing the
--force-overwrite
option to the underlying Dpkg when running the install command (based on this answer)sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda
Solution 2:
There was a prerelease build of 396.26 on an ubuntu launchpad.net ppa, and I was able to successfully build and run CUDA 9.2 from that. The package is no longer on that ppa, which belonged to an individual. Hopefully it will get pushed forward.
Solution 3:
The Alexabdre Godardn's answer doesn't work for me.
I fix this issue only with this:
sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken