NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

Hello,
In attempts to download pytorch, I tried downgrading CUDA from 11.2 to 10.0 on Ubuntu 18.04.
This seems to have caused errors in the NVIDIA Driver.

Below are outputs from the following commands


dpkg -l | grep nvidia


nvidia-smi

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

nvcc -V

Command 'nvcc' not found, but can be installed with:

sudo apt install nvidia-cuda-toolkit

lspci | grep -i nvidia

01:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P600] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)

I cannot generate the nvidia-bug-report.sh as it outputs

Running nvidia-bug-report.sh...ls: cannot access '/proc/driver/nvidia/./gpus/': No such file or directory

When I checked /proc/driver/, it has no folders.

You installed the full package including drivers, which is too old for the kernel.

  • purge anything nvidia/cuda
  • add the ubuntu graphics ppa https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
  • install the driver from that (sudo apt install nvidia-driver-455)
  • download the cuda .deb
  • add the repo to your system
  • don’t install cuda
  • instead, run sudo apt install cuda-toolkit-10-0
  • set PATH variable if necessary
  • have nvidia-persistenced start on boot and make sure it is continuously running
1 Like

Thank you for the reponse

I’ve tried to follow your steps with:

sudo apt-get purge nvidia --> didn’t remove anything
sudo apt-get purge cuda --> removed cuda*
sudo add-apt-repository ppa:graphics-drivers.ppa
sudo apt-get update

They all ran fine without errors

However, when I tried to run:
sudo apt install nvidia-driver-455

It comes up with the following error:

Is there a way to fix this?

Thank you!

To remove the driver, try

sudo dpkg -P $(dpkg -l | grep nvidia-driver | awk '{print $2}')
sudo apt autoremove

afterwards, use
dpkg -l |grep nvidia
to check if packages are left and uninstall them manually.

1 Like

Hello,

I tried
sudo dpkg -P $(dpkg -l | grep nvidia-driver | awk ‘{print $2}’)
but it came up with
image

Also, when I try dpkg -l |grep nvidia, I get the same list as shown in my first post. (sorry, seems like I can only add one screenshot per post)

Is there a way to fix this? Also, how do I manually uninstall packages? Do I use sudo apt purge …?

Thank you!

Try
sudo apt remove cuda*
sudo apt remove nvidia*
sudo apt remove libnvidia*

1 Like

Hello,

sudo apt remove cuda* didn’t work and outputs the following

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
E: Couldn't find any package by glob 'cuda-repo-ubuntu1804_10.0.130-1_amd64.deb'
E: Couldn't find any package by regex 'cuda-repo-ubuntu1804_10.0.130-1_amd64.deb'
E: Unable to locate package cuda-repo-ubuntu1804_10.0.130-1_amd64.deb.1
E: Couldn't find any package by glob 'cuda-repo-ubuntu1804_10.0.130-1_amd64.deb.1'
E: Couldn't find any package by regex 'cuda-repo-ubuntu1804_10.0.130-1_amd64.deb.1'
E: Unable to locate package cuda-repo-ubuntu1804_10.0.130-1_amd64.deb.2
E: Couldn't find any package by glob 'cuda-repo-ubuntu1804_10.0.130-1_amd64.deb.2'
E: Couldn't find any package by regex 'cuda-repo-ubuntu1804_10.0.130-1_amd64.deb.2'
E: Unable to locate package cuda-repo-ubuntu1804-11-2-local_11.2.0-460.27.04-1_amd64.deb
E: Couldn't find any package by glob 'cuda-repo-ubuntu1804-11-2-local_11.2.0-460.27.04-1_amd64.deb'
E: Couldn't find any package by regex 'cuda-repo-ubuntu1804-11-2-local_11.2.0-460.27.04-1_amd64.deb'

sudo apt remove nvidia* didn’t work and outputted the following

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nvidia-bug-report.log.gz
E: Couldn't find any package by glob 'nvidia-bug-report.log.gz'
E: Couldn't find any package by regex 'nvidia-bug-report.log.gz'
E: Unable to locate package nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
E: Couldn't find any package by glob 'nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb'
E: Couldn't find any package by regex 'nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb'

