[Bug 462015] [NEW] dtc-xen wont install, htpasswd invocation error

Lebeko lpoulo at gmail.com
Tue Oct 27 15:18:03 UTC 2009


Public bug reported:

Binary package hint: dtc-xen

Tries to sen passwd directly as a htpasswd parameter
$HTPASSWD -cb $DTCXEN_ETCPATH/htpasswd ${conf_soap_login} ${conf_soap_pass}
correct approach:
echo ${conf_soap_pass} | $HTPASSWD -c $DTCXEN_ETCPATH/htpasswd ${conf_soap_login}

Changing that in .postinst fixed the problem.

Attempted installation:
Setting up dtc-xen (0.3.27-1) ...
===> Generating SSL certs for the SOAP python server
Generating a 1024 bit RSA private key
.....................................++++++
.....++++++
writing new private key to 'privkey.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, YOUR name) []:Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:An optional company name []:writing RSA key
Signature ok
subject=/C=US/ST=the-state/L=My-ocation/O=GPLHost/OU=No-unit/CN=node2001.conf_soap_domain_name/emailAddress=webmaster at node2001.conf_soap_domain_name
Getting Private key
===> Generating /etc/dtc-xen/htpasswd file for the SOAP python server
Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.
dpkg: error processing dtc-xen (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libruby1.8 (1.8.7.174-1) ...

Setting up vim-runtime (2:7.2.245-2ubuntu2) ...
Processing /usr/share/vim/addons/doc


Setting up vim-nox (2:7.2.245-2ubuntu2) ...
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vim (vim) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vimdiff (vimdiff) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/rvim (rvim) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/rview (rview) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/vi (vi) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/view (view) in auto mode.
update-alternatives: using /usr/bin/vim.nox to provide /usr/bin/ex (ex) in auto mode.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 dtc-xen
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up dtc-xen (0.3.27-1) ...
===> Generating SSL certs for the SOAP python server
Generating a 1024 bit RSA private key
...............++++++
....................................++++++
writing new private key to 'privkey.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, YOUR name) []:Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:An optional company name []:writing RSA key
Signature ok
subject=/C=US/ST=the-state/L=My-ocation/O=GPLHost/OU=No-unit/CN=node2001.conf_soap_domain_name/emailAddress=webmaster at node2001.conf_soap_domain_name
Getting Private key
===> Generating /etc/dtc-xen/htpasswd file for the SOAP python server
Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.
dpkg: error processing dtc-xen (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 dtc-xen
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Writing extended state information... Done

ProblemType: Bug
Architecture: i386
Date: Tue Oct 27 17:17:53 2009
DistroRelease: Ubuntu 9.10
Package: dtc-xen 0.3.27-1
PackageArchitecture: all
ProcEnviron:
 LANG=en_ZA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic-pae
SourcePackage: dtc-xen
Uname: Linux 2.6.31-14-generic-pae i686

** Affects: dtc-xen (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
dtc-xen wont install, htpasswd invocation error
https://bugs.launchpad.net/bugs/462015
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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




More information about the universe-bugs mailing list