SAI icon indicating copy to clipboard operation
SAI copied to clipboard

Conflicts between some sonic debs and the thrift sources!

Open Stephengzh-Ragilenetworks opened this issue 3 years ago • 0 comments

When I try to install libboost-all-dev libssl-dev in this step: https://github.com/opencomputeproject/SAI/blob/master/ptf/SAI_PTF_user-guide.md#build-sai-thrift-server-and-python-client-dut-side

An error occurred: root@sonic:/home/admin/thrift-0.11.0# apt-get install libboost-all-dev 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: libnl-3-dev : Depends: libnl-3-200 (= 3.4.0-1+b1) but 3.5.0-1 is to be installed libnl-route-3-200 : Depends: libnl-3-200 (= 3.4.0-1+b1) but 3.5.0-1 is to be installed E: Unable to correct problems, you have held broken packages.

Then I use aptitude install to install the required lib with required versions. The saithrift finally works. But it needs remove some debs: Accept this solution? [Y/n/q/?] n The following actions will resolve these dependencies:

  Remove the following packages:                            
  1.  libswsscommon [1.0.0 (now)]                             
    
  2.  python3-swsscommon [1.0.0 (now)]                        
    
  3.  sonic-db-cli [1.0.0 (now)]          
    

After that, I try to install these three debs manually, it says the lib needs to be upgraded: root@sonic:/home/admin# dpkg -i libswsscommon_1.0.0_amd64.deb Selecting previously unselected package libswsscommon. (Reading database ... 65356 files and directories currently installed.) Preparing to unpack libswsscommon_1.0.0_amd64.deb ... Unpacking libswsscommon (1.0.0) ... dpkg: dependency problems prevent configuration of libswsscommon: libswsscommon depends on libnl-3-200 (>= 3.5.0-1); however: Version of libnl-3-200:amd64 on system is 3.4.0-1+b1. libswsscommon depends on libnl-nf-3-200 (>= 3.5.0-1); however: Version of libnl-nf-3-200:amd64 on system is 3.4.0-1+b1. libswsscommon depends on libnl-route-3-200 (>= 3.5.0-1); however: Version of libnl-route-3-200:amd64 on system is 3.4.0-1+b1. libswsscommon depends on libzmq5 (>= 4.0.1+dfsg); however: Package libzmq5 is not installed.

dpkg: error processing package libswsscommon (--install): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.31-13+deb11u3) ... Errors were encountered while processing: libswsscommon

I think that there some conflicts between these. Anyone can help fix this?

SONiC VERSION: MASTER