Distribution (run cat /etc/os-release
):
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os
Related Application and/or Package Version (run apt policy $PACKAGE NAME
):
There is a dependency issue between nvidia-container-runtime
in the PopOS PPA and nvidia-docker2
so I provide the policy of both below:
apt policy nvidia-container-runtime
nvidia-container-runtime:
Installed: (none)
Candidate: 3.4.0-1pop1~1601325114~20.04~2880fc6
Version table:
3.5.0-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.4.2-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.4.1-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.4.0-1pop1~1601325114~20.04~2880fc6 1001
1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages
3.4.0-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.3.0-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.2.0-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.1.4-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.1.3-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.1.2-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
3.1.1-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.7-3 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.6-3 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.5-3 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.5-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.4-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.3-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.2-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.1-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.09.0-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.06.3-3 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.06.2-2 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.06.2-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.06.1-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.06.0-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker18.03.1-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
2.0.0+docker17.12.1-1 500
500 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 Packages
apt policy nvidia-docker2
nvidia-docker2:
Installed: (none)
Candidate: 2.6.0-1
Version table:
2.6.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.5.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.4.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.3.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.2.2-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.2.1-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.2.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.1.1-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.1.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.7-3 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.6-3 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.5-3 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.5-2 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.4-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.3-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.2-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.1-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.09.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.06.3-3 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.06.2-2 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.06.2-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.06.1-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.06.0-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker18.03.1-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
2.0.3+docker17.12.1-1 500
500 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 Packages
Issue/Bug Description:
I think the PopOS PPA is using an outdated version of nvidia-container-runtime
which should be 3.5.0 not 3.4.0. Since nvidia-docker2
requires >=3.5.0 I think the PopOS PPA should be updated?
Steps to reproduce (if you know):
Follow install instructions as per the NVIDIA container toolkit guide. Since the distribution popos20.04
does not exist I substitute $ID$VERSION_ID
with ubuntu20.04
so the GPG step is:
distribution=$(. /etc/os-release;echo ubuntu20.04) \
&& 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
Once I run sudo apt-get install -y nvidia-docker2
I get:
sudo apt-get install -y nvidia-docker2
Reading package lists... Done
Building dependency tree
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 resolve the situation:
The following packages have unmet dependencies:
nvidia-docker2 : Depends: nvidia-container-runtime (>= 3.5.0) but 3.4.0-1pop1~1601325114~20.04~2880fc6 is to be installed
E: Unable to correct problems, you have held broken packages.
Expected behavior:
My coworkers followed these steps some months ago without issue and have the inference server with Triton running. So, sudo apt-get install -y nvidia-docker2
should work without any workaround like the one described below.
Other Notes:
I can force my way past this using
sudo apt install aptitude
sudo aptitude install nvidia-docker2
I say no to the first option and then yes to the second:
The following NEW packages will be installed:
nvidia-docker2{b}
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5,960 B of archives. After unpacking 27.6 kB will be used.
The following packages have unmet dependencies:
nvidia-docker2 : Depends: nvidia-container-runtime (>= 3.5.0) but it is not going to be installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) nvidia-docker2 [Not Installed]
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Install the following packages:
1) libnvidia-container-tools [1.4.0-1 (bionic)]
2) libnvidia-container1 [1.4.0-1 (bionic)]
3) nvidia-container-runtime [3.5.0-1 (bionic)]
4) nvidia-container-toolkit [1.5.0-1 (bionic, now)]
Accept this solution? [Y/n/q/?] y
This fixes my issue and then nvidia-docker2
is installed and works. But then I get this horror:
And now PopOS will no longer update.
Ok, so let's try again but say no to the first 2 options and then yes to the third:
sudo aptitude install nvidia-docker2
<say no to first 2>
The following actions will resolve these dependencies:
Install the following packages:
1) libnvidia-container-tools [1.3.0-1pop1~1601490873~20.04~cb62a8d (focal)]
2) libnvidia-container1 [1.4.0-1 (bionic)]
3) nvidia-container-runtime [3.4.0-1pop1~1601325114~20.04~2880fc6 (focal)]
4) nvidia-container-toolkit [1.3.0-1pop1~1601490793~20.04~270505a (focal)]
5) nvidia-docker2 [2.5.0-1 (bionic)]
Accept this solution? [Y/n/q/?] y
This not only installs nvidia-docker2 but I can go to the Pop shop and install OS updates without issue. But I think this workaround shouldn't be needed and a smooth customer experience where sudo aptitude install nvidia-docker2
just works is preferred. It used to work after all. And I'd like to see PopOS take over the world, hence the bug report.