Doca Installation error

Following NVIDIA DOCA Installation Guide for Linux - NVIDIA Docs , to install the host software,
After downloading .deb file for Ubuntu 22.04, sudo dpkg -i <.deb>, update, and install rshim, when executing sudo apt install -y doca-all mlnx-fw-updater, there is error:

sudo apt install -y doca-all mlnx-fw-updater
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:
 doca-runtime : Depends: openvswitch-switch (= 2.17.8-1) but 2.17.9-0ubuntu0.22.04.1 is to be installed

I am using Ubuntu 22.04 on WSL2. How to fix it?

1 Like

Hi

It seems like there’s a dependency conflict with the doca-runtime package. It requires openvswitch-switch version 2.17.8-1, but the version available for installation is 2.17.9-0ubuntu0.22.04.1.

You can try resolving this by downgrading openvswitch-switch to 2.17.8-1 using the apt package manager.

If the issue still persists or any other issues arise, please open a case at: enterprisesupport@nvidia.com, and it will be handled according to entitlement.

Best Regards,
Jonathan.

Same question. Whatever I used the sdkmanager or sdkmanager over Docker. Below is my attempt to solve this question:

First, go to the ovs, download the 2.17.8-1 Release.
Second, follow ovs/Documentation/intro/install/debian.rst at v2.17.8 · openvswitch/ovs · GitHub to complie ovs and generate .deb packages.
Third, use apt install these .deb packages.

However, I subsequently got an error about cannot install the openvswitch-ipsec, and I have no idea to solve. Anyway, I retry to use sdkmanager to install DOCA, but still has error.

I am wondering that if the openvswitch-ipsec is necessary. It helps me to further locate the issue.
My OS is ubuntu 22.04.4, with 5.15 kernel.

UPDATE
After manually compiling and installing openvswitch-common and openvswitch-switch (v2.17.8-1), I have successfully installed the DOCA runtime. One more thind I did is remove all other kernel version expect the 5.15.

Then, another issus arises. The bluefield try to ping nvidia.com and it failed. I have try to ping nvidia.com on the host, also failed. I think it is not a networking issue but is a DNS issue, because I can ping the google.com on the BlueField.

Since the ping is failed, I cannot to continue for the installation.

Attach the photo for the “network issus” above:

Hi folks,

I want to share my successful fix to this very problem.

Also getting this message on my host server about openvswitch-switch package problems.
In fact if you read carefully the SDK Manger installation logs (yeah takes time) you find out that this openvswitch-switch dependency (to a very specific version being asked for) break all following installation steps as well.

08:49:09.850 - info: NV_DOCA_RUNTIME_HOST_COMP@host:  doca-runtime : Depends: openvswitch-switch (= 2.17.8-1) but 2.17.9-0ubuntu0.22.04.1 is to be installed
08:49:09.850 - info: Event: NV_DOCA_RUNTIME_HOST_COMP@host - error is:  doca-runtime : Depends: openvswitch-switch (= 2.17.8-1) but 2.17.9-0ubuntu0.22.04.1 is to be installed

In my case I run these OS details:

Linux j701bxc7 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
fonzi@j701bxc7:~$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

From here onwards I imply tried to install exactly the openvswitch-switch version asked by the SDK Manger installer.

First purge all openv* related packages

dpkg -l | grep openvs
sudo apt purge openvswitch-switch
sudo apt purge openvswitch-common
sudo apt purge python3-openvswitch
sudo apt autopurge
dpkg -l | grep openvs

Second install two packages in exactly that order

sudo apt-get install openvswitch-common=2.17.8-1
sudo apt-get install openvswitch-switch=2.17.8-1

Third you can restart your sdkmanager in GUI or CLI mode and will see all goes through like a charm.

PS: I desactivated UEFI secure boot on my host server, if you work in a dev/proto env just switch the secure boot off. You can check with this command status of secure boot on your running OS (but on/off occurs in your BIOS settings):

mokutil --sbstate

Cheers Chris

1 Like

Thanks for your help! Highly appreciated since it helped me to resolve a dependency recently introduced:
Unmet dependencies with respect to libnl-3-dev and libnl-route-3-dev.

sudo apt-get install libnl-3-200=3.7.0-0.3build1
sudo apt-get install libnl-route-3-200=3.7.0-0.3build1

sorted it out!