Stan-O
Member
- Joined
- Oct 9, 2013
- Messages
- 60
- Reaction score
- 8
I've been banging my head against the wall trying to get some Ubuntu updates installed and couldn't figure out why post-install scripts were failing (no error messages, the updates would just stall forever), so today I have finally diagnosed the problem.
The /sbin/status was no longer available on my system and instead the invoke-rc.d was calling the /usr/local/sbin/status installed by IncrediblePBX script. The invoke-rc.d is a script which is used by the various package install scripts to stop/start/restart services being updated/installed. Since it relies on the status binary to determine the run status of the service and it gets replaced by the IncrediblePBX install script, the invoke-rc.d calls were just stalled resulting in failed updates.
Solution (you need to run these as root on your IncrediblePBX machine):
The /sbin/status was no longer available on my system and instead the invoke-rc.d was calling the /usr/local/sbin/status installed by IncrediblePBX script. The invoke-rc.d is a script which is used by the various package install scripts to stop/start/restart services being updated/installed. Since it relies on the status binary to determine the run status of the service and it gets replaced by the IncrediblePBX install script, the invoke-rc.d calls were just stalled resulting in failed updates.
Solution (you need to run these as root on your IncrediblePBX machine):
Code:
mv /usr/local/sbin/status /usr/local/sbin/pbxstatus
sed -i 's|/usr/local/sbin/status|/usr/local/sbin/pbxstatus|' ~/.profile
apt-get --reinstall install upstart
Last edited: