在 Debian 上装 FileZilla 失败,先别急,按下面一步步排查基本都能解决。
常见方式有三种:
sudo apt update
sudo apt install filezilla
如果这一步失败,看报错信息最关键。
现象:找不到包 / 安装失败
解决:
sudo apt update
sudo apt upgrade
再试:
sudo apt install filezilla
现象:E: Unable to locate package filezilla
检查:
cat /etc/apt/sources.list
Debian 一般要有:
deb http://deb.debian.org/debian bookworm main
如果是旧版本,把 bookworm 换成你的版本(buster / bullseye)。
修复后:
sudo apt update
现象:dependency problems、unmet dependencies
解决:
sudo apt -f install
sudo apt install filezilla
或者:
sudo apt --fix-broken install
dpkg --print-architecture
FileZilla 一般是 amd64 或 i386
⚠️ FileZilla 是 GUI 程序
如果你只有命令行:
sftplftprsync示例:
sftp user@host
sudo apt install lftp
sudo apt install task-xfce-desktop
你可以直接把 完整报错复制给我,例如:
E: Unable to locate package filezilla
或
The following packages have unmet dependencies:
我可以按你的系统版本一步步帮你修。
如果你愿意,告诉我:
cat /etc/os-release)我可以直接给你“照抄可用”的命令。