I wrote in comment #5:
> Observation. In both this (#929552) case and in the duplicate (#929641)
> the system was upgraded from an earlier 1.63ubuntu* version of resolvconf.

I read in initctl(8):
> COMMANDS
>     start
>         [...]
>         IF the job is already running, start will return an error.

Resolvconf.postinst runs

    invoke-rc.d resolvconf start

which does

    /etc/init.d/resolvconf start

which, because /etc/init.d/resolvconf is a symlink to /lib/init/upstart-
job, does

    start resolvconf

Now, at the time of an upgrade to the resolvconf package from any
earlier version of the package that started an Upstart job, the
resolvconf Upstart job will be considered by Upstart already to be
running.

But since 1.63ubuntu5 the job is not stopped on upgrade.

    resolvconf (1.63ubuntu5) precise; urgency=low
      [ Steve Langasek ]
      * Call dh_installinit with -r, to not stop/start resolvconf on upgrade;
        that just leaves a window when updates aren't happening, which
        doesn't benefit us.

Hence the failure.

One solution would be to go back to dh_installinit without the "-r"
option.

Suspending updates between resolvconf.old-prerm and resolvconf.new-
postinst does offer the benefit that if multiple packages induce
resolvconf updates during the dpkg run then these will all be processed
in one go. That's nice.

I don't immediately see any problem with delaying updates until 
resolvconf.postinst runs, but perhaps someone else can.  Steve Langasek: Did 
you add "-r" to "dh_installinit" in order to solve some problem?
-- 
Thomas

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

Title:
  package resolvconf 1.63ubuntu7 failed to install/upgrade: Unterprozess
  installiertes post-installation-Skript gab den Fehlerwert 1 zurück

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to