sanlock 3.6.0-1 breaks on install missing sanlock user

Bug #1745922 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sanlock (Debian)
Fix Released
Unknown
sanlock (Ubuntu)
Fix Released
Critical
Christian Ehrhardt 

Bug Description

Since 3.6.0-1 (recently synced and now in proposed) installation fails.

# apt install sanlock
[...]
Setting up sanlock (3.6.0-1) ...
addgroup: The user `sanlock' does not exist.
dpkg: error processing package sanlock (--configure):

Since by that it became uninstallable it also breaks all builds which depend on libsanlock-dev.

Changed in sanlock (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Issue is trivial, fix tested by repackaging:

  apt-get download sanlock
  dpkg-deb -x sanlock_3.6.0-1_amd64.deb sanlock
  dpkg-deb -e sanlock_3.6.0-1_amd64.deb sanlock/DEBIAN
  vim sanlock/DEBIAN/postinst
Change order of user creation and adding to the group.

  dpkg-deb -b sanlock sanlock_3.6.0-1ubuntu1~ppa1_amd64.deb
  dpkg -i sanlock_3.6.0-1ubuntu1~ppa1_amd64.deb

Now working

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Built the normal way and fixed another bug that was reported in Debian still working fine atm:
Unpacking sanlock (3.6.0-1ubuntu1) over (3.6.0-1) ...
Setting up sanlock (3.6.0-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (235-3ubuntu3) ...
Processing triggers for man-db (2.7.6.1-4) ...

Proposing a MP before uploading ...

Changed in sanlock (Ubuntu):
assignee: nobody → ChristianEhrhardt (paelzer)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sanlock - 3.6.0-1ubuntu1

---------------
sanlock (3.6.0-1ubuntu1) bionic; urgency=medium

  * d/sanlock.postinst: run addgroup after creating the user (LP: #1745922)
  * d/rules: install systemd-wdmd (Closes: #854696)

 -- Christian Ehrhardt <email address hidden> Mon, 29 Jan 2018 07:19:29 +0100

Changed in sanlock (Ubuntu):
status: In Progress → Fix Released
Changed in sanlock (Debian):
status: Unknown → New
Changed in sanlock (Debian):
status: New → Fix Released
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

All fixes in Debian now, triggered a sync to make it an autosync again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.