#StackBounty: #debian #cuda Installing CUDA on Debian Machine 10.3

Bounty: 50

So, I am trying to install Cuda on Debian 10.3 on SageMaker studio (SageMaker Studio is most probably an unnecessary information).

I am trying the instructions from here:

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Debian&target_version=10&target_type=deblocal

So, I tried on Debian Machine:

  dpkg -i cuda-repo-debian10-11-1-local_11.1.0-455.23.05-1_amd64.deb
  apt-get install gnupg
  apt-key add /var/cuda-repo-debian10-11-1-local/7fa2af80.pub
  apt-get install software-properties-common
  add-apt-repository contrib
  apt-get -y install cuda

But, in the end, I get:

 /tmp/apt-dpkg-install-y7M08M/097-nvidia-persistenced_455.23.05-1_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

Does any one have any clue, what is going on here?

enter image description here

More logs on error:

    dpkg: error processing archive /tmp/apt-dpkg-install-nkwkn4/097-nvidia-persistenced_455.23.05-1_amd64.deb (--unpack):
     unable to make backup link of './usr/bin/nvidia-persistenced' before installing new version: Invalid cross-device link
    Selecting previously unselected package libxnvctrl0:amd64.
    Preparing to unpack .../098-libxnvctrl0_455.23.05-1_amd64.deb ...
    Unpacking libxnvctrl0:amd64 (455.23.05-1) ...
    Selecting previously unselected package libgdk-pixbuf2.0-common.
    Preparing to unpack .../099-libgdk-pixbuf2.0-common_2.38.1+dfsg-1_all.deb ...
    Unpacking libgdk-pixbuf2.0-common (2.38.1+dfsg-1) ...
    Selecting previously unselected package libgdk-pixbuf2.0-0:amd64.
    Preparing to unpack .../100-libgdk-pixbuf2.0-0_2.38.1+dfsg-1_amd64.deb ...
    Unpacking libgdk-pixbuf2.0-0:amd64 (2.38.1+dfsg-1) ...
    Selecting previously unselected package gtk-update-icon-cache.
    Preparing to unpack .../101-gtk-update-icon-cache_3.24.5-1_amd64.deb ...
    No diversion 'diversion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin', none removed.
    No diversion 'diversion of /usr/share/man/man8/update-icon-caches.8.gz to /usr/share/man/man8/update-icon-caches.gtk2.8.gz by libgtk-3-bin', none removed.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.