Websoft9 / websoft9

Applications self-hosting platform for running open source, web-based linux Panel of lite PaaS
https://www.websoft9.com
Other
2.17k stars 334 forks source link

cockpit version is old at some ubuntu22.04 distribution #523

Closed yuanssssss closed 1 month ago

yuanssssss commented 2 months ago

Describe the bug

When install the websoft9 platform on tencent cloud, the bug occured, it Left ui menu items more than others, it abnormal.

屏幕截图 2024-08-13 101139

Deployment method

System Environment

OS

Cloud PlatForm

zhaojing1987 commented 2 months ago

腾讯云没有默认没有加cockpit的安装源: jammy-backports 软件源 解决:安装Websoft9之前,添加软件源(Ubuntu22) 文件:/etc/apt/sources.list 末尾加: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse

chendelin1982 commented 2 months ago
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse"
chendelin1982 commented 2 months ago

apt install -t ${VERSION_CODENAME}-backports cockpit

Both for install and update

chendelin1982 commented 2 months ago

need user variable for OS distribution

qiaofeng1227 commented 1 month ago
    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
chendelin1982 commented 1 month ago

fixed