diff --git a/Cnbench.sh b/Cnbench.sh index 2f0ce34..cc7543b 100644 --- a/Cnbench.sh +++ b/Cnbench.sh @@ -225,6 +225,7 @@ install_dependencies() { case "${os_type,,}" in debian|ubuntu) export DEBIAN_FRONTEND=noninteractive # 禁用交互 + echo "iperf3 iperf3/autostart boolean false" | sudo debconf-set-selections install_cmd="apt-get install -yq" sudo apt-get update -yq ;; diff --git a/Nlbench.sh b/Nlbench.sh index 9782eb7..87a9b4d 100644 --- a/Nlbench.sh +++ b/Nlbench.sh @@ -224,7 +224,8 @@ install_dependencies() { case "${os_type,,}" in debian|ubuntu) - export DEBIAN_FRONTEND=noninteractive # 禁用交互 + export DEBIAN_FRONTEND=noninteractive + echo "iperf3 iperf3/autostart boolean false" | sudo debconf-set-selections install_cmd="apt-get install -yq" sudo apt-get update -yq ;;