[php-maint] Bug#496775: Bug#496775: dist-upgrading php5 will attempt to remove apache2-mpm-worker

Bjørn Mork bjorn at mork.no
Tue Aug 25 16:19:39 UTC 2009


Ondřej Surý <ondrej at debian.org> writes:

> Hi Bjørn,
>
> that's strange and it should not happen. Does it still happen? This
> could also be caused by some other package explicitly requesting
> libapache2-mod-php5 or some stranginess when installing/upgrading php5
> meta-package.

I haven't noticed this in a long time, but that may be just because I'm
now aware of the possibility.  It was mostly the surprise that made me
report it as a bug.

But I just tried to recreate the bug in a virtual maching running sid,
by installing apache from sid and php5 from lenny and then try to upgrade:

kvm-sid:~# apt-get install apache2-mpm-worker
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libbrlapi0.5 libadns1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom
Recommended packages:
  ssl-cert
The following NEW packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 2100kB of archives.
After this operation, 7057kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.se.debian.org sid/main libapr1 1.3.8-1 [123kB]
Get:2 http://ftp.se.debian.org sid/main libaprutil1 1.3.9+dfsg-1+b1 [90.2kB]
Get:3 http://ftp.se.debian.org sid/main libaprutil1-dbd-sqlite3 1.3.9+dfsg-1+b1 [27.7kB]
Get:4 http://ftp.se.debian.org sid/main libaprutil1-ldap 1.3.9+dfsg-1+b1 [25.5kB]
Get:5 http://ftp.se.debian.org sid/main apache2.2-bin 2.2.12-1 [1387kB]
Get:6 http://ftp.se.debian.org sid/main apache2-utils 2.2.12-1 [155kB]
Get:7 http://ftp.se.debian.org sid/main apache2.2-common 2.2.12-1 [289kB]
Get:8 http://ftp.se.debian.org sid/main apache2-mpm-worker 2.2.12-1 [2262B]
Fetched 2100kB in 5s (387kB/s)       
Selecting previously deselected package libapr1.
(Reading database ... 33535 files and directories currently installed.)
Unpacking libapr1 (from .../libapr1_1.3.8-1_amd64.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-1+b1_amd64.deb) ...
Selecting previously deselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-1+b1_amd64.deb) ...
Selecting previously deselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.9+dfsg-1+b1_amd64.deb) ...
Selecting previously deselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.12-1_amd64.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.12-1_amd64.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.12-1_all.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.12-1_all.deb) ...
Processing triggers for man-db ...
Setting up libapr1 (1.3.8-1) ...
Setting up libaprutil1 (1.3.9+dfsg-1+b1) ...
Setting up libaprutil1-dbd-sqlite3 (1.3.9+dfsg-1+b1) ...
Setting up libaprutil1-ldap (1.3.9+dfsg-1+b1) ...
Setting up apache2.2-bin (2.2.12-1) ...
Setting up apache2-utils (2.2.12-1) ...
Setting up apache2.2-common (2.2.12-1) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Setting up apache2-mpm-worker (2.2.12-1) ...
Starting web server: apache2apache2: apr_sockaddr_info_get() failed for kvm-sid
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
.
kvm-sid:~# apt-get install -t stable php5-cgi php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libbrlapi0.5 libadns1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libkrb53 php5-common
Suggested packages:
  krb5-doc krb5-user php-pear
The following NEW packages will be installed:
  libkrb53 php5 php5-cgi php5-common
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 5972kB of archives.
After this operation, 13.5MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://security.debian.org lenny/updates/main libkrb53 1.6.dfsg.4~beta1-5lenny1 [519kB]
Get:2 http://security.debian.org lenny/updates/main php5-common 5.2.6.dfsg.1-1+lenny3 [368kB]
Get:3 http://security.debian.org lenny/updates/main php5-cgi 5.2.6.dfsg.1-1+lenny3 [5083kB]
Get:4 http://security.debian.org lenny/updates/main php5 5.2.6.dfsg.1-1+lenny3 [1078B]
Fetched 5972kB in 14s (426kB/s)                                                
Selecting previously deselected package libkrb53.
(Reading database ... 34101 files and directories currently installed.)
Unpacking libkrb53 (from .../libkrb53_1.6.dfsg.4~beta1-5lenny1_amd64.deb) ...
Replaced by files in installed package libkrb5-3 ...
Replaced by files in installed package libkrb5support0 ...
Replaced by files in installed package libk5crypto3 ...
Replaced by files in installed package libgssapi-krb5-2 ...
Selecting previously deselected package php5-common.
Unpacking php5-common (from .../php5-common_5.2.6.dfsg.1-1+lenny3_amd64.deb) ...
Selecting previously deselected package php5-cgi.
Unpacking php5-cgi (from .../php5-cgi_5.2.6.dfsg.1-1+lenny3_amd64.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../php5_5.2.6.dfsg.1-1+lenny3_all.deb) ...
Processing triggers for man-db ...
Setting up libkrb53 (1.6.dfsg.4~beta1-5lenny1) ...
Setting up php5-common (5.2.6.dfsg.1-1+lenny3) ...
Setting up php5-cgi (5.2.6.dfsg.1-1+lenny3) ...

Creating config file /etc/php5/cgi/php.ini with new version
update-alternatives: using /usr/bin/php5-cgi to provide /usr/bin/php-cgi (php-cgi) in auto mode.
update-alternatives: using /usr/lib/cgi-bin/php5 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode.
Setting up php5 (5.2.6.dfsg.1-1+lenny3) ...



And sure enough, the behaviour is still the same:


kvm-sid:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5
The following packages will be upgraded:
  php5 php5-cgi php5-common
3 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 8126kB of archives.
After this operation, 6279kB of additional disk space will be used.
Do you want to continue [Y/n]? 



But dropping the unecessary "dist-" eliminates the problem:


kvm-sid:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  php5 php5-cgi php5-common
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5507kB of archives.
After this operation, 16.4kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.se.debian.org sid/main php5-cgi 5.2.10.dfsg.1-2 [5084kB]
Get:2 http://ftp.se.debian.org sid/main php5-common 5.2.10.dfsg.1-2 [422kB]    
Get:3 http://ftp.se.debian.org sid/main php5 5.2.10.dfsg.1-2 [1078B]           
Fetched 5507kB in 13s (415kB/s)                                                
(Reading database ... 34156 files and directories currently installed.)
Preparing to replace php5-cgi 5.2.6.dfsg.1-1+lenny3 (using .../php5-cgi_5.2.10.dfsg.1-2_amd64.deb) ...
Unpacking replacement php5-cgi ...
Preparing to replace php5-common 5.2.6.dfsg.1-1+lenny3 (using .../php5-common_5.2.10.dfsg.1-2_amd64.deb) ...
Unpacking replacement php5-common ...
Preparing to replace php5 5.2.6.dfsg.1-1+lenny3 (using .../php5_5.2.10.dfsg.1-2_all.deb) ...
Unpacking replacement php5 ...
Processing triggers for man-db ...
Setting up php5-common (5.2.10.dfsg.1-2) ...
Setting up php5-cgi (5.2.10.dfsg.1-2) ...
Replacing config file /etc/php5/cgi/php.ini with new version
Setting up php5 (5.2.10.dfsg.1-2) ...


Not sure if this really is a bug, or if it is to be expected.  Working
around it is certainly easy.  You just need to be aware of the
possibility. 



Bjørn





More information about the pkg-php-maint mailing list