in linux/cuda_installer/os_installers/debian.py [0:0]
def _add_nvidia_repo(self):
"""
Add the Nvidia repository to the system. Do nothing if already present.
"""
system, version = self._detect_linux_distro()
assert system == System.Debian
system = "debian"
keyring = self.download_file(
NVIDIA_DEB_REPO_KEYRING_URL.format(system=system, version=version),
NVIDIA_KEYRING_SHA256_SUMS[system][version],
NVIDIA_DEB_REPO_KEYRING_GS_URI.format(system=system, version=version),
)
self.run(f"dpkg -i {keyring.absolute()}")
self.run("apt-get update")