温馨提示×

如何卸载debian的fetchdebian

小樊
33
2026-09-20 19:29:22
栏目: 智能运维

在 Debian 中 并没有一个官方叫 “fetchdebian” 的软件包,所以“卸载 fetchdebian”通常有以下几种可能情况。你可以对照看看是哪一种:


1️⃣ 如果是一个自己安装的可执行程序(非 apt 包)

如果你之前是手动下载 / 编译 / 脚本安装的 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

2️⃣ 如果是一个 apt 安装的包(可能性较低)

先确认:

apt list --installed | grep fetchdebian

如果存在:

sudo apt remove --purge fetchdebian
sudo apt autoremove

3️⃣ 如果是某个脚本 / 工具的一部分(比如 fetch-debian.sh)

常见的是:

~/fetch-debian.sh
/usr/local/sbin/fetch-debian

直接删除即可:

rm -f ~/fetch-debian.sh
sudo rm -f /usr/local/sbin/fetch-debian

4️⃣ 如果你其实指的是 fetchmail / debootstrap / apt-fast 之类

可以告诉我:

  • 你是怎么安装的(apt?git?脚本?)
  • 你运行 fetchdebian 时的完整命令

我可以一步一步帮你清干净 ✅

0 踩