在 Debian 里并没有一个叫 fetchdebian 的“官方标准包”被广泛认知,它通常是:
下面按不同情况给你对应的卸载方法。
apt 安装的包先确认是否存在该包:
dpkg -l | grep -i fetchdebian
如果存在,比如确实叫 fetchdebian,卸载:
sudo apt remove fetchdebian
如果想连配置文件一起删:
sudo apt purge fetchdebian
然后清理依赖:
sudo apt autoremove
常见于:
/usr/local/bin/fetchdebian
~/fetchdebian
/opt/fetchdebian
查找位置:
which fetchdebian
或:
sudo find / -name fetchdebian 2>/dev/null
直接删除文件即可,例如:
sudo rm /usr/local/bin/fetchdebian
如果你之前加过类似:
/etc/apt/sources.list.d/fetchdebian.list
还需要:
sudo rm /etc/apt/sources.list.d/fetchdebian.list
sudo apt update
fetchmail(邮件抓取)
sudo apt purge fetchmail
debootstrap(用于构建 Debian 系统)
sudo apt purge debootstrap
which fetchdebian
dpkg -l | grep fetchdebian
都没有输出即表示已卸载。
如果你能贴一下:
dpkg -l | grep -i fetch
或你当初是怎么安装的(apt / git / 脚本),我可以给你更精确的命令。