Skip to content

[CCB_4322] Fixes intermittent installation failures (Matter v2.14+fall2025) on Ubuntu 24.04 #915

Open
rquidute wants to merge 6 commits intov2.14+fall2025from
ccb_4322_v2.14+fall2025_candidate_fix_876
Open

[CCB_4322] Fixes intermittent installation failures (Matter v2.14+fall2025) on Ubuntu 24.04 #915
rquidute wants to merge 6 commits intov2.14+fall2025from
ccb_4322_v2.14+fall2025_candidate_fix_876

Conversation

@rquidute
Copy link
Copy Markdown
Contributor

Description

Fixes intermittent installation failures on Ubuntu 24.04 (Raspberry Pi / ARM) for v2.14+fall2025 version.

Related Issue

Testing

Fresh installation using ccb_4322_v2.14+fall2025_candidate_fix_876 was successfully

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the robustness of the certification tool's installation process on specific Ubuntu environments, particularly for Raspberry Pi/ARM devices running Ubuntu 24.04. By programmatically ensuring that the *-updates APT repository is correctly configured and updated, the changes guarantee that all necessary package dependencies, including critical development packages, are properly resolved. This prevents common installation failures caused by missing or mismatched package versions, leading to a more reliable setup experience.

Highlights

  • Installation Stability: Addressed intermittent installation failures specifically on Ubuntu 24.04 (Raspberry Pi / ARM) environments for the v2.14+fall2025 version.
  • APT Repository Configuration: Implemented a check and modification to ensure the <codename>-updates apt repository is present in the system's sources. This resolves issues where minimal Ubuntu images might lack necessary development packages.
  • Dependency Resolution: Prevented 'held broken packages' errors during dependency resolution by ensuring that matching -dev packages, often found in the *-updates repository, are available for runtime libraries.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • scripts/ubuntu/1.2-install-additional-dependencies.sh
    • Added logic to verify and append the <codename>-updates repository to apt sources if it's missing.
    • Included an apt-get update call after potential source modifications to refresh package lists.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to fix intermittent installation failures on Ubuntu 24.04 by ensuring the <codename>-updates apt repository is configured. The approach is sound, but the shell script modification uses a complex regular expression with sed. My feedback includes a suggestion to simplify and improve the readability of this command. I've also highlighted a potential edge case where the current logic might not work as expected, for your consideration.

@rquidute rquidute changed the title [CCB] 4322 v2.14+fall2025 candidate fix 876 [CCB] 4322 Fixes intermittent installation failures (Matter v2.14+fall2025) on Ubuntu 24.04 Mar 16, 2026
@rquidute rquidute changed the title [CCB] 4322 Fixes intermittent installation failures (Matter v2.14+fall2025) on Ubuntu 24.04 [CCB_4322] Fixes intermittent installation failures (Matter v2.14+fall2025) on Ubuntu 24.04 Mar 16, 2026
@sander-gitl
Copy link
Copy Markdown

sander-gitl commented Mar 17, 2026

Confirm works, also works for 1.5.1 branch provided patched as follows:

`

diff --git a/scripts/pi-setup/install-pi-dependencies.sh b/scripts/pi-setup/install-pi-dependencies.sh
index f15bb6c..72b598c 100755
--- a/scripts/pi-setup/install-pi-dependencies.sh
+++ b/scripts/pi-setup/install-pi-dependencies.sh
@@ -28,6 +28,21 @@ sudo sed -i "s/#$nrconf{kernelhints} = -1;/$nrconf{kernelhints} = -1;/g" /etc/
sudo sed -i "s/#$nrconf{restart} = 'i';/$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf

print_script_step "Upgrade OS"
+# Ensure -updates is present in apt sources.
+# On minimal Ubuntu images (e.g. Raspberry Pi), the sources file may only contain
+# and -security. Security point releases update runtime libraries
+# (libmount1, zlib1g, libpcre2-8-0, etc.) to patch versions (e.g. -9ubuntu6.4), but the
+# matching -dev packages that accept those versions only exist in -updates.
+# Without this repo, apt-get satisfy fails with "held broken packages" when resolving
+# transitive -dev dependencies for libgstreamer1.0-dev.
+print_script_step "Ensuring -updates apt repository is configured"
+UBUNTU_CODENAME=$(lsb_release -cs)
+SOURCES_FILE="/etc/apt/sources.list.d/ubuntu.sources"
+if [ -f "$SOURCES_FILE" ] && grep -q "^Suites:" "$SOURCES_FILE"; then

  • if ! grep -q "${UBUNTU_CODENAME}-updates" "$SOURCES_FILE"; then
  •    sudo sed -i -E "/^Suites:.*\b${UBUNTU_CODENAME}\b([^-]|$)/ s/$/ ${UBUNTU_CODENAME}-updates/" "$SOURCES_FILE"
    
  • fi
    +fi
    sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
    sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants