Skip to content

Commit 1416b02

Browse files
committed
修改
1 parent 3daedd0 commit 1416b02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Termux/install-NC

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ for cmd in screen proot-distro; do
5959
command_exists "$cmd" || pkg install -y "$cmd"
6060
done
6161

62+
mv "$PREFIX/etc/apt/sources.list.bak" "$PREFIX/etc/apt/sources.list"
63+
6264
if [ ! -d "$PREFIX/var/lib/proot-distro/installed-rootfs/nc/" ]; then
6365
log "INFO" "安装debian容器..."
6466
export PD_OVERRIDE_TARBALL_URL="https://gh-proxy.com/https://raw.githubusercontent.com/Dong-Jing-Yu/Dong-Jing-Yu.github.io/refs/heads/main/Termux/proot-distro/debian-bookworm-aarch64-pd-v4.17.3.tar.xz"
6567
proot-distro install debian --override-alias nc
6668
log "INFO" "安装完成!"
6769
fi
68-
# mv "$PREFIX/etc/apt/sources.list.bak" "$PREFIX/etc/apt/sources.list"
70+
6971

7072

7173
init_cmd="apt update -y && \

0 commit comments

Comments
 (0)