sudo apt remove libnvidia* seems to have worked and outputted the following

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libnvidia-encode-418-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-418-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-418-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-460' for glob 'libnvidia*'
Note, selecting 'libnvidia-ml1' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-418-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-encode-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-extra' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-any' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1' for glob 'libnvidia*'
Note, selecting 'libnvidia-cfg1-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-extra-450-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-418-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-extra-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-common' for glob 'libnvidia*'
Note, selecting 'libnvidia-ifr1' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-390' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-410' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-415' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-418' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-430' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-435' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-common-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-compute-418-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-fbc1-418-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-extra-440' for glob 'libnvidia*'
Note, selecting 'libnvidia-extra-450' for glob 'libnvidia*'
Note, selecting 'libnvidia-extra-455' for glob 'libnvidia*'
Note, selecting 'libnvidia-gl-440-server' for glob 'libnvidia*'
Note, selecting 'libnvidia-decode-418-server' for glob 'libnvidia*'
Package 'libnvidia-cfg1-390' is not installed, so not removed
Package 'libnvidia-cfg1-430' is not installed, so not removed
Package 'libnvidia-common-390' is not installed, so not removed
Package 'libnvidia-common-430' is not installed, so not removed
Package 'libnvidia-compute-390' is not installed, so not removed
Package 'libnvidia-compute-430' is not installed, so not removed
Package 'libnvidia-decode-390' is not installed, so not removed
Package 'libnvidia-decode-430' is not installed, so not removed
Package 'libnvidia-encode-390' is not installed, so not removed
Package 'libnvidia-encode-430' is not installed, so not removed
Package 'libnvidia-fbc1-390' is not installed, so not removed
Package 'libnvidia-fbc1-430' is not installed, so not removed
Package 'libnvidia-gl-390' is not installed, so not removed
Package 'libnvidia-gl-430' is not installed, so not removed
Package 'libnvidia-ifr1-390' is not installed, so not removed
Package 'libnvidia-ifr1-430' is not installed, so not removed
Package 'libnvidia-cfg1-440' is not installed, so not removed
Package 'libnvidia-cfg1-450' is not installed, so not removed
Package 'libnvidia-common-440' is not installed, so not removed
Package 'libnvidia-common-450' is not installed, so not removed
Package 'libnvidia-compute-440' is not installed, so not removed
Package 'libnvidia-compute-450' is not installed, so not removed
Package 'libnvidia-decode-440' is not installed, so not removed
Package 'libnvidia-decode-450' is not installed, so not removed
Package 'libnvidia-encode-440' is not installed, so not removed
Package 'libnvidia-encode-450' is not installed, so not removed
Package 'libnvidia-extra-440' is not installed, so not removed
Package 'libnvidia-extra-450' is not installed, so not removed
Package 'libnvidia-fbc1-440' is not installed, so not removed
Package 'libnvidia-fbc1-450' is not installed, so not removed
Package 'libnvidia-gl-440' is not installed, so not removed
Package 'libnvidia-gl-450' is not installed, so not removed
Package 'libnvidia-ifr1-440' is not installed, so not removed
Package 'libnvidia-ifr1-450' is not installed, so not removed
Package 'libnvidia-cfg1-418-server' is not installed, so not removed
Package 'libnvidia-cfg1-440-server' is not installed, so not removed
Package 'libnvidia-cfg1-450-server' is not installed, so not removed
Package 'libnvidia-common-418-server' is not installed, so not removed
Package 'libnvidia-common-440-server' is not installed, so not removed
Package 'libnvidia-common-450-server' is not installed, so not removed
Package 'libnvidia-compute-418-server' is not installed, so not removed
Package 'libnvidia-compute-440-server' is not installed, so not removed
Package 'libnvidia-compute-450-server' is not installed, so not removed
Package 'libnvidia-decode-418-server' is not installed, so not removed
Package 'libnvidia-decode-440-server' is not installed, so not removed
Package 'libnvidia-decode-450-server' is not installed, so not removed
Package 'libnvidia-encode-418-server' is not installed, so not removed
Package 'libnvidia-encode-440-server' is not installed, so not removed
Package 'libnvidia-encode-450-server' is not installed, so not removed
Package 'libnvidia-extra-440-server' is not installed, so not removed
Package 'libnvidia-extra-450-server' is not installed, so not removed
Package 'libnvidia-fbc1-418-server' is not installed, so not removed
Package 'libnvidia-fbc1-440-server' is not installed, so not removed
Package 'libnvidia-fbc1-450-server' is not installed, so not removed
Package 'libnvidia-gl-418-server' is not installed, so not removed
Package 'libnvidia-gl-440-server' is not installed, so not removed
Package 'libnvidia-gl-450-server' is not installed, so not removed
Package 'libnvidia-ifr1-418-server' is not installed, so not removed
Package 'libnvidia-ifr1-440-server' is not installed, so not removed
Package 'libnvidia-ifr1-450-server' is not installed, so not removed
Package 'libnvidia-cfg1-415' is not installed, so not removed
Package 'libnvidia-cfg1-418' is not installed, so not removed
Package 'libnvidia-cfg1-435' is not installed, so not removed
Package 'libnvidia-cfg1-455' is not installed, so not removed
Package 'libnvidia-common-415' is not installed, so not removed
Package 'libnvidia-common-418' is not installed, so not removed
Package 'libnvidia-common-435' is not installed, so not removed
Package 'libnvidia-common-455' is not installed, so not removed
Package 'libnvidia-compute-415' is not installed, so not removed
Package 'libnvidia-compute-418' is not installed, so not removed
Package 'libnvidia-compute-435' is not installed, so not removed
Package 'libnvidia-compute-455' is not installed, so not removed
Package 'libnvidia-decode-415' is not installed, so not removed
Package 'libnvidia-decode-418' is not installed, so not removed
Package 'libnvidia-decode-435' is not installed, so not removed
Package 'libnvidia-decode-455' is not installed, so not removed
Package 'libnvidia-encode-415' is not installed, so not removed
Package 'libnvidia-encode-418' is not installed, so not removed
Package 'libnvidia-encode-435' is not installed, so not removed
Package 'libnvidia-encode-455' is not installed, so not removed
Package 'libnvidia-extra-455' is not installed, so not removed
Package 'libnvidia-fbc1-415' is not installed, so not removed
Package 'libnvidia-fbc1-418' is not installed, so not removed
Package 'libnvidia-fbc1-435' is not installed, so not removed
Package 'libnvidia-fbc1-455' is not installed, so not removed
Package 'libnvidia-gl-415' is not installed, so not removed
Package 'libnvidia-gl-418' is not installed, so not removed
Package 'libnvidia-gl-435' is not installed, so not removed
Package 'libnvidia-gl-455' is not installed, so not removed
Package 'libnvidia-ifr1-415' is not installed, so not removed
Package 'libnvidia-ifr1-418' is not installed, so not removed
Package 'libnvidia-ifr1-435' is not installed, so not removed
Package 'libnvidia-ifr1-455' is not installed, so not removed
Package 'libnvidia-compute-460' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  cuda-libraries-10-0 libxnvctrl0 nvidia-dkms-410 nvidia-kernel-common-410 nvidia-kernel-source-410 nvidia-modprobe nvidia-prime
  nvidia-settings screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cuda-10-0 cuda-demo-suite-10-0 cuda-drivers cuda-runtime-10-0 libcuda1-384 libnvidia-cfg1-410 libnvidia-common-410
  libnvidia-compute-410 libnvidia-decode-410 libnvidia-encode-410 libnvidia-fbc1-410 libnvidia-gl-410 libnvidia-ifr1-410
  nvidia-compute-utils-410 nvidia-driver-410 nvidia-headless-410 nvidia-headless-no-dkms-410 nvidia-opencl-icd-384 nvidia-utils-410
  xserver-xorg-video-nvidia-410
