在 Debian 中 并没有一个官方叫 “fetchdebian” 的软件包,所以“卸载 fetchdebian”通常有以下几种可能情况。你可以对照看看是哪一种:
如果你之前是手动下载 / 编译 / 脚本安装的 fetchdebian:
which fetchdebian
或
whereis fetchdebian
sudo rm -f /usr/local/bin/fetchdebian
sudo rm -f /usr/bin/fetchdebian
如果有 systemd 服务:
systemctl list-units --all | grep fetchdebian
sudo systemctl disable fetchdebian
sudo rm -f /etc/systemd/system/fetchdebian.service
sudo systemctl daemon-reload
先确认:
apt list --installed | grep fetchdebian
如果存在:
sudo apt remove --purge fetchdebian
sudo apt autoremove
常见的是:
~/fetch-debian.sh
/usr/local/sbin/fetch-debian
直接删除即可:
rm -f ~/fetch-debian.sh
sudo rm -f /usr/local/sbin/fetch-debian
可以告诉我:
fetchdebian 时的完整命令我可以一步一步帮你清干净 ✅