![nvidia-xconfig 问题:从 libnvidia-cfg.so.1 检索符号 nvCfgIsPrimaryDevice 时出错](https://linux22.com/image/230251/nvidia-xconfig%20%E9%97%AE%E9%A2%98%EF%BC%9A%E4%BB%8E%20libnvidia-cfg.so.1%20%E6%A3%80%E7%B4%A2%E7%AC%A6%E5%8F%B7%20nvCfgIsPrimaryDevice%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我正在尝试在 Debian 11 中设置我的 nvidia 显卡。据我所知,我已经正确设置了驱动程序,并有以下输出nvidia-smi
:
Mon Mar 25 10:04:05 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.157 Driver Version: 390.157 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 675M Off | 00000000:01:00.0 N/A | N/A |
| 0% 60C P0 N/A / N/A | 0MiB / 1985MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
如果我理解正确,这意味着我已经正确设置了驱动程序,但我现在需要设置 Xorg 来使用显卡,这应该通过nvidia-xconfig
.
但是,当我运行时nvidia-xconfig
,我得到以下输出:
WARNING: Unable to locate/open X configuration file.
WARNING: Unable to parse X.Org version string.
WARNING: error retrieving symbol nvCfgIsPrimaryDevice from libnvidia-cfg.so.1:
/lib/x86_64-linux-gnu/libnvidia-cfg.so.1: undefined symbol: nvCfgIsPrimaryDevice
ERROR: Unable to find any GPUs in the system.
ERROR: Unable to write to directory '/etc/X11'.
最后一个错误是因为我没有运行为sudo
.当我运行sudo
xorg 配置时,生成的配置不会导致使用 nvidia 显卡。
我相信由于之前的符号错误,它无法找到我的显卡:
/lib/x86_64-linux-gnu/libnvidia-cfg.so.1: undefined symbol: nvCfgIsPrimaryDevice
据我所知,所有适当的软件包都已安装(因为该库确实存在),但由于符号不存在,是否安装了错误的版本?
不知道如何进一步诊断这个问题,非常感谢任何帮助!