需要在 Ubuntu 中卸载 apache2

需要在 Ubuntu 中卸载 apache2

命令 :-

sudo apt-get remove apache2.2-common

结果 :-

The following packages have unmet dependencies:
 apache2 : Depends: apache2.2-common (= 2.2.22-1ubuntu1.8) but it is not going to be installed
 apache2-mpm-prefork : Depends: apache2.2-common (= 2.2.22-1ubuntu1.8) but it is not going to be installed
 libapache2-mod-php5 : Depends: apache2-api-20120211
                       Depends: apache2 (>= 2.4)

答案1

您可以通过输入以下内容来卸载它:

sudo apt-get purge apache2*

或者 :

sudo apt-get remove apache2

答案2

此命令将删除所有名称以 apache 开头的软件包,希望对您有所帮助

sudo apt-get remove "^apache.*",

相关内容