Skip to content

Fix Docker build on Ubuntu 24.04: stabilize apt installs and multiarch deps#10

Merged
quic-mtharu merged 1 commit intoqualcomm:mainfrom
quic-mtharu:main
Jan 28, 2026
Merged

Fix Docker build on Ubuntu 24.04: stabilize apt installs and multiarch deps#10
quic-mtharu merged 1 commit intoqualcomm:mainfrom
quic-mtharu:main

Conversation

@quic-mtharu
Copy link
Contributor

Summary

Fix Docker image build failures (apt-get install exit code 4) on Ubuntu 24.04 by
stabilizing apt dependency installation and handling multi-arch (arm64) packages
more safely.

Root Cause

The Docker build performed apt-get update in a prior layer and ran a large
apt-get install later, which can reuse stale apt indexes due to Docker cache.
Additionally, some packages in the list are not consistently available on Ubuntu
24.04 (e.g., python3-software-properties, lavacli, clang-15/lld-15), causing apt
resolution failures.

Changes

  • Move apt-get update into the same RUN layer as apt-get install
  • Keep arm64 ports sources and dpkg --add-architecture arm64 for :arm64 packages
  • Remove obsolete python3-software-properties (already covered by software-properties-common)
  • Treat non-essential tools (lavacli, systemd-ukify, clang-15/lld-15) as optional:
    • fallback to clang/lld if versioned packages are unavailable
  • Add apt retry settings and keep cleanup to reduce image size
  • Use SHELL bash for pipefail safety without changing /bin/sh globally

Impact

Build tooling only; no runtime behavior changes expected beyond improved image
build reliability.

Validation

Docker image build completes successfully after these changes.

…h deps

- Avoid stale apt index by running apt-get update in the same layer as install
- Keep arm64 multiarch support with ports sources and dpkg --add-architecture arm64
- Remove/avoid invalid packages on 24.04 (e.g., python3-software-properties)
- Treat lavacli as a required tool for the test flow
- Make optional tools (systemd-ukify, clang-15/lld-15) non-fatal with fallback
- Add apt retry behavior and keep cleanup to reduce image size

Signed-off-by: Tharun Kumar Merugu <mtharu@qti.qualcomm.com>
@quic-mtharu quic-mtharu merged commit db4b062 into qualcomm:main Jan 28, 2026
6 checks passed
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.

2 participants