Aptitude 自动安装某些软件包

Aptitude 自动安装某些软件包

我用sudo apt-get remove --purge nagios3-core nagios3-common和删除了 Nagios,sudo apt-get autoremove但是当我使用 Aptitude 安装其他东西时,它会自动再次安装 Nagios。

我该如何防止这种情况发生?

两个命令的输出:

root@landerghekiere:~/airtime-2.2.0/install_full/ubuntu# apt-get remove --purge nagios3-core nagios3-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nagios3-common is not installed, so not removed
Package nagios3-core is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@landerghekiere:~/airtime-2.2.0/install_full/ubuntu# apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@landerghekiere:~/airtime-2.2.0/install_full/ubuntu#

答案1

你尝试过这个吗?

sudo apt-get purge nagios-agent
sudo apt-get autoremove

这将删除 Nagios 及其配置文件,然后它将删除卸载 Nagios 后不再需要的软件包,例如它的依赖项。

如果问题仍然存在,请尝试将这些命令的输出粘贴到原始问题中。请记住选择输出并按Ctrl+K将其标记为代码。

相关内容