Using NVIDIA GPUs exclusively for compute (e.g. headless driver) . There is a separate display driver in the system. Would installing libnvidia-cfg mess up that display driver ?
I found in order to fix the missing libnvidia-cfg.so.1 file issue, you need to install either libnvidia-cfg1 or libnvidia-legacy-390xx-cfg1
So the following command fix the issue. sudo apt install libnvidia-legacy-390xx-cfg1
Update November 2023: Note that there is no single ‘libnvidia-cfg1’ available in the modern stack - instead, you must specify the version that matches your driver version, as “libnvidia-cfg1-xxx” format, where “xxx” is your driver version (for example, libnvidia-cfg1-545).
It would be helpful to show how to get the driver version:
find /usr/lib/modules -name nvidia.ko
/usr/lib/modules/5.19.0-1010-nvidia-lowlatency/kernel/nvidia-530/nvidia.ko
sudo apt install libnvidia-cfg1-530
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following NEW packages will be installed:
libnvidia-cfg1-530
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.