Debian / Ubuntu
从 Dae Universe 软件源安装 honk。适用于 Debian、Ubuntu 及其他使用 APT 的发行版。
已配置 sudo 的普通用户选择 sudo 标签;已进入 root shell 时选择 root 标签。
以下步骤需要 systemd 和 Linux 6.12 或更高版本。用 uname -r 查看内核版本,其余要求见内核要求。
1. 安装 curl
sh
sudo apt update
sudo apt install curlsh
apt update
apt install curl2. 添加软件源
直接下载源配置文件,它是纯文本的 deb822 格式,APT 1.1 起即可读取。
sh
sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.sources https://daeuniverse.pages.dev/daeuniverse.sourcessh
curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.sources https://daeuniverse.pages.dev/daeuniverse.sources3. 导入 GPG 公钥
sh
sudo curl -fsSL -o /usr/share/keyrings/daeuniverse-archive-goose.gpg https://daeuniverse.pages.dev/daeuniverse-archive-goose.gpgsh
curl -fsSL -o /usr/share/keyrings/daeuniverse-archive-goose.gpg https://daeuniverse.pages.dev/daeuniverse-archive-goose.gpg4. 安装 honk
sh
sudo apt update
sudo apt install honksh
apt update
apt install honk继续阅读首次运行。
升级
升级软件包后,重启 honk 并检查状态。软件包的安装脚本只重新加载 systemd 服务定义,不会重启正在运行的进程。
sh
sudo apt update && sudo apt install --only-upgrade honk
sudo systemctl restart honk.service
sudo systemctl status honk.service --no-pagersh
apt update && apt install --only-upgrade honk
systemctl restart honk.service
systemctl status honk.service --no-pager卸载
sh
sudo systemctl disable --now honk.service
sudo apt remove honksh
systemctl disable --now honk.service
apt remove honk主机上的配置目录 /etc/honk 和运行时状态目录 /var/lib/honk 会保留。如果修改过 data_dir,该目录也会保留。
