Ubuntu20.04 arm64/amd64 离线安装nvidia-docker2

1.在在线的Ubuntu20.04上从Index of linux/ubuntu/dists/focal/pool/stable/arm64/

下载这个3个文件:

containerd.io_1.6.9-1_arm64.deb
docker-ce-cli_23.0.0-1~ubuntu.20.04~focal_arm64.deb
docker-ce_23.0.0-1~ubuntu.20.04~focal_arm64.deb

然后执行sudo dpkg -i *.deb 安装docker

2. 从在线的Ubuntu20.04上下载离线包

先确定下载源:

distribution=$(. /etc/os-release;echo $ID$VERSION_ID)

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -

curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

sudo apt-get update

再下载以下包:


libnvidia-container0_0.11.0+jetpack_arm64.deb

libnvidia-container1_1.13.5-1_arm64.deb

libnvidia-container-tools_1.13.5-1_arm64.deb

nvidia-container-toolkit-base_1.13.5-1_arm64.deb

nvidia-container-toolkit_1.13.5-1_arm64.deb

nvidia-container-runtime_3.13.0-1_all.deb

nvidia-docker2_2.13.0-1_all.deb

3.在离线的Ubuntu20.04上依次安装这些包: 

sudo dpkg -i libnvidia-container0_0.11.0+jetpack_arm64.deb

sudo dpkg -i libnvidia-container1_1.13.5-1_arm64.deb

sudo dpkg -i libnvidia-container-tools_1.13.5-1_arm64.deb

sudo dpkg -i nvidia-container-toolkit-base_1.13.5-1_arm64.deb

sudo dpkg -i nvidia-container-toolkit_1.13.5-1_arm64.deb

sudo dpkg -i nvidia-container-runtime_3.13.0-1_all.deb

sudo dpkg -i nvidia-docker2_2.13.0-1_all.deb

你可能感兴趣的:(离线安装,ubuntu20.04,nvidia-docker2,离线安装)