我是通过键入apache2安装的
sudo apt-get install apache2现在我正在尝试通过以下命令卸载apache2
sudo apt-get autoremove apache2我的apache2还在运行。当我停止打字时
sudo service apache2 stop它停止了,我也可以开始输入
sudo service apache2 start那么自动删除有什么意义呢?以及如何去除apache2?
发布于 2013-10-08 08:45:08
尝试使用以下命令卸载和删除配置文件。
您需要在卸载之前停止apache服务。
sudo apt-get purge apache2*如果服务正在运行,但没有安装(根据apt),请停止服务并重新安装,然后发出上面的命令。
发布于 2013-10-08 08:40:00
您需要的是remove或purge,而不是autoremove,所以:
sudo apt-get remove apache2purge将尝试删除配置和已安装的文件(如果您计划重新安装的话,可能会很危险)。
autoremove只是为了删除自动安装的,但现在不需要依赖项。因此,在您删除Apache之后,sudo apt-get autoremove可能会删除一些只有Apache需要的东西。
https://askubuntu.com/questions/355251
复制相似问题