眼镜:
最近,驱动程序更新使我的辅助显示器无法运行,我尝试使用终端和 Ubuntu 的软件更新工具删除并重新安装驱动程序,但它没有解决任何问题,我相信这个问题在某种程度上与驱动程序的签名有关,因为它不起作用。
我运行了以下命令,结果如图所示
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Run Code Online (Sandbox Code Playgroud)
我在网上搜索了一下,发现最新发布的NVIDIA驱动程序存在一些问题,因为很多人都有某种问题,
还有一个附带问题,是否有任何 GUI 实用程序可以帮助管理签名驱动程序,以及创建、修改或删除密钥和签名等内容,因为在终端上执行此操作非常麻烦,我几乎没有时间并且希望能够修复类似的问题以后会更快。
我有配备 GTX 1050 和 Ubuntu 18.04 的戴尔 XPS。
我正在尝试设置 GPU 的最大性能级别,以便我的笔记本电脑不会过热。问题在于,通常在 PowerMizer 中设置自适应模式时,当 GPU 利用率约为 4% 且约为 70 度时,功率级别会设置为最大值 (3)。我想将其锁定为性能级别 1。
我尝试了这个解决方案:
如何摆脱 NVIDIA PowerMizer?| 询问 Ubuntu
但是重新启动后,我的电脑永远挂在黑色终端上。我必须ctrl+alt+f2从 xorg 配置中删除这些设置并再次重新启动。
我的机器(Windows 主机)有 NVIDIA 驱动程序 GeForce GTX1060。
我使用具有 Ubuntu 18.04 操作系统的虚拟机创建了一个 Virtual Box。
检查设备驱动程序时,这是我得到的输出:
ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:04.0 ==
modalias : pci:v000080EEd0000CAFEsv00000000sd00000000bc08sc80i00
vendor : InnoTek Systemberatung GmbH
model : VirtualBox Guest Service
manual_install: True
driver : virtualbox-guest-dkms - distro non-free
driver : virtualbox-guest-dkms-hwe - distro non-free
== /sys/devices/pci0000:00/0000:00:02.0 ==
modalias : pci:v000015ADd00000405sv000015ADsd00000405bc03sc00i00
vendor : VMware
model : SVGA II Adapter
manual_install: True
driver : open-vm-tools-desktop - distro free
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用https://github.com/fadymedhat/TMIXT上作为 github 提供的 TMIXT ,并且需要 Nvidia 驱动程序。可以安装在虚拟盒子上吗?VM 可以访问 Nvidia 吗?在哪里可以找到适合我的机箱的安装说明?
更新:首先看看这个是否相关?Nvidia 驱动程序 460 不适用于 Ubuntu 18.04 中的 5.4.0-64 内核
无论您使用什么版本的驱动程序,都会安装 nvidia-settings 460,这些版本的东西有可能一切都被破坏了吗?软件包存储库使得这个问题无法修复?
以下不起作用: https: //linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
它也没有提到测试结果是否有效。
这是我的测试:
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Run Code Online (Sandbox Code Playgroud)
我过去曾多次这样做过,并参考了我的旧笔记,但没有任何效果。
我正在中间清除 nvidia nad cuda。
我纯粹在命令行上运行,所以我只关心最少的命令行指令。
我想知道 20.04 中的路径是否发生了变化。有这个奇怪的文件
cat /usr/lib/nvidia/alternate-install-available
The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" …Run Code Online (Sandbox Code Playgroud) Ubuntu版本:18.04 Apt版本:1.6.13
我尝试安装不同的 cuda 工具包,这样做可能会导致 apt 无法挽回地损坏。我相信这个问题与 cuda 无关,而 apt 在这里出了问题。
如果我运行sudo apt-get install *anything*(或 apt remove 或 apt purge),我会收到错误:
Reading package lists... Done Building dependency tree Reading state information... Done cuda is already the newest version (11.2.2-1). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies. cuda-drivers-460 : Depends: libnvidia-common-460 (>= 460.32.03) but it is not going to be installed libnvidia-gl-460 : Depends: libnvidia-common-460 but it is not going …
我想做一台由Intel 12代CPU(I9-12900)组成的电脑,由于我的特殊软件需要安装Ubuntu 18.04版本。(仅硬件升级)这台电脑能正常工作吗?(我所有的搜索都显示第 12 代在 Ubuntu 20.04 中导致问题。)此外,对于 VGA、RTX 3060 或更高级别的显卡可以在该系统上工作吗?
安装最新内核后,我的系统无法再启动 nvidia 守护程序。仔细检查后发现 NVIDIA 模块缺失linux-image-5.4.0-96-generic:
sudo apt-get install --reinstall linux-image-generic linux-image-5.4.0-96-generic linux-headers-5.4.0-96-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
android-studio-4.1 cuda-command-line-tools-10-2 cuda-compiler-10-2 cuda-cudart-10-2 cuda-cudart-dev-10-2 cuda-cufft-10-2 cuda-cufft-dev-10-2 cuda-cupti-10-2 cuda-cupti-dev-10-2 cuda-curand-10-2
cuda-curand-dev-10-2 cuda-cusolver-10-2 cuda-cusolver-dev-10-2 cuda-cusparse-10-2 cuda-cusparse-dev-10-2 cuda-documentation-10-2 cuda-driver-dev-10-2 cuda-libraries-10-2 cuda-libraries-dev-10-2
cuda-memcheck-10-2 cuda-misc-headers-10-2 cuda-npp-10-2 cuda-npp-dev-10-2 cuda-nsight-10-2 cuda-nsight-compute-10-2 cuda-nsight-systems-10-2 cuda-nvcc-10-2 cuda-nvgraph-10-2 cuda-nvgraph-dev-10-2
cuda-nvjpeg-10-2 cuda-nvjpeg-dev-10-2 cuda-nvml-dev-10-2 cuda-nvprof-10-2 cuda-nvprune-10-2 cuda-nvrtc-10-2 cuda-nvrtc-dev-10-2 cuda-nvtx-10-2 cuda-nvvp-10-2 cuda-samples-10-2 cuda-sanitizer-api-10-2
cuda-toolkit-10-2 cuda-tools-10-2 cuda-visual-tools-10-2 golang-1.15-go …Run Code Online (Sandbox Code Playgroud) 安装 linux-generic-5.16 后,Nvidia 版本 495.46 显示驱动程序尚未加载。我使用 删除了一些旧的内核模块sudo apt autoremove。我使用的显卡是 NVIDIA GeForce RTX 2080 Ti Rev。这是结果dmesg
sudo dmesg | grep nvidia
[ 0.619407] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[ 3.869919] audit: type=1400 audit(1642964710.963:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=947 comm="apparmor_parser"
[ 3.869921] audit: type=1400 audit(1642964710.963:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=947 comm="apparmor_parser"
Run Code Online (Sandbox Code Playgroud)
并且安全启动已从 UEFI 配置中禁用。主板型号是ROG STRIX Z490-I GAMING
nvhpc我正在安装一个从第三方存储库调用的包。
为此,我使用推荐的方法,其中包括:
$ apt-get update && apt-get install --no-install-recommends -y --quiet ca-certificates
$ echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /'
$ apt-get update -y
$ apt-get install --no-install-recommends -y nvhpc-22-2
Run Code Online (Sandbox Code Playgroud)
事实证明,这会尝试安装nvhpc-22-3较新的版本。(我不想安装它,因为除其他外,我的虚拟机中没有两个版本的空间)。
同样奇怪的是,如果我显式安装nvhpc-22-3(或nvhpc),它仅安装版本 22.3,而如果我要求nvhpc-22-2安装,则会安装 22.2 和 22.3。(仅 22.3 或 22.2 就应该适合磁盘。)
我认为存储库或者apt-get正在尝试变得智能并安装新旧版本。
如何阻止安装新版本?(即专门称为nvhpc-22-3或 的包nvhpc)?
请注意,我传递参数是--no-install-recommends为了防止类似的事情发生,以防相关。
这是上面最后一个命令的输出:
$ apt-get install --no-install-recommends -y nvhpc-22-2
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages …Run Code Online (Sandbox Code Playgroud)