From 6d8bf16d74450befe2d5907608501c89a6c75b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sun, 21 Dec 2025 00:11:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(apt-install):=20=E6=9B=B4=E6=96=B0=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 ee370b5..ec35128 100644 --- a/devcontainer/apt-install-with-cache.sh +++ b/devcontainer/apt-install-with-cache.sh @@ -82,7 +82,7 @@ echo "✅ 依赖下载/缓存完成。" # 再次运行 install,指向同一个缓存目录。 # apt 会检测到目录里已经有对应的 .deb 文件(且哈希值匹配),就会直接使用缓存,跳过下载。 echo "🚀 开始安装..." -$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y \ +$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ -o Dir::Cache::archives="$CACHE_DIR" \ $PACKAGES >> "$LOG_FILE" 2>&1