sonic-otn / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
3 stars 5 forks source link

build errors when trying build sonic for otn VS image #4

Closed erichaosu closed 2 months ago

erichaosu commented 10 months ago

Description

When building sonic-otn vs image, I got the following errors, this openssh-client(= 1:8.4p1-5+deb11u1) seems is not the one installed on my Linux(the build machine), my Linux is installed a different version of openssh-client.

Unpacking openssh-server (1:8.4p1-5+deb11u1) over (1:8.4p1-5+deb11u2) ... dpkg: dependency problems prevent configuration of openssh-server: openssh-server depends on openssh-client (= 1:8.4p1-5+deb11u1); however: Version of openssh-client on system is 1:8.4p1-5+deb11u2.

dpkg: error processing package openssh-server (--install): dependency problems - leaving unconfigured Errors were encountered while processing: openssh-server

Steps to reproduce the issue:

  1. make init
  2. make configure PLATFORM=vs
  3. make target/sonic-vs.img.gz

Describe the results you received:

Describe the results you expected:

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

Weitang-Zheng commented 10 months ago

Which sonic-otn buildimage branch you are working on?

Weitang-Zheng commented 10 months ago

If you are working on otn-legacy, there is a submit to fix the openssh version issue https://github.com/sonic-otn/sonic-buildimage/commit/c565c4b5323a95a4dbb72aa0672691cbc01f8ff8

erichaosu commented 10 months ago

I am working on branch otn_pre_202411. did a 'git pull' and restart build, same error: Created symlink /etc/systemd/system/multi-user.target.wants/smartmontools.service -> /lib/systemd/system/smartmontools.service.

dpkg: error processing package openssh-server (--install): dependency problems - leaving unconfigured Errors were encountered while processing: openssh-server

sonic-otn commented 10 months ago

The otn_pre_202411 branch doesn't contain any OTN implementation yet, it's a native sonic image. The sonic-otn group are working on merging otn_legacy implementations to the otn_pre_202411 branch.

If you want to test and play with sonic-otn system, please switch to the otn_legacy branch. And you can compile the system and refer to the github actions and download the artifacts if you don't want build it.

For this compile issue, you can change the openssh-version in rules/openssh.mk to OPENSSH_VERSION = 8.4p1-5+deb11u2