此前ufans.top介绍在服务器中编译qbittorrent的过程:https://www.ufans.top/index.php/archives/37/
现在 qBittorrent 已经升级到5.0.3版本,界面更加现代化。5.0.3版本最大的一个改进是修复可能存在的崩溃错误。
由于 libtorrent 警报是异步处理的,因此在 libtorrent 中重新加载 torrent 后,可能会出现过时的“状态更新”事件。在新版本中,它只是丢弃了此类事件。而且,此更改修复了更改多个 torrent 位置时可能出现的应用程序崩溃问题。
对于 Web UI,qBittorrent 修复了登录后重新加载页面的问题,以及无法删除 URL 中带有 | 的跟踪器的问题。
qBittorrent 5.0.3 中的其他更改包括:
- 修复不正确的 SQL 列定义
- RSS:不要将重复的剧集添加到之前匹配的剧集
- RSS:解析 RSS 源时使用缓存的当前时间
- 避免对 libtorrent 的公告条目进行冗余请求
- 更新意大利语翻译。
更多参考其官网!
桌面版Ubuntu系统安装 qBittorrent 5.0.3
该软件网站提供源 tarball,以及可通过以下链接下载的 Linux、Windows 和 macOS 软件包:
下载 qBittorrent
对于 Linux,它是一个无需安装的便携式 AppImage。只需从文件属性对话框中添加可执行权限,然后用户就可以单击运行它来启动 torrent 客户端。但是,Ubuntu 22.04 及更高版本需要通过安装 libfuse2 包来启用 AppImage 支持。
作为选择,qBittorrent 5.0.3 也在其官方 PPA 中适用于 Ubuntu 24.10。但是 PPA 不再支持 24.04 及更早版本,因为它们不符合最低 Qt6 要求。
要添加 PPA 并在 Ubuntu 中安装 qBittorrent,请使用命令:
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
sudo apt update
sudo apt install qbittorrent qbittorrent-nox
其它安装方法就不建议了。
卸载 qBittorrent
取决于您安装的软件包,通过在终端 (Ctrl+Alt+T) 中运行命令来卸载 PPA 软件包:
sudo apt remove --autoremove qbittorrent qbittorrent-nox
然后,您也可以通过命令从系统中删除 PPA 存储库:
sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-stable
结束。
服务器Ubuntu或Debian安装qBittorrent最新版5.0
1)可以使用以下命令安装qbittorrent-nox:
apt update && apt upgrade -y && apt autoremove -y
echo 'deb http://download.opensuse.org/repositories/home:/nikoneko:/test/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:nikoneko:test.list
curl -fsSL https://download.opensuse.org/repositories/home:nikoneko:test/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_nikoneko_test.gpg > /dev/null
apt update && apt install qbittorrent-nox -y
某些版本vps可以直接安装:apt update && apt install qbittorrent-nox -y
2)创建一个systemd服务文件。你可以创建一个新的服务文件,例如/etc/systemd/system/qbittorrent-nox.service:
sudo nano /etc/systemd/system/qbittorrent-nox.service
3)在编辑器中,添加以下内容:
[Unit]
Description=qBittorrent Daemon
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/qbittorrent-nox --webui-port=8080
ExecStop=/usr/bin/killall qbittorrent-nox
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.target
登陆成功后再修改端口和用户名。
4)重新加载systemd管理器配置,使其识别新的服务文件:
sudo systemctl daemon-reload
5)启用服务,使其在开机时自动启动:
sudo systemctl enable qbittorrent-nox
6)手动启动服务,测试是否正常工作:
sudo systemctl start qbittorrent-nox
7)检查服务状态,确认它正在运行:
sudo systemctl status qbittorrent-nox
以上步骤设置了一个名为qbittorrent-nox的systemd服务,在开机时将自动启动qBittorrent-noX。记得根据自己的需求调整ExecStart中的参数。
8)qBittorrent反代设置网址:
首先,在tool>options>webui中,将监听的IP地址从*改成127.0.0.1,然后执行重启命令systemctl daemon-reload和systemctl restart qbittorrent-nox以生效。这样只有服务器本地才能访问,其他都不行。
再设置网址,反代所设置的端口即可。