[Bug 1712817] Re: postinst fails if the service is disabled via systemd

Andreas Hasenack andreas at canonical.com
Fri Aug 25 18:21:51 UTC 2017

As a workaround, you can create a /usr/sbin/policy-rc.d file with these

exit 101

# apt install --reinstall freeradius-ldap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/24.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 28097 files and directories currently installed.)
Preparing to unpack .../freeradius-ldap_2.2.8+dfsg-0.1ubuntu0.1_amd64.deb ...
Unpacking freeradius-ldap (2.2.8+dfsg-0.1ubuntu0.1) over (2.2.8+dfsg-0.1ubuntu0.1) ...
Setting up freeradius-ldap (2.2.8+dfsg-0.1ubuntu0.1) ...
invoke-rc.d: policy-rc.d denied execution of force-reload.

You can also check the package name in that script, and return 101 only for the services you want to prevent from starting, and return 0 for the rest. "$1" is the service name.

You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to freeradius in Ubuntu.

  postinst fails if the service is disabled via systemd

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list