温馨提示×

怎样卸载debian的fetchdebian

小樊
39
2026-10-08 10:11:33
栏目: 智能运维

“fetchdebian” 并不是 Debian 官方仓库里常见的一个标准软件包名,所以先要确认它到底是什么形式安装的。下面按最常见情况一步步来。


一、先确认它是不是 apt 安装的包

在终端执行:

dpkg -l | grep -i fetchdebian

或:

apt list --installed | grep -i fetchdebian

情况 1:能查到(说明是 deb 包)

直接卸载:

sudo apt remove --purge fetchdebian
sudo apt autoremove

二、如果是用 pip 安装的(Python 工具)

有些“fetchdebian”可能是 Python 脚本:

pip show fetchdebian

或:

pip3 show fetchdebian

卸载:

pip3 uninstall fetchdebian

三、如果是手动下载的脚本 / 二进制

常见于:

  • ~/fetchdebian
  • /usr/local/bin/fetchdebian

查找:

which fetchdebian

或:

find / -name fetchdebian 2>/dev/null

然后手动删除,例如:

sudo rm /usr/local/bin/fetchdebian

四、如果是 snap 安装的

snap list | grep fetchdebian

卸载:

sudo snap remove fetchdebian

五、如果不确定来源(推荐做法)

你可以把下面命令的输出发给我:

which fetchdebian
dpkg -l | grep -i fetch
apt list --installed | grep -i fetch

我可以帮你精确定位并安全卸载。


如果你说的其实是 fetch(而不是 fetchdebian),或者是某个具体工具(比如 fetch-debian、apt-fetch 等),也告诉我原名,我会按准确包名来处理。

0 踩