你说的 “fetchdebian” 大概率是指下面几种情况之一,我分别说一下解决办法:
fetchmail(常见拼写混淆)不少人会打成 fetchdebian,其实是 fetchmail(邮件收取工具)。
sudo apt update
sudo apt install fetchmail
默认配置在:
~/.fetchmailrc
/etc/fetchmailrc
可以从备份恢复,或重新手动创建。
apt / dpkg 相关工具(以为是 fetchdebian)如果你其实是 把 apt、dpkg 或某个系统包管理组件删了,那就比较严重。
用 Live CD / U 盘启动,chroot 修复:
sudo mount /dev/sdXn /mnt
sudo chroot /mnt
apt update
apt install --reinstall apt dpkg
直接:
sudo apt install --reinstall apt
比如你之前自己写的:
/usr/local/bin/fetchdebian
那就:
history | grep fetchdebian如果你愿意,可以把 你当初是怎么用 fetchdebian 的(命令 / 用途)发出来,我能直接帮你还原。
history | grep fetchdebian
dpkg -l | grep fetch
which fetchdebian
你可以告诉我:
apt remove / rm / dpkg)?我可以直接按你的实际情况给修复步骤。