[Bug 2122623] [NEW] lb_chroot_dpkg breaks from two diversions for start-stop-daemon

Ryan Govostes 2122623 at bugs.launchpad.net
Thu Sep 11 20:59:12 UTC 2025


Public bug reported:

On Noble with live-build 3.0~a57-1ubuntu49.1, the lb_chroot_dpkg script
will cause a failure when removing the diversion /sbin/start-stop-
daemon:

    # begin-remove-after: released:forky
    Chroot chroot dpkg-divert --rename --quiet --remove /sbin/start-stop-daemon
    # end-remove-after
    Chroot chroot dpkg-divert --rename --quiet --remove /usr/sbin/start-stop-daemon

I think this is because /sbin -> /usr/sbin and so the script is
diverting the same file twice.

My workaround is:

    sed -i '/# begin-remove-after: released:forky/,/# end-remove-after/d' \
        /usr/lib/live/build/lb_chroot_dpkg

** Affects: live-build (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  lb_chroot_dpkg breaks from two diversions for start-stop-daemon

Status in live-build package in Ubuntu:
  New

Bug description:
  On Noble with live-build 3.0~a57-1ubuntu49.1, the lb_chroot_dpkg
  script will cause a failure when removing the diversion /sbin/start-
  stop-daemon:

      # begin-remove-after: released:forky
      Chroot chroot dpkg-divert --rename --quiet --remove /sbin/start-stop-daemon
      # end-remove-after
      Chroot chroot dpkg-divert --rename --quiet --remove /usr/sbin/start-stop-daemon

  I think this is because /sbin -> /usr/sbin and so the script is
  diverting the same file twice.

  My workaround is:

      sed -i '/# begin-remove-after: released:forky/,/# end-remove-after/d' \
          /usr/lib/live/build/lb_chroot_dpkg

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/live-build/+bug/2122623/+subscriptions




More information about the foundations-bugs mailing list