php5{en,dis}mod are too picky on removed files or changed symlinks

Bug #1189755 reported by Christoph Siefer
32
This bug affects 3 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I suspect a rpm missconfig, maybe the ldap-module won't fit?

Ubuntu 12-10

apt-cache policy php5-ldap
php5-ldap:
  Installiert: 5.4.6-1ubuntu1.2
  Kandidat: 5.4.6-1ubuntu1.2
  Versionstabelle:
 *** 5.4.6-1ubuntu1.2 0
        500 http://archive.ubuntu.com/ubuntu/ quantal-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ quantal-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.6-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages

apt-cache policy php5-common
php5-common:
  Installiert: 5.4.6-1ubuntu1.2
  Kandidat: 5.4.6-1ubuntu1.2
  Versionstabelle:
 *** 5.4.6-1ubuntu1.2 0
        500 http://archive.ubuntu.com/ubuntu/ quantal-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ quantal-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.6-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages

ProblemType: Package
DistroRelease: Ubuntu 12.10
Package: php5-ldap 5.4.6-1ubuntu1.2
ProcVersionSignature: Ubuntu 3.5.0-34.55-generic 3.5.7.13
Uname: Linux 3.5.0-34-generic x86_64
ApportVersion: 2.6.1-0ubuntu11
Architecture: amd64
Date: Tue Jun 11 09:27:54 2013
DuplicateSignature: package:php5-ldap:5.4.6-1ubuntu1.2:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2012-03-10 (457 days ago)
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
SourcePackage: php5
Title: package php5-ldap 5.4.6-1ubuntu1.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to quantal on 2012-12-07 (186 days ago)

Revision history for this message
Christoph Siefer (siefer) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Ondřej Surý (ondrej) wrote :

> I suspect a rpm missconfig, maybe the ldap-module won't fit?

I more suspect you have mangled with /etc/php5/conf.d files:

Please do:

ls -l /etc/php5/conf.d

and paste the output here.

Revision history for this message
Christoph Siefer (siefer) wrote :

Wohhh! That was fast!

You are certainly right, there should be links (?)

ls -l /etc/php5/conf.d
insgesamt 12
lrwxrwxrwx 1 root root 25 Jun 9 19:06 10-pdo.ini -> ../mods-available/pdo.ini
lrwxrwxrwx 1 root root 26 Jun 9 19:07 20-curl.ini -> ../mods-available/curl.ini
lrwxrwxrwx 1 root root 24 Jun 9 19:07 20-gd.ini -> ../mods-available/gd.ini
lrwxrwxrwx 1 root root 27 Jun 9 19:11 20-geoip.ini -> ../mods-available/geoip.ini
-rw-r--r-- 1 root root 68 Jun 9 18:36 20-ldap.ini
lrwxrwxrwx 1 root root 28 Jun 9 19:11 20-mysqli.ini -> ../mods-available/mysqli.ini
lrwxrwxrwx 1 root root 27 Jun 9 19:11 20-mysql.ini -> ../mods-available/mysql.ini
lrwxrwxrwx 1 root root 31 Jun 9 19:11 20-pdo_mysql.ini -> ../mods-available/pdo_mysql.ini
lrwxrwxrwx 1 root root 28 Jun 9 19:11 20-xmlrpc.ini -> ../mods-available/xmlrpc.ini
lrwxrwxrwx 1 root root 25 Jun 9 19:11 20-xsl.ini -> ../mods-available/xsl.ini
-rw-r--r-- 1 root root 60 Jun 9 19:11 imagick.ini
-rw-r--r-- 1 root root 58 Sep 21 2012 mcrypt.ini

read-permissions should be sufficient, right?

Thanks for caring!

chris

Revision history for this message
Ondřej Surý (ondrej) wrote :

There should be a link for 20-ldap.ini.

imagick and mcrypt might have not been updated to use the new helper scripts.

Anyway I have updated the php5enmod script to not fail so hard on such occasions in the Debian package, so Ubuntu packagers might want to cherry-pick the change (when I confirm the changes are correct and push them to the git repository).

O.

Revision history for this message
Christoph Siefer (siefer) wrote :

Ondřej, thanks again for clearance.

Regards,

chris

Revision history for this message
Ondřej Surý (ondrej) wrote :
Revision history for this message
Robie Basak (racb) wrote :

Thanks Ondřej!

summary: - package php5-ldap 5.4.6-1ubuntu1.2 failed to install/upgrade: subprocess
- installed post-installation script returned error exit status 1
+ php5{en,dis}mod are too picky on removed files or changed symlinks
Changed in php5 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: bitesize
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.