I am not able to install anything in ubuntu
Solution 1:
Okay, to back out of this, run the following commands:
sudo rm /etc/apt/sources.list.d/cuda.list
sudo apt-get clean
sudo apt-get update
sudo apt install -f
This will uninstall the nvidia repo you downloaded and installed and hopefully the system will fix itself now. If not, we can fix it manually fairly easily by following the error messages.
You may need to do some more purging and we may have to use dpkg
to do that manually so please post any more errors. Thanks!
Solution 2:
In my case, removing packages causing collision solved the problem.
dpkg -P nvidia-cuda-toolkit nvidia-cuda-dev
apt --fix-broken install