[Pkg-php-pecl] Bug#745561: php5-json: unable to purge without php5-common

Sven Hartge sven at svenhartge.de
Tue Apr 22 20:15:45 UTC 2014


Package: php5-json
Version: 1.3.4-2
Severity: normal

Hi!

Purging of php5-json is not possible if php5-common is not
installed because php5-json does _not_ declare a dependency
on it though it is clearly needed:

root at skuld:~# apt-get purge php5-json
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  php5-json*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 587607 files and directories currently installed.)
Removing php5-json (1.3.4-2) ...
Purging configuration files for php5-json (1.3.4-2) ...
/var/lib/dpkg/info/php5-json.postrm: 13: /var/lib/dpkg/info/php5-json.postrm: php5dismod: not found
dpkg: error processing package php5-json (--purge):
 subprocess installed post-removal script returned error exit status 127
E: Sub-process /usr/bin/dpkg returned an error code (1)

Installing php5-common:

root at skuld:~# apt-get install php5-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  php5-user-cache
The following NEW packages will be installed:
  php5-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/353 kB of archives.
After this operation, 814 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package php5-common.
(Reading database ... 587614 files and directories currently installed.)
Preparing to unpack .../php5-common_5.5.11+dfsg-3_i386.deb ...
Unpacking php5-common (5.5.11+dfsg-3) ...
Setting up php5-common (5.5.11+dfsg-3) ...

Creating config file /etc/php5/mods-available/pdo.ini with new version

Creating config file /etc/php5/mods-available/opcache.ini with new version

Purging then works:

root at skuld:~# apt-get purge php5-json
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  php5-json*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 587647 files and directories currently installed.)
Removing php5-json (1.3.4-2) ...
Purging configuration files for php5-json (1.3.4-2) ...

Grüße,
Sven.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'experimental'), (400, 'testing')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.13-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-json depends on:
ii  libjson-c2       0.11-4
pn  phpapi-20121212  <none>
ii  ucf              3.0027+nmu1

php5-json recommends no packages.

php5-json suggests no packages.



More information about the Pkg-php-pecl mailing list