Package: php7.0-cli
Version: 7.0.29-1

Here the order the files is removed is wrong.

The conf.d directory is not empty yet.

By the time the command is finished, it is empty, but it is already too late.


# aptitude purge ~nphp7.0~i
The following packages will be REMOVED:
  php7.0-cli{p} (php7.0-cliP<- php-cli)  php7.0-common{p}  php7.0-json{p} 
(php7.0-jsonP<- php-json)
  php7.0-opcache{p}  php7.0-readline{p}

Removing php7.0-cli (7.0.29-1) ...
Removing php7.0-readline (7.0.29-1) ...
Removing php7.0-json (7.0.29-1) ...
Removing php7.0-opcache (7.0.29-1) ...
Removing php7.0-common (7.0.29-1) ...
Processing triggers for man-db (2.8.3-2) ...
(Reading database ... 196179 files and directories currently installed.)
Purging configuration files for php7.0-readline (7.0.29-1) ...
Purging configuration files for php7.0-opcache (7.0.29-1) ...
Purging configuration files for php7.0-cli (7.0.29-1) ...
dpkg: warning: while removing php7.0-cli, directory '/etc/php/7.0/cli/conf.d' 
not empty so not removed
Purging configuration files for php7.0-json (7.0.29-1) ...
Purging configuration files for php7.0-common (7.0.29-1) ...
dpkg: warning: while removing php7.0-common, directory '/etc/php/7.0' not empty 
so not removed
Current status: 0 (+0) broken, 232 (-5) upgradable, 10137 (+0) new.
# find /etc/php/7.0 -ls
   313927      4 drwxr-xr-x   3 root     root         4096 May 21 08:25 
/etc/php/7.0
   313944      4 drwxr-xr-x   3 root     root         4096 May 21 08:25 
/etc/php/7.0/cli
   313945      4 drwxr-xr-x   2 root     root         4096 May 21 08:25 
/etc/php/7.0/cli/conf.d

Reply via email to