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

Niels Thykier niels at thykier.net
Fri Apr 13 16:37:00 UTC 2018


Robie Basak:
> Based on https://irclogs.ubuntu.com/2018/04/13/%23ubuntu-
> devel.html#t11:56, this sounds valid for either init-system-helpers or
> debhelper.
> 
> 13:47 <xnox> rbasak, the description sounds valid. i believe i have hit
> something similar before, thus yeah a fix to debhelper for this class of
> issues would be most welcomed.
> 
> 13:47 <rbasak> xnox: thanks. debhelper, or invoke-rc.d?
> 
> 13:48 <xnox> rbasak, my understanding was that maintainer scripts that
> are generated, do attempt to check if a thing was "enabled and active"
> before the upgrade; and post upgrade. But maybe they only do so for
> systemd native units, and not for init.d->systemd units.
> 
> 
> ** Also affects: debhelper (Ubuntu)
>    Importance: Undecided
>        Status: New
> 

Hi,

Possibly related to this issue:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887904#10

Thanks,
~Niels


** Bug watch added: Debian Bug tracker #887904
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887904

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debhelper in Ubuntu.
https://bugs.launchpad.net/bugs/1712817

Title:
  postinst fails if the service is disabled via systemd

Status in debhelper package in Ubuntu:
  New
Status in init-system-helpers package in Ubuntu:
  New

Bug description:
  When updating my Xenial with freeradius installed but not active I got
  the following error:

      Setting up freeradius-common (2.2.8+dfsg-0.1ubuntu0.1) ...
      Setting up libfreeradius2 (2.2.8+dfsg-0.1ubuntu0.1) ...
      Setting up freeradius-utils (2.2.8+dfsg-0.1ubuntu0.1) ...
      Setting up freeradius (2.2.8+dfsg-0.1ubuntu0.1) ...
      Setting up freeradius-ldap (2.2.8+dfsg-0.1ubuntu0.1) ...
      freeradius.service is not active, cannot reload.
      invoke-rc.d: initscript freeradius, action "force-reload" failed.
      dpkg: error processing package freeradius-ldap (--configure):
       subprocess installed post-installation script returned error exit status 1

  
  lsb_release -rd
  Description:	Ubuntu 16.04.3 LTS
  Release:	16.04

  apt-cache policy freeradius-ldap # before update
  freeradius-ldap:
    Installed: 2.2.8+dfsg-0.1build2
    Candidate: 2.2.8+dfsg-0.1ubuntu0.1
    Version table:
       2.2.8+dfsg-0.1ubuntu0.1 500
          500 http://fr.archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
          500 http://fr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
   *** 2.2.8+dfsg-0.1build2 500
          500 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debhelper/+bug/1712817/+subscriptions



More information about the foundations-bugs mailing list