j0h*_*j0h 2 apt package-management
我正在从 Apache2 切换到 nginx。所以我发出了这个命令:
sudo apt-get purge apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
389-ds-base 389-ds-base-libs ldap-utils libadminutil-data libadminutil0
libapache2-mod-nss libds-admin-serv0 libmozilla-ldap-perl libnetaddr-ip-perl
libnss3-tools libsocket-getaddrinfo-perl libsvrcore0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
php5-cgi
Suggested packages:
php-pear
The following packages will be REMOVED:
389-admin* apache2* libapache2-mod-php5*
The following NEW packages will be installed:
php5-cgi
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
Need to get 4277 kB of archives.
After this operation, 6360 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Run Code Online (Sandbox Code Playgroud)
为什么 apt 试图安装php-cgi?我试图清除apache2,并且将净化php后不久,安装pph-fpm用nginx。我很困惑为什么apt清除操作试图安装一个包。
Debian 8,内核 3.16。
请注意,libapache2-mod-php5您的清除正在删除它。这是因为它是一个 Apache 模块/插件,没有 Apache 本身就无法安装。
但是您的系统上可能安装了一些其他依赖于 PHP 的软件包。这不是从您提供的信息中显示出来的。如果libapache2-mod-php5被简单地移除,那个包裹(或那些包裹)将被留在困境中。Apt 正在通过安装pgp5-cgi来解决问题。依赖于 PHP 的包和php5-cgi以前一样满意,libapache2-mod-php5现在可以满足您删除 Apache 的请求。
| 归档时间: |
|
| 查看次数: |
461 次 |
| 最近记录: |