I need install to the driver in an airgapped environmnet in an ubuntu 24 server, using pre downloaded deb files of the drivers and its dependencies.
When it comes to installing libnvidia-compute-570 and libnvidia-compute-570, I see that they depends one on the other, failing the installation whatever the order is.
the Nvidia package hierarchy is quite complicated (there are several meta and virtual packages), so I’m not surprised at all that downloading and installing manually 2 random debs from the middle of this hierarchy fails. Try “the official way” as described in the official doc: apt install nvidia-open
I am not manually installing “2 random debs”, I only isolated the two problematic ones from a longer list of dependencies.
As I specified in the topic, I need to do that in an airgapped environment (no internet), therefore “the official way” using apt won’t work.
I (and my company) have been doing this on numerous system with the drivers version 535 and now we need to upgrade the drivers to support new GPU types.
this section describes exactly what to do in such environments: download and install manually the deb with the whole local repo (nvidia-driver-local-repo-$distro-$version_$arch_ext.deb substitute the vars accordingly), which contains all the necessary dependencies and then proceed the way I described previously.
The documentation is really unclear, I tried many combinations of the URI to download the package and I can’t figure it out.
A couple of examples that returned 404: wget https://developer.download.nvidia.com/compute/nvidia-driver/570.124.06/local_installers/nvidia-driver-local-repo-ubuntu2404-570.124.06_amd64.deb wget https://developer.download.nvidia.com/compute/nvidia-driver/570/local_installers/nvidia-driver-local-repo-ubuntu2404-570_amd64.deb
Anyway, I doubt this is what I need, I think this will just download the repository locally, but still will pull the individual packages from the internet. For example the apt update command cited in the documentation requires network.
incorrect. It wouldn’t be even able to download these packages (like nvidia-open) from the internet unless you added the spec of Nvidia’s network repo somewhere in /etc/apt/sources.list.d/, which you shouldn’t do if you intend to use a local repo.
incorrect: apt update will ignore sources it cannot reach (printing a warning) and update those available, such as the Nvidia local repo from the above deb file (at least that’s how it works on Debian, there’s some small chance that Canoncial bastardized apt to the point of being completely unusable, but I doubt they are THAT stupid).
update: apt install nvidia-open however may need to install additional packages form main, contrib and non-free (or whatever the corresponding components are called in Ubuntu), so make sure you have these available locally as well (or note exactly what packages it needs and install them manually or even better setup a local mirror of main, contrib etc).
It is true that it pass through apt update after hanging and writing many warnings.
But then apt install nvidia-open fails with even more warnings and errors of unreachable networks, including nvidia repository (for example: E: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/./nvidia-settings_570.124.06-0ubuntu1_amd64.deb Unable to connect to developer.download.nvidia.com:https:).
If you don’t believe me, then you can check yourself: unpack the local repo deb file manually and then verify, that the file in /etc/apt/sources.list.d contains only a single entry:
deb [signed-by=/usr/share/keyrings/nvidia-driver-local-D67F55A1-keyring.gpg] file:///var/nvidia-driver-local-repo-ubuntu2404-570.124.06 /
So if apt had tried to reach developer.download.nvidia.com it means you must have added it to your apt config before. Exactly because I anticipated that you may have done so before, I warned you that it should not be there.