Even I encountered the same issue. I resolved it using the following steps:
You will see this line in your error…
trying to overwrite '/usr/lib/x86_64-linux-gnu/stubs/libcublas.so', which is also in package nvidia-cuda-dev 7.5.18-0ubuntu1
This means that the /usr/lib/x86_64-linux-gnu/stubs/libcublas.so is already present and cannot be overwritten by dpkg.
I tried these commands to fix the issue. (WARNING: The older libcublas.so will be replaced by new libcublas.so… It may affect your environment…)
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb
sudo apt-get -f install
Preferably remove unwanted files after this by running
sudo apt autoremove