From 864d00ff41b340dd36f1b9c4b6b904e65c9fd942 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 22 Aug 2024 17:09:10 +0800 Subject: [PATCH] cockpit --- install/install_cockpit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/install_cockpit.sh b/install/install_cockpit.sh index 0c610003..e799da52 100644 --- a/install/install_cockpit.sh +++ b/install/install_cockpit.sh @@ -334,12 +334,13 @@ Install_Cockpit(){ elif [ $apt_status -eq 0 ]; then export DEBIAN_FRONTEND=noninteractive sudo dpkg --configure -a + sudo DEBIAN_FRONTEND=noninteractive add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse" apt-get update -y >/dev/null apt-get --fix-broken install for pkg in $cockpit_packages do echo "Installing $pkg" - sudo apt-get install -u -y "$pkg" > /dev/null || echo "$pkg failed to install" + sudo apt-get install -t jammy-backports -y "$pkg" > /dev/null || echo "$pkg failed to install" done else echo "Neither apt,dnf nor yum found. Please install one of them and try again."