From d9bcc2ed3c8017db581a13d6c67e44afc30b890b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sun, 21 Dec 2025 00:10:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(apt-install):=20=E4=BF=AE=E5=A4=8D=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=91=BD=E4=BB=A4=E4=BB=A5=E7=A1=AE=E4=BF=9D=E4=B8=8D?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=8E=A8=E8=8D=90=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devcontainer/apt-install-with-cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devcontainer/apt-install-with-cache.sh b/devcontainer/apt-install-with-cache.sh index 9875ca8..ee370b5 100644 --- a/devcontainer/apt-install-with-cache.sh +++ b/devcontainer/apt-install-with-cache.sh @@ -55,7 +55,7 @@ fi # -o Dir::Cache::archives="$CACHE_DIR" 告诉 apt 把包下载到我们指定的目录 # --download-only 告诉 apt 只下载依赖包,不要解压安装 echo "⬇️ 正在检查并下载依赖..." -$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y --download-only \ +$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y --download-only \ -o Dir::Cache::archives="$CACHE_DIR" \ $PACKAGES >> "$LOG_FILE" 2>&1