Ubuntu 16.04: error while installing - update-rc.d failed
Posted: Mon Nov 11, 2019 11:42 am
Hello,
Yesterday I tried to install fahclient on Ubuntu 16.04. It failed with the following error:
There had been a question (via debconf) whether fahclient should run by default and I had answered no.
The problem was AFAIK caused by the following snippet in the postinst script:
Apparently, fails when there are no symlinks in /etc/rc*.d and returns a non-zero exit code. Because the script is executed by "/bin/bash -e" , this causes the postinst script to fail.
One solution would be to modify the line so:
I think that some other update-rc.d invocations in postinst and postrm scripts should be modified in this way.
Yesterday I tried to install fahclient on Ubuntu 16.04. It failed with the following error:
Code: Select all
Setting up fahclient:amd64 (7.5.1) ...
update-rc.d: error: no runlevel symlinks to modify, aborting!
dpkg: error processing package fahclient:amd64 (--install):
subprocess installed post-installation script returned error exit status 1
The problem was AFAIK caused by the following snippet in the postinst script:
Code: Select all
if [ -x insserv ]; then
insserv -r FAHClient
else
update-rc.d FAHClient disable
fi
Code: Select all
update-rc.d FAHClient disable
One solution would be to modify the line so:
Code: Select all
update-rc.d FAHClient disable || true