From dbf4cb309108ba59af2db25a19f88546745f9f49 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Thu, 18 Jun 2026 17:17:01 +0800 Subject: [PATCH] fix: validate pinned chrome apt version --- scripts/create-ai-workspace-offline-package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create-ai-workspace-offline-package.sh b/scripts/create-ai-workspace-offline-package.sh index 6e3c707..7712c32 100755 --- a/scripts/create-ai-workspace-offline-package.sh +++ b/scripts/create-ai-workspace-offline-package.sh @@ -261,7 +261,7 @@ resolve_required_package() { case "$(dpkg --print-architecture)" in amd64) - if apt-cache show "google-chrome-stable=${GOOGLE_CHROME_VERSION}" >/dev/null 2>&1; then + if apt-cache madison google-chrome-stable | awk '{print $3}' | grep -Fxq "${GOOGLE_CHROME_VERSION}"; then chrome_package="google-chrome-stable=${GOOGLE_CHROME_VERSION}" elif apt-cache show google-chrome-stable >/dev/null 2>&1; then echo "Required Google Chrome version is unavailable: ${GOOGLE_CHROME_VERSION}; using the repository candidate instead." >&2