certification-tool icon indicating copy to clipboard operation
certification-tool copied to clipboard

[Bug] Can't install "2.10.1-spring2024" Version

Open joonhaengHeo opened this issue 1 year ago • 10 comments

Describe the bug

I know that the official Test Harness Version for Matter 1.3 is 2.10.1-spring2024.

To test this, I booted the Ubuntu 22.04.4 version of rasberrypi and tried to install TH in the following order, but the installation failed with the following error.

  1. git clone -b v2.10.1+spring2024 https://github.com/project-chip/certification-tool.git
  2. cd certification-tool
  3. ./scripts/pi-setup/auto-install.sh

"Depends: python3-venv (= 3.10.6-1~22.04) but 3.10.6-1~22.04.1 is to be installed"

Steps to reproduce the behavior

  1. git clone -b v2.10.1+spring2024 https://github.com/project-chip/certification-tool.git
  2. cd certification-tool
  3. ./scripts/pi-setup/auto-install.sh

Expected behavior

No response

Log files

No response

PICS file

No response

Screenshots

No response

Environment

No response

Additional Information

No response

joonhaengHeo avatar Aug 26 '24 05:08 joonhaengHeo

I confirmed that the installation was completed normally when I modified it as below, but I am not sure if this is the right direction.

--- a/scripts/ubuntu/1-install-dependendcies.sh
+++ b/scripts/ubuntu/1-install-dependendcies.sh
@@ -54,7 +54,7 @@ packagelist=(
     "npm (=8.5.1~ds-1)"
     "pkg-config (=0.29.2-1ubuntu3)"
     "python3-pip (=22.0.2+dfsg-1ubuntu0.4)"          # Test Harness CLI uses Python
-    "python3-venv (=3.10.6-1~22.04)"                 # Test Harness CLI uses Python
+    "python3-venv (=3.10.6-1~22.04.1)"                 # Test Harness CLI uses Python
     "software-properties-common (=0.99.22.9)"
     "toilet (=0.3-1.4)"
     "unzip (>=6.0-26ubuntu3.1)"

joonhaengHeo avatar Aug 26 '24 05:08 joonhaengHeo

Add libdbus-1-dev to this issue:

ubuntu@ubuntu:~/git/certification-tool$ diff ./backend/test_collections/matter/setup.sh ./backend/test_collections/matter/setup.sh.bak
37c37
<     "libdbus-1-dev (=1.14.10-4ubuntu4.1)"
---
>     "libdbus-1-dev (=1.14.10-4ubuntu4)"

can't test it as auto-install.sh somehow undose these changes.

Haerteleric avatar Sep 02 '24 14:09 Haerteleric

can confirm now that my fix works, after i commented out the auto-update.sh line in certification-tool/scripts/ubuntu/auto-install.sh

ubuntu@ubuntu:~/git/certification-tool/scripts/ubuntu$ diff auto-install.sh auto-install.sh.bak
40c40
< ##$UBUNTU_SCRIPT_DIR/auto-update.sh "$CURRENT_BRANCH"
---
> $UBUNTU_SCRIPT_DIR/auto-update.sh "$CURRENT_BRANCH"

Haerteleric avatar Sep 02 '24 14:09 Haerteleric

@joonhaengHeo Thanks for your feedback. We are working in a fix for this problem. Soon as possible we will share the informations here.

@Haerteleric For now you can comment out these lines from update script: certification-tool/scripts/update.sh

echo "*** Pull latest Test Harness code"
cd $ROOT_DIR && \
    git checkout $ROOT_BRANCH && \
    git pull && \
    git submodule update --init --recursive```

hiltonlima avatar Sep 02 '24 18:09 hiltonlima

@hiltonlima it looks like commenting out the code didn't work for me. I had to make the change to python3-env in 1-install-dependendcies.sh as per @joonhaengHeo to solve the problem

ksharf avatar Sep 05 '24 13:09 ksharf

@ksharf sorry for this late response.

Temporary you can use the branch ccb_v2.10.2+spring2024 for new installations.

This branch has the installation fix.

hiltonlima avatar Sep 27 '24 18:09 hiltonlima

PR waiting fix process: https://github.com/project-chip/certification-tool/pull/394

hiltonlima avatar Sep 27 '24 19:09 hiltonlima

@hiltonlima I tried to install on branch ccb_v2.10.2+spring2024 and got the following error:

The following packages have unmet dependencies:
 satisfy:command-line : Depends: ca-certificates (= 20230311ubuntu0.22.04.1) but 20240203~22.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

It appears to be due to an updated ubuntu package. https://www.ubuntuupdates.org/package/core/jammy/main/updates/ca-certificates Wouldn't a similar fix be needed for this problem?

# /home/ubuntu/certification-tool/scripts/ubuntu/1-install-dependendcies.sh
packagelist=(
    "apt-transport-https (>=2.4.11)"
    "avahi-utils (>=0.8-5ubuntu5.2)"                 # Matter uses Avahi
    "ca-certificates (=20230311ubuntu0.22.04.1)"

ghost avatar Oct 01 '24 05:10 ghost

Thanks for this feedback @YusukeNakazawa-x

We will fix it too.

hiltonlima avatar Oct 01 '24 15:10 hiltonlima

Just for information: The branch ccb_v2.10.2+spring2024 was fixed.

hiltonlima avatar Oct 02 '24 18:10 hiltonlima

I believe the spring2024 installation is stable. I'm closing up this issue but feel free to reopen or create another one for any problem installing this release.

antonio-amjr avatar Jan 08 '25 17:01 antonio-amjr