Bug#605394: pulls in uneeded/unwanted php package, breaking apache
Package: apt
Version: 0.8.8
Severity: serious
Hi,
quantz.d.o is on squeeze, and php was updated in testing. Now apt wants
to pull in libapache2-mod-php5 and mess up our apache while it's at it:
| weasel@quantz:~$ dpkg --get-selections | grep apa
| apache2 install
| apache2-mpm-worker install
| apache2-utils install
| apache2.2-bin install
| apache2.2-common install
| libapache2-mod-fcgid install
| weasel@quantz:~$ dpkg --get-selections | grep php
| php5 install
| php5-cgi install
| php5-cli install
| php5-common install
| php5-ldap install
| php5-pgsql install
| php5-suhosin install
| weasel@quantz:~$ dpkg -l 'php*'
| Desired=Unknown/Install/Remove/Purge/Hold
| | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
| |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
| ||/ Name Version Description
| +++-==============-==============-============================================
| un php-pear <none> (no description available)
| ii php5 5.3.3-3 server-side, HTML-embedded scripting languag
| ii php5-cgi 5.3.3-3 server-side, HTML-embedded scripting languag
| ii php5-cli 5.3.3-3 command-line interpreter for the php5 script
| ii php5-common 5.3.3-3 Common files for packages built from the php
| un php5-json <none> (no description available)
| ii php5-ldap 5.3.3-3 LDAP module for php5
| un php5-mhash <none> (no description available)
| ii php5-pgsql 5.3.3-3 PostgreSQL module for php5
| ii php5-suhosin 0.9.32.1-1 advanced protection module for php5
| un phpapi-2009062 <none> (no description available)
| weasel@quantz:~$ dpkg -l '*apache*'
| Desired=Unknown/Install/Remove/Purge/Hold
| | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
| |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
| ||/ Name Version Description
| +++-==============-==============-============================================
| un apache <none> (no description available)
| un apache-common <none> (no description available)
| un apache-utils <none> (no description available)
| ii apache2 2.2.16-4 Apache HTTP Server metapackage
| un apache2-common <none> (no description available)
| un apache2-doc <none> (no description available)
| un apache2-mpm <none> (no description available)
| un apache2-mpm-ev <none> (no description available)
| un apache2-mpm-it <none> (no description available)
| un apache2-mpm-pe <none> (no description available)
| un apache2-mpm-pr <none> (no description available)
| un apache2-mpm-th <none> (no description available)
| ii apache2-mpm-wo 2.2.16-4 Apache HTTP Server - high speed threaded mod
| un apache2-suexec <none> (no description available)
| un apache2-suexec <none> (no description available)
| ii apache2-utils 2.2.16-4 utility programs for webservers
| ii apache2.2-bin 2.2.16-4 Apache HTTP Server common binary files
| ii apache2.2-comm 2.2.16-4 Apache HTTP Server common files
| un gforge-web-apa <none> (no description available)
| un libapache-mod- <none> (no description available)
| un libapache-mod- <none> (no description available)
| un libapache2-mod <none> (no description available)
| ii libapache2-mod 1:2.3.6-1 an alternative module compat with mod_fastcg
| un libapache2-mod <none> (no description available)
| un libapache2-mod <none> (no description available)
| un libapache2-mod <none> (no description available)
| un libapache2-mod <none> (no description available)
| un libapache2-mod <none> (no description available)
apt-get run:
| weasel@quantz:~$ sudo 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 have been kept back:
| puppet puppet-common
| The following packages will be upgraded:
| dash linux-base linux-image-2.6.32-5-amd64 php5 php5-cgi php5-cli
| php5-common php5-ldap php5-pgsql
| 9 upgraded, 2 newly installed, 1 to remove and 2 not upgraded.
| Need to get 41.1 MB/41.4 MB of archives.
| After this operation, 8610 kB of additional disk space will be used.
| Do you want to continue [Y/n]? ^C
This might be ok in testing or unstable, but I fear we will see the same
behaviour once squeeze is stable and we have to update php via
-security.
aptitude appears to be smarter (but has other warts):
| weasel@quantz:~$ sudo aptitude dist-upgrade
| [sudo] password for weasel on quantz:
| The following packages will be upgraded:
| dash linux-base linux-image-2.6.32-5-amd64 php5 php5-cgi php5-cli
| php5-common php5-ldap php5-pgsql puppet puppet-common
| The following packages are RECOMMENDED but will NOT be installed:
| firmware-linux-free
| 11 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
| Need to get 39.0 MB/39.3 MB of archives. After unpacking 283 kB will be used.
| Do you want to continue? [Y/n/?] ^C
Run with debug stuff:
| weasel@quantz:~$ sudo apt-get dist-upgrade -o Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| Calculating upgrade... MarkInstall linux-image-2.6.32-5-amd64 [ amd64 ] < 2.6.32-27 -> 2.6.32-28 > ( kernel ) FU=0
| MarkInstall linux-base [ amd64 ] < 2.6.32-27 -> 2.6.32-28 > ( kernel ) FU=0
| Hold prevents MarkInstall of puppet [ amd64 ] < 0.25.5-1 -> 2.6.2-1 > ( admin ) FU=0
| MarkInstall php5 [ amd64 ] < 5.3.3-3 -> 5.3.3-4 > ( php ) FU=0
| MarkInstall libapache2-mod-php5 [ amd64 ] < none -> 5.3.3-4 > ( httpd ) FU=0
| MarkInstall apache2-mpm-prefork [ amd64 ] < none -> 2.2.16-4 > ( httpd ) FU=0
| MarkDelete apache2-mpm-worker [ amd64 ] < 2.2.16-4 > ( httpd ) FU=0
| MarkInstall php5-common [ amd64 ] < 5.3.3-3 -> 5.3.3-4 > ( php ) FU=0
| MarkKeep apache2-mpm-worker [ amd64 ] < 2.2.16-4 > ( httpd ) FU=0
| MarkInstall dash [ amd64 ] < 0.5.5.1-7.2 -> 0.5.5.1-7.3 > ( shells ) FU=0
| MarkInstall php5-pgsql [ amd64 ] < 5.3.3-3 -> 5.3.3-4 > ( php ) FU=0
| MarkInstall php5-ldap [ amd64 ] < 5.3.3-3 -> 5.3.3-4 > ( php ) FU=0
| Hold prevents MarkInstall of puppet-common [ amd64 ] < 0.25.5-1 -> 2.6.2-1 > ( admin ) FU=0
| MarkInstall php5-cgi [ amd64 ] < 5.3.3-3 -> 5.3.3-4 > ( php ) FU=0
| MarkInstall php5-cli [ amd64 ] < 5.3.3-3 -> 5.3.3-4 > ( php ) FU=0
| Hold prevents MarkInstall of puppet [ amd64 ] < 0.25.5-1 -> 2.6.2-1 > ( admin ) FU=0
| Hold prevents MarkInstall of puppet-common [ amd64 ] < 0.25.5-1 -> 2.6.2-1 > ( admin ) FU=0
| Starting
| Starting 2
| Investigating (0) apache2-mpm-worker [ amd64 ] < 2.2.16-4 > ( httpd )
| Broken apache2-mpm-worker:amd64 Conflicts on apache2-mpm [ amd64 ] < none > ( none )
| Considering apache2-mpm-prefork:amd64 1 as a solution to apache2-mpm-worker:amd64 1
| Removing apache2-mpm-worker:amd64 rather than change apache2-mpm:amd64
| MarkDelete apache2-mpm-worker [ amd64 ] < 2.2.16-4 > ( httpd ) FU=1
| Done
| 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 have been kept back:
| puppet puppet-common
| The following packages will be upgraded:
| dash linux-base linux-image-2.6.32-5-amd64 php5 php5-cgi php5-cli php5-common php5-ldap php5-pgsql
| 9 upgraded, 2 newly installed, 1 to remove and 2 not upgraded.
| Need to get 41.1 MB/41.4 MB of archives.
| After this operation, 8610 kB of additional disk space will be used.
| Do you want to continue [Y/n]? n
| Abort.
I guess that the php5 package's overzealous versioned dependencies might
play a role here.
David Kalnischkies also requested the status file. I've put that up on
http://asteria.noreply.org/~weasel/volatile/2010-11-29-Dok7LkdlXY8/status
Cheers,
weasel
Reply to: