当前位置:首页>>技术文章>>内容详情

BT宝塔无法安装,panel.zip下载成功,报错下载失败!

2026年09月09日
Tags:BT宝塔安装报错

最小化 Debian12 默认不带unzip解压工具;脚本尝试 apt 安装 unzip 失败,没有解压程序,无法解压 panel.zip,脚本就输出误导提示。

完整修复流程(root 执行,一步一步复制)

1. 清理旧垃圾

rm -rf /www

rm -f panel.zip install_panel.sh install*.sh

2. 确认 sources.list 完全正确(彻底干掉 cdrom 源)

nano /etc/apt/sources.list

全部替换为下面内容:

deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware

deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware

deb http://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware

3. 更新 apt 缓存,手动预先安装依赖(关键!先装好 unzip、curl)

apt clean

apt update

apt install -y curl wget unzip ca-certificates

这一步不能报错!如果这里报Unable to locate package说明源还是不对。

验证 unzip 可用:

which unzip

正常输出/usr/bin/unzip

4. 修复 dpkg 残留(之前安装中断)

dpkg --configure -a

apt -f install -y

上一条信息:Debian 12系统中允许Root远程SSH登录解决方法
下一条信息:没有了