Closed yuanssssss closed 1 month ago
腾讯云没有默认没有加cockpit的安装源: jammy-backports 软件源 解决:安装Websoft9之前,添加软件源(Ubuntu22) 文件:/etc/apt/sources.list 末尾加: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse"
apt install -t ${VERSION_CODENAME}-backports cockpit
Both for install and update
need user variable for OS distribution
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 ${VERSION_CODENAME}-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 -t ${VERSION_CODENAME}-backports -y "$pkg" > /dev/null || echo "$pkg failed to install"
done
else
fixed
Describe the bug
When install the websoft9 platform on tencent cloud, the bug occured, it Left ui menu items more than others, it abnormal.
Deployment method
System Environment
OS
Cloud PlatForm