php

Can’t Upgrade php5.6-fpm, Message: policy-rc.d returned unexpected error

When you see an error message;

Setting up php5.6-fpm (5.6.30-10+deb.sury.org~trusty+2) …
/usr/sbin/policy-rc.d: line 3: 101: command not found
invoke-rc.d: WARNING: policy-rc.d returned unexpected error status 127, 102 used instead.
invoke-rc.d: policy-rc.d returned error status 102

Do the following:

# cat /usr/sbin/policy-rc.d
#!/bin/sh
exit 101

For more information, see https://askubuntu.com/questions/365911/why-the-services-do-not-start-at-installation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s