Comment Summary:
----------------
suggested fix: make libnvidia-ml-dev depend on:
libnvidia-compute-450 (>= 450) | libnvidia-compute-450-server (>= 450) | 
libnvidia-ml.so.1 (>= 450) | libnvidia-ml1 (>=450) 
instead of:
libnvidia-compute-450 (>= 450) | libnvidia-compute-450-server (>= 450) | 
libnvidia-ml.so.1 (>= 450)


Longer version :) 
-----------------
I noticed now that  libnvidia-ml.so.1 (>= 450) would satisfy libnvidia-ml-dev's 
dependencies (and in turn, would allow the installation of nvidia-cuda-toolkit).

both libnvidia-compute-450 and libnvidia-compute-455 provide libnvidia-ml1, AND
 contain the file libnvidia-ml.so.1, but do not "provide" libnvidia-ml.so.1, 
which suggests the problem is only in the dependency *declerations*, and 
nothing "material" prevents the installation of these packages together (i.e. 
if we would force their installation, they would work). 

If this is correct, I believe that changing libnvidia-ml-dev to depend
on  libnvidia-ml1 (>=450) as an alternative to the dependency on
libnvidia-ml.so.1 would fix the problem.

To test this theory, I created a dummy package (using equivs) that contain no 
files, depends on libnvidia-ml1 (>= 455.28) and "provides" libnvidia-ml.so.1 (= 
455.28). After installing this package, I successfully installed 
nvidia-cuda-toolkit along with nvidia-driver-455.
This setup works for me: I was able to install pytorch and train some models on 
the gpu (verified using nvidia-smi).


** Attachment added: "equiv control file of the dummy package I created"
   
https://bugs.launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/+bug/1900627/+attachment/5424775/+files/libnvidia-ml-dummy.equivs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1900627

Title:
  installing nvidia-cuda-toolkit  removes nvidia-driver-455

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/+bug/1900627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to