From 94c27c26b7c098973bd2d470271e313b222146b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8B=BF=E5=BF=98=E5=BF=83=E5=AE=89?= <36999228+xkatld@users.noreply.github.com> Date: Tue, 27 Jan 2026 00:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=B8=AD=E6=B7=BB=E5=8A=A0=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E7=BD=91=E7=BB=9C=E7=BB=84=E4=BB=B6=E5=AE=89=E8=A3=85=EF=BC=8C?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E8=BD=AF=E4=BB=B6=E5=8C=85=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A7=BB=E9=99=A4=E5=86=97=E4=BD=99?= =?UTF-8?q?=E7=9A=84LXD=20NAT=E8=A7=84=E5=88=99=E9=87=8D=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shell/lxd_install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shell/lxd_install.sh b/Shell/lxd_install.sh index 7ffac96..59b9af5 100644 --- a/Shell/lxd_install.sh +++ b/Shell/lxd_install.sh @@ -83,7 +83,8 @@ get_available_space() { install_lxd() { info "安装基础网络组件..." - install_package nftables + apt-get update >/dev/null 2>&1 + apt-get install -y nftables >/dev/null 2>&1 lxd_snap=$(dpkg -l | awk '/^[hi]i/{print $2}' | grep -ow snap) lxd_snapd=$(dpkg -l | awk '/^[hi]i/{print $2}' | grep -ow snapd) if [[ "$lxd_snap" =~ ^snap.* ]] && [[ "$lxd_snapd" =~ ^snapd.* ]]; then