0 upgraded, 0 newly installed, 20 to remove and 27 not upgraded.
After this operation, 279 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 414327 files and directories currently installed.)
Removing cuda-10-0 (10.0.130-1) ...
Removing cuda-demo-suite-10-0 (10.0.130-1) ...
Removing cuda-runtime-10-0 (10.0.130-1) ...
Removing cuda-drivers (410.48-1) ...
Removing libcuda1-384 (410.48-0ubuntu1) ...
Removing nvidia-driver-410 (410.48-0ubuntu1) ...
Removing xserver-xorg-video-nvidia-410 (410.48-0ubuntu1) ...
Removing libnvidia-cfg1-410:amd64 (410.48-0ubuntu1) ...
Removing libnvidia-ifr1-410:amd64 (410.48-0ubuntu1) ...
Removing libnvidia-gl-410:amd64 (410.48-0ubuntu1) ...
Removing libnvidia-common-410 (410.48-0ubuntu1) ...
Removing libnvidia-encode-410:amd64 (410.48-0ubuntu1) ...
Removing libnvidia-decode-410:amd64 (410.48-0ubuntu1) ...
Removing nvidia-utils-410 (410.48-0ubuntu1) ...
Removing libnvidia-fbc1-410:amd64 (410.48-0ubuntu1) ...
Removing nvidia-opencl-icd-384 (410.48-0ubuntu1) ...
Removing nvidia-headless-410 (410.48-0ubuntu1) ...
Removing nvidia-headless-no-dkms-410 (410.48-0ubuntu1) ...
Removing nvidia-compute-utils-410 (410.48-0ubuntu1) ...
Removing libnvidia-compute-410:amd64 (410.48-0ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

Should I now run sudo apt autoremove as stated in the code above? Also, are the errors shown from sudo apt remove cuda* and suda apt remove nvidia* ok or do they also require fixing?

Thank you!

Please run the commands in an empty directory, otherwise it will run on the files in that directory.

1 Like

Hello,

I tried running it in an empty directory and it seems to have worked.
Just one concern though: when I ran sudo apt remove nvidia* and selected Y to remove, it outputted the following:

(Reading database ... 403381 files and directories currently installed.)
Removing nvidia-dkms-410 (410.48-0ubuntu1) ...
Removing all DKMS Modules
Done.
INFO:Disable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-common-410 (410.48-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-source-410 (410.48-0ubuntu1) ...
Removing nvidia-modprobe (410.48-0ubuntu1) ...
Removing nvidia-prime (0.8.8.2) ...
Removing nvidia-settings (410.48-0ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for initramfs-tools (0.130ubuntu3.11) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-58-generic
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169
cryptsetup: WARNING: failed to detect canonical device of /dev/sda6
cryptsetup: WARNING: could not determine root device from /etc/fstab
cryptsetup: WARNING: Invalid source device /.swapfile
cryptsetup: WARNING: target cryptswap has a random key, skipped
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...

Are these warnings I should be concerned of?

After running the sudo apt remove commands, I ran dpkg -l |grep nvidia which now shows a much shorter list of

rc  libnvidia-compute-390:amd64                     390.138-0ubuntu0.18.04.1                         amd64        NVIDIA libcompute package
rc  libnvidia-compute-390:i386                      390.138-0ubuntu0.18.04.1                         i386         NVIDIA libcompute package
rc  libnvidia-compute-410:amd64                     410.48-0ubuntu1                                  amd64        NVIDIA libcompute package
rc  libnvidia-compute-460:amd64                     460.27.04-0ubuntu1                               amd64        NVIDIA libcompute package
rc  nvidia-compute-utils-410                        410.48-0ubuntu1                                  amd64        NVIDIA compute utilities
rc  nvidia-dkms-410                                 410.48-0ubuntu1                                  amd64        NVIDIA DKMS package
rc  nvidia-kernel-common-410                        410.48-0ubuntu1                                  amd64        Shared files used with the kernel module
rc  nvidia-prime                                    0.8.8.2                                          all          Tools to enable NVIDIA's Prime
rc  nvidia-settings                                 410.48-0ubuntu1                                  amd64        Tool for configuring the NVIDIA graphics driver

Do I now just remove the remaining packages with sudo apt purge?
e.g. sudo apt purge libnvidia-compute-390:amd64

Thank you!

State ‘rc’ means that the packages are already removed but the config files are left over. You can either ignore them or use ‘purge’ to have a really clean slate.

1 Like

Hello,

I tried following your instructions from earlier on but got some errors.

Adding the ubuntu graphics ppa resulted in the following error and warnings.

E: The repository 'file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

A similar error also popped up when I tried sudo apt install nvidia-driver-455

After this operation, 1,021 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  libxnvctrl0 410.48-0ubuntu1 [19.3 kB]
Err:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  libxnvctrl0 410.48-0ubuntu1
  File not found - /var/cuda-repo-10-0-local-10.0.130-410.48/./libxnvctrl0_410.48-0ubuntu1_amd64.deb (2: No such file or directory)
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  nvidia-settings 410.48-0ubuntu1 [963 kB]
Err:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  nvidia-settings 410.48-0ubuntu1
  File not found - /var/cuda-repo-10-0-local-10.0.130-410.48/./nvidia-settings_410.48-0ubuntu1_amd64.deb (2: No such file or directory)
E: Failed to fetch file:/var/cuda-repo-10-0-local-10.0.130-410.48/./libxnvctrl0_410.48-0ubuntu1_amd64.deb  File not found - /var/cuda-repo-10-0-local-10.0.130-410.48/./libxnvctrl0_410.48-0ubuntu1_amd64.deb (2: No such file or directory)
E: Failed to fetch file:/var/cuda-repo-10-0-local-10.0.130-410.48/./nvidia-settings_410.48-0ubuntu1_amd64.deb  File not found - /var/cuda-repo-10-0-local-10.0.130-410.48/./nvidia-settings_410.48-0ubuntu1_amd64.deb (2: No such file or directory)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Is there a way to fix this?
Thank you!

The first error is normal, since it’s a local repo, no updates will occur.
The second one is because you added the cuda repo before installing the nvidia-driver from ubuntu repos, I guess.
Remove cuda again, reboot. Then install the driver from ubuntu repos using the “Software&Updates” application, reboot, check if the driver works.
Only then continue with cuda.

1 Like

Hello,

I used sudo apt remove cuda* and sudo apt autoremove to remove cuda and rebooted.

I then opened Software&Updates>>Additional Drivers>>Selected “Using NVIDIA driver metapackage from nvidia-driver-455 (proprietary, tested)”>>Selected “Apply Changes”
However, nothing happened and it states “No proprietary drivers are in use”.

[Screenshot of Software&Updates window]

Is there a way to fix this?

Thank you!

Is the nvidia driver still inactive after reboot? e.g. try running nvidia-smi

1 Like

Hello,

nvidia-smi outputs

Command 'nvidia-smi' not found, but can be installed with:
sudo apt install nvidia-340      
sudo apt install nvidia-utils-390

That’s a bit odd. Please run
sudo apt update
to renew the package lists. If that doesn’t help, add the graphics drivers ppa and install the driver from that.

1 Like

Hello,

sudo apt update also didn’t work and produces the following errors

Reading package lists... Done                      
E: The repository 'file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Adding the graphics driver ppa with sudo add-apt-repository ppa:graphics-drivers.ppa and sudo apt-get update also gave the same error as above.

Please try removing it manually from /etc/apt/sources.list

1 Like

Hello,

I’m not too sure what you mean.
What exactly am I supposed to remove and what do you mean by /etc/apt/sources.list

Thank you

Please post the output of
cat /etc/apt/sources.list