ubuntu 16.04 apt-get update error: File not found - /var/cuda-repo-8-0-rc/Packages

Solution 1:

I had a simalar issue with "cuda-repo-ubuntu1504-7-5-local_7.5-18_amd64.deb" on Ubuntu 16.04LTS after removing the package with: sudo dpkg -r cuda-repo-ubuntu1504-7-5-local

Solved it with the next command: sudo dpkg --purge cuda-repo-ubuntu1504-7-5-local