![在配备 Nvida GTX 1060 的 Ubuntu 20.04 中安装 CUDA 11](https://linux22.com/image/1018601/%E5%9C%A8%E9%85%8D%E5%A4%87%20Nvida%20GTX%201060%20%E7%9A%84%20Ubuntu%2020.04%20%E4%B8%AD%E5%AE%89%E8%A3%85%20CUDA%2011.png)
我最近尝试安装适用于 Ubuntu 18.04 的 CUDA 11.0在 Ubuntu Mate 20.04 中,按照网站。我尝试通过运行以文本模式(运行级别 3)安装 CUDA sudo apt-get install cuda
,但出现无法安装的错误libnvidia-compute-450
。因此我运行sudo apt-get --fix-broken install
并得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libatomic1:i386 libbsd0:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386
libdrm2:i386 libedit2:i386 libelf1:i386 libexpat1:i386 libffi7:i386 libgl1:i386 libgl1-mesa-dri:i386
libglapi-mesa:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libllvm9:i386 libnvidia-common-440
libnvidia-extra-440 libpciaccess0:i386 libsensors5:i386 libstdc++6:i386 libvulkan1:i386
libwayland-client0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386
libxcb-glx0:i386 libxcb-present0:i386 libxcb-randr0:i386 libxcb-sync1:i386 libxcb1:i386 libxdamage1:i386
libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxshmfence1:i386 libxxf86vm1:i386 mesa-vulkan-drivers:i386
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libnvidia-compute-450
The following NEW packages will be installed:
libnvidia-compute-450
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
75 not fully installed or removed.
Need to get 0 B/21,8 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 322258 files and directories currently installed.)
Preparing to unpack .../libnvidia-compute-450_450.36.06-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-450:amd64 (450.36.06-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libnvidia-compute-450_450.36.06-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libnvidia-allocator.so', which is also in package libnvidia-extra-440:amd64 440.82+really.440.64-0ubuntu6
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-compute-450_450.36.06-0ubuntu1_amd64.deb
libdvd-pkg: Checking orig.tar integrity...
/usr/src/libdvd-pkg/libdvdcss_1.4.2.orig.tar.bz2: OK
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...
E: Sub-process /usr/bin/dpkg returned an error code (1)error code (1)
在我之前的 Ubuntu 安装中,我也遇到过类似的问题,唯一的解决方法是选择并安装以前的驱动程序(nvidia-440)。有什么办法吗?