进阶 hestiacp.com 2026-11-15 08:32:00 · 18 阅读

第4章 Beta 与 Release Candidate 测试

Beta 和 Release Candidate 测试

如果有 beta 或 release candidate 版本发布,我们会通过 Discord 服务器或论坛公告。

最近几个月,发布次要和主要更新时出现的问题越来越多。为了避免这种情况,我们决定搭建一个 beta apt 服务器,以便更频繁地推送更新,让测试规模不再局限于区区四五个用户。

在已有安装上启用 beta 软件源

危险:Beta 和 release candidate 版本可能仍存在 bug,甚至可能搞坏你的服务器。我们无法保证问题会立即修复!请在生产环境或包含重要数据的服务器上测试时务必小心!

以 root 身份运行以下命令:

```bash # 收集系统信息 ARCH=$(arch) case $(arch) in x86_64) ARCH="amd64" ;; aarch64) ARCH="arm64" ;; esac codename="$(lsb_release -s -c)" apt="/etc/apt/sources.list.d"

# 将 beta 软件源添加到 hestia.list sed -i 's/^/#/' $apt/hestia.list echo "deb [arch=$ARCH signed-by=/usr/share/keyrings/hestia-beta-keyring.gpg] https://beta-apt.hestiacp.com/ $codename main" >> $apt/hestia.list curl -s "https://beta-apt.hestiacp.com/pubkey.gpg" | gpg --dearmor | tee /usr/share/keyrings/hestia-beta-keyring.gpg > /dev/null 2>&1

# 更新到 beta 版本 apt update && apt upgrade ```

从 beta 软件源全新安装

如果你想通过 beta 服务器全新安装 Hestia:

```bash # Debian wget https://beta-apt.hestiacp.com/hst-install-debian.sh # 或 Ubuntu wget https://beta-apt.hestiacp.com/hst-install-ubuntu.sh ```

然后执行 `bash hst-install-debian.sh` 或 `bash hst-install-ubuntu.sh` 进行安装。

禁用 beta 软件源

编辑 `/etc/apt/sources.list.d/hestia.list`,去掉 apt.hestiacp.com 前面的 `#`,并在 beta-apt.hestiacp.com 前面加上 `#`。

完成后运行 `apt update && apt upgrade`,即可回退到正式版本。

报告 bug

如果遇到 bug,请提交 issue 或 Pull Request,也可以在论坛或 Discord 服务器上反馈。

评论 (0)