Updating CUDA/Nvidia on Debian Backports [Solved]

Kernels & Hardware, configuring network, installing services

Updating CUDA/Nvidia on Debian Backports [Solved]

Postby larry77 » 2020-12-15 10:54

Dear All,
Please also refer to this

viewtopic.php?f=5&t=146620


I run debian stable+backports on my system.
Below is my source list

Code: Select all
$ cat /etc/apt/sources.list

deb http://httpredir.debian.org/debian stable main contrib non-free
deb-src http://httpredir.debian.org/debian stable main contrib non-free

deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free

# jessie-updates, previously known as 'volatile'
deb http://httpredir.debian.org/debian stable-updates main contrib non-free
deb-src http://httpredir.debian.org/debian stable-updates main contrib non-free


# Backports repository
deb http://httpredir.debian.org/debian buster-backports main contrib non-free


#proposed updates
## deb http://deb.debian.org/debian/ stretch-proposed-updates main contrib non-free


# CRAN repository

deb https://stat.ethz.ch/CRAN/bin/linux/debian buster-cran40/




I installed the 5.8 kernel and the nvidia+cuda stuff as described here

https://wiki.debian.org/NvidiaGraphicsD ... 2Buster.22

and here

https://wiki.debian.org/NvidiaGraphicsD ... uster.22-1

and I have been living happily ever since.
Today, after a standard update, this is what I see

Code: Select all
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.


and


Code: Select all
$ sudo apt list --upgradable
Listing... Done
libcufft10/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
libcufftw10/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
libcupti-dev/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
libcurand10/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
libnvidia-ml-dev/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
libnvtoolsext1/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
nvidia-cuda-dev/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
nvidia-cuda-toolkit/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
nvidia-profiler/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]
nvidia-visual-profiler/buster-backports 11.1.1-3~bpo10+1 amd64 [upgradable from: 10.2.89-5~bpo10+1]


however, after an apt upgrade, I see

Code: Select all

The following packages have been kept back:
  libcufft10 libcufftw10 libcupti-dev libcurand10 libnvidia-ml-dev
  libnvtoolsext1 nvidia-cuda-toolkit nvidia-profiler nvidia-visual-profiler
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.



So something beyond a normal upgrade is needed.
If I try running a full upgrade, I see this

Code: Select all
The following packages will be REMOVED:
  libaccinj64-10.2 libcuinj64-10.2 libcupti10.2 nvidia-cuda-dev
  nvidia-cuda-toolkit
The following NEW packages will be installed:
  libaccinj64-11.1 libcuinj64-11.1 libcupti11.1
The following packages will be upgraded:
  libcufft10 libcufftw10 libcupti-dev libcurand10 libnvidia-ml-dev
  libnvtoolsext1 nvidia-profiler nvidia-visual-profiler
8 upgraded, 3 newly installed, 5 to remove and 0 not upgraded.
Need to get 297 MB of archives.
After this operation, 1,163 MB disk space will be freed.
Do you want to continue? [Y/n]


but this looks dangerous: cuda will be gone after that.
Any piece of advice? Is there anything I am supposed to do?
I can do nothing or should I erase the cuda and nvidia stuff and reinstall?
I can try anything as long as

1) my box remains bootable with a graphical desktop
2) I can somehow reinstall nvidia driver and cuda as I did following the debian wiki.

Thanks for any suggestion!
User avatar
larry77
 
Posts: 532
Joined: 2006-09-24 17:59

Re: Updating CUDA/Nvidia on Debian Backports [Solved]

Postby larry77 » 2020-12-15 12:47

Finally, it was easier to remove *cuda* and *nvidia* and reinstall again following the wiki.
No need to challenge the gods of nvidia with a direct update! :-)
User avatar
larry77
 
Posts: 532
Joined: 2006-09-24 17:59


Return to System configuration

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable