- Your
/etc/apt/sources.list
should look like something like this:
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc] main contrib non-free
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc]-updates main contrib non-free
# security updates
deb http://security.debian.org [bullseye, bookworm, etc]-security main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve [bullseye, bookworm, etc] pve-no-subscription
Don't blindly replace your /etc/apt/sources.list
with the above contents!!
apt update
apt upgrade
apt install pve-headers
apt install libnvidia-cfg1 nvidia-kernel-source nvidia-kernel-common nvidia-driver
- Reboot
nvidia-smi
should print something like this:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.141.03 Driver Version: 470.141.03 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA RTX A4000 On | 00000000:42:00.0 Off | Off |
| 41% 44C P8 7W / 140W | 1MiB / 16117MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
Do you've an updated instruction? When I try to execute #5 (apt install libnvidia-cfg1 nvidia-kernel-source nvidia-kernel-common nvidia-driver), I get the following error.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 20.3.5-1) but 22.3.6-1+deb12u1 is to be installed
libice6 : Depends: x11-common but it is not installable
xserver-common : Depends: x11-common but it is not installable
Recommends: xfonts-base but it is not installable
E: Unable to correct problems, you have held broken packages.