mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-02 17:08:38 +08:00
cockpit
This commit is contained in:
parent
6a4feeb289
commit
864d00ff41
@ -334,12 +334,13 @@ Install_Cockpit(){
|
|||||||
elif [ $apt_status -eq 0 ]; then
|
elif [ $apt_status -eq 0 ]; then
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
sudo dpkg --configure -a
|
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 update -y >/dev/null
|
||||||
apt-get --fix-broken install
|
apt-get --fix-broken install
|
||||||
for pkg in $cockpit_packages
|
for pkg in $cockpit_packages
|
||||||
do
|
do
|
||||||
echo "Installing $pkg"
|
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
|
done
|
||||||
else
|
else
|
||||||
echo "Neither apt,dnf nor yum found. Please install one of them and try again."
|
echo "Neither apt,dnf nor yum found. Please install one of them and try again."
|
||||||
|
Loading…
Reference in New Issue
Block a user