Categories
Linux Mastering Development Ubuntu

Unable to Unistall cuda 11 repository from ubuntu 18.04

a few days ago i tried to install cuda toolkit and by mistake i installed the 11 version instead of 10 version. My nvidia drivers was the 440 and the cuda 11 version required 450. After the wrong installation i was not able to remove/uninstall the cuda repository and generally when i try to purge my nvidia drivers and the cuda repo always displays these errors.

**The following packages have unmet dependencies:
 cuda-drivers-450 : Depends: libnvidia-compute-450 (>= 450.36.06) but it is not installable
                    Depends: nvidia-compute-utils-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-dkms-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-driver-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-kernel-common-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-kernel-source-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-utils-450 (>= 450.36.06) but it is not going to be installed
                    Depends: nvidia-modprobe (>= 450.36.06)
                    Depends: nvidia-settings (>= 450.36.06) but it is not going to be installed
 libnvidia-decode-450 : Depends: libnvidia-compute-450 (= 450.36.06-0ubuntu1) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

**

I tried autoremove, clean, remove keys but nothing, anything i do it displays these errors.How can i solve this? Thanks for your help!

Leave a Reply

Your email address will not be published. Required fields are marked *