[can-not-install] maintainer script failure

Bug #93669 reported by Michael Vogt
6
Affects Status Importance Assigned to Milestone
twiki (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: twiki

Found the following problem during a install test:

Setting up twiki (4.0.5-9.1) ...
Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.
dpkg: error processing twiki (--configure):
 subprocess post-installation script returned error exit status 1

It looks like (from the postinst):

$HTPASSWDCMD -b /var/lib/twiki/data/.htpasswd TWikiGuest guest

"-b" is not a option that the apache2-utils htpasswd underands

Tags: packaging

Related branches

Revision history for this message
Steve Kowalik (stevenk) wrote :

It looks like this bug has been fixed by an apache2 upload. The twiki postinst prefers htpasswd2 over htpasswd, and htpasswd2 doesn't know the -b option, which now no longer exists in apache2-utils.

Changed in twiki:
status: Unconfirmed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for looking into this error.

Unfortunately the problem is still present if "mini-httpd" is installed together wth twiki. To reproduce, install "mini-httpd" first and then install twiki. Its of course debatable if the bug here is twiki and not mini-httpd that divert htpasswd.

Cheers,
 Michael

Changed in twiki:
status: Fix Released → Confirmed
Revision history for this message
William Grant (wgrant) wrote :

One would presume that if it diverts it, it should be compatible with what was meant to be there. I'd say this isn't a twiki bug.

Revision history for this message
Steve Kowalik (stevenk) wrote :

twiki (1:4.0.5-9.1ubuntu1) feisty; urgency=low

  * Add a horrible hack to try and detect if htpasswd supports -b.
    Now I feel dirty. (LP: #93669)
  * Prefer apache2 to apache in the webserver list, and add mini-httpd.
  * Only attempt to restart any of the apache's if /usr/sbin/apachectl
    exists and is executable. (LP: #96464)
  * Do the same thing for Apache 2.
  * Munge Maintainer field as per spec.

 -- Steve Kowalik <email address hidden> Sun, 8 Apr 2007 00:09:06 +1000

Changed in twiki:
status: Confirmed → Fix Committed
Revision history for this message
Steve Kowalik (stevenk) wrote :

twiki 1:4.0.5-9.1ubuntu1 has built successfully.

Changed in twiki:
status: Fix Committed → Fix Released
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.