May be somebody know how to solve issues after updating ubuntu 22.04, because after update all "cuda related app", inside lxd containers, stops working. However when I try to reinstall nvidia-cuda-toolkit inside lxd container I got weird error:
apt install nvidia-cuda-toolkitReading package lists... DoneBuilding dependency tree... DoneReading state information... Donenvidia-cuda-toolkit is already the newest version (11.5.1-1ubuntu1).You might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: libnvidia-compute-510 : Depends: libnvidia-compute-535 but it is not going to be installedE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
And when I try fix issue I got:
apt --fix-broken installReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneCorrecting dependencies... DoneThe following additional packages will be installed: libnvidia-compute-535The following NEW packages will be installed: libnvidia-compute-5350 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.261 not fully installed or removed.Need to get 0 B/40.7 MB of archives.After this operation, 175 MB of additional disk space will be used.Do you want to continue? [Y/n] y(Reading database ... 60949 files and directories currently installed.)Preparing to unpack .../libnvidia-compute-535_535.161.07-0ubuntu0.22.04.1_amd64.deb ...Unpacking libnvidia-compute-535:amd64 (535.161.07-0ubuntu0.22.04.1) ...dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-535_535.161.07-0ubuntu0.22.04.1_amd64.deb (--unpack): unable to make backup link of './usr/lib/x86_64-linux-gnu/libcuda.so.535.161.07' before installing new version: Invalid cross-device linkdpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/libnvidia-compute-535_535.161.07-
or
apt install libnvidia-compute-535Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following NEW packages will be installed: libnvidia-compute-5350 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.261 not fully installed or removed.Need to get 0 B/40.7 MB of archives.After this operation, 175 MB of additional disk space will be used.(Reading database ... 60949 files and directories currently installed.)Preparing to unpack .../libnvidia-compute-535_535.161.07-0ubuntu0.22.04.1_amd64.deb ...Unpacking libnvidia-compute-535:amd64 (535.161.07-0ubuntu0.22.04.1) ...dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-535_535.161.07-0ubuntu0.22.04.1_amd64.deb (--unpack): unable to make backup link of './usr/lib/x86_64-linux-gnu/libcuda.so.535.161.07' before installing new version: Invalid cross-device linkdpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/libnvidia-compute-535_535.161.07-0ubuntu0.22.04.1_amd64.debE: Sub-process /usr/bin/dpkg returned an error code (1)
Host info:
adrian@ryzen5:~$ hostnamectl Static hostname: ryzen5 Icon name: computer-desktop Chassis: desktop Machine ID: 2f66c4083b924b07a3f06cf874f2a61c Boot ID: 692f204efd294a0b889ecbc050a3d746Operating System: Ubuntu 22.04.4 LTS Kernel: Linux 6.5.0-27-generic Architecture: x86-64 Hardware Vendor: ASUS Hardware Model: System Product Name
Container info:
root@cuda4:~# hostnamectl Static hostname: cuda4 Icon name: computer-container Chassis: container Machine ID: ef1bbcd8c7124e10bb50e265133616ed Boot ID: 759b330f20db4cdbbe262036c211819a Virtualization: lxcOperating System: Ubuntu 22.04.4 LTS Kernel: Linux 6.5.0-27-generic Architecture: x86-64
Strange is that on my host os it's installed successfully.
Thank you a lot for any advice and help