install_deps: tolerate a broken apt source (update best-effort)

A fresh Orin image carried a stale third-party apt source that made apt-get
update fail; with set -e that aborted the install. The packages come from the
main Ubuntu repos, so update is now best-effort and install proceeds.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
AngePierreandClaude Opus 5 committed 2026-09-10 17:01:28 +02:00
1 parent e0727d957b
commit d9b32cd148
1 file changed
+4 -1
+4 -1
View File
@@ -15,7 +15,10 @@ echo ">> Dependances pour JetPack ${JETPACK} (L4T ${L4T}, ${SOC})"
# python3 is present on every JetPack image; websockets is the only bridge dep and # python3 is present on every JetPack image; websockets is the only bridge dep and
# is pure Python, so it works identically everywhere. Prefer apt's package, fall # is pure Python, so it works identically everywhere. Prefer apt's package, fall
# back to pip when the distro is too old to carry it. # back to pip when the distro is too old to carry it.
sudo apt-get update -qq # Best-effort: a broken third-party source (a stale packagecloud/VS Code repo has
# been seen on a fresh Orin image) must not abort the whole install — the packages
# below come from the main Ubuntu repos, which update fine on their own.
sudo apt-get update -qq || true
sudo apt-get install -y --no-install-recommends \ sudo apt-get install -y --no-install-recommends \
build-essential cmake pkg-config git \ build-essential cmake pkg-config git \
libusb-1.0-0-dev libudev-dev liblz4-dev libjpeg-turbo8-dev \ libusb-1.0-0-dev libudev-dev liblz4-dev libjpeg-turbo8-dev \