From 1683e1b7caa7c8a4b66298f5f841ee616e8b0416 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 21 Jan 2026 18:50:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20`apt-get`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recipe/os/APT/Termux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/recipe/os/APT/Termux.c b/src/recipe/os/APT/Termux.c index 1a99e6f..01486a6 100644 --- a/src/recipe/os/APT/Termux.c +++ b/src/recipe/os/APT/Termux.c @@ -10,7 +10,7 @@ os_termux_prelude () chef_prep_this (os_termux, gsr); chef_set_created_on (this, "2025-03-04"); - chef_set_last_updated (this, "2025-08-10"); + chef_set_last_updated (this, "2026-01-21"); chef_set_sources_last_updated (this, "2025-03-04"); chef_set_chef (this, NULL); @@ -56,7 +56,6 @@ os_termux_getsrc (char *option) void os_termux_setsrc (char *option) { - // chsrc_ensure_root (); Termux下禁止使用root chsrc_use_this_source (os_termux); @@ -67,7 +66,7 @@ os_termux_setsrc (char *option) chsrc_run (cmd, RunOpt_Default); chsrc_run ("apt-get update", RunOpt_Default); - chsrc_run ("apt upgrade", RunOpt_Default); + chsrc_run ("apt-get upgrade", RunOpt_Default); chsrc_determine_chgtype (ChgType_Auto); chsrc_conclude (&source);