Error during Hardy install

Bug #222408 reported by Sameer Grover
58
Affects Status Importance Assigned to Milestone
no-ip (Debian)
Fix Released
Unknown
no-ip (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: no-ip

Package doesn't install on Hardy, apt-get returns this:

Preconfiguring packages ...
Selecting previously deselected package noip2.
(Reading database ... 274273 files and directories currently installed.)
Unpacking noip2 (from .../noip2_2.1.7-7ubuntu1_i386.deb) ...
Setting up noip2 (2.1.7-7ubuntu1) ...

USAGE: noip2 [ -C [ -F][ -Y][ -L hosts_groups][ -U #min]
 [ -u username][ -p password][ -x progname]]
 [ -c file][ -d][ -D pid][ -i addr][ -S][ -M][ -h]

Version Linux-2.1.7
Options: -C create configuration data
         -F force NAT off
         -Y select all hosts/groups
         -L hosts_groups select supplied hosts/groups
         -U minutes set update interval
         -u username use supplied username
         -p password use supplied password
         -x executable use supplied executable
         -c config_file use alternate data path
         -d increase debug verbosity
         -D processID toggle debug flag for PID
         -i IPaddress use supplied address
         -I interface use supplied interface
         -S show configuration data
         -M permit multiple instances
         -K processID terminate instance PID
         -z activate shm dump code
         -h help (this text)
dpkg: error processing noip2 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 noip2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up noip2 (2.1.7-7ubuntu1) ...

USAGE: noip2 [ -C [ -F][ -Y][ -L hosts_groups][ -U #min]
 [ -u username][ -p password][ -x progname]]
 [ -c file][ -d][ -D pid][ -i addr][ -S][ -M][ -h]

Version Linux-2.1.7
Options: -C create configuration data
         -F force NAT off
         -Y select all hosts/groups
         -L hosts_groups select supplied hosts/groups
         -U minutes set update interval
         -u username use supplied username
         -p password use supplied password
         -x executable use supplied executable
         -c config_file use alternate data path
         -d increase debug verbosity
         -D processID toggle debug flag for PID
         -i IPaddress use supplied address
         -I interface use supplied interface
         -S show configuration data
         -M permit multiple instances
         -K processID terminate instance PID
         -z activate shm dump code
         -h help (this text)
dpkg: error processing noip2 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 noip2

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Can you please tell us precisely what command you used?

Changed in no-ip:
status: New → Incomplete
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Additionally, was there any problem during the configuration (you should have been asked some questions, like username and password)?

Revision history for this message
Sameer Grover (sameer-grover-1) wrote :

The command used was:
sudo apt-get install noip2

I did a complete removal and then tried reinstalling the pacakge. I did get a blue-coloured screen where I entered my username, password etc. after which this error message came up.

noip was working perfectly in Gusty and the error first appeared while upgrading to Hardy. I haven't been able to get it to work ever since. Can somebody confirm that this package doesn't install on Hardy?

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Rather the contrary, the package installs and/or upgrades for most users. We have a couple of cases reported where it fails the configuration step but nobody has yet provided any information that could allows us to debug it.
What happens if you give the following command:

noip2 -C -u username -p password -U updating -L hosts_groups -I interface

Where:

username is your username
password is your password
updating is the update interval (in minutes)
interface is your network interface (eg. eth0)
hosts_groups is the comma-separated hosts/groups list
(eg. some_domain.no-ip.com,Group1,Group2,another_domain.no-ip.biz)

And if you give this one:

sudo /etc/init.d/noip2 start

What is the content of your /var/lib/noip2/noip2.conf file?
(if you feel that there is confidential data in noip2.conf please mask it with some x).

Revision history for this message
Sameer Grover (sameer-grover-1) wrote :

I've tried installing noip2 on a fresh Hardy install and can confirm the following bugs:
Installation fails when -
1. The password contains a space.
2. The username and/or password is incorrect.(eg. Try entering some username and leave all other fields at their defaults which includes a blank password and hostname)

The post install configure script in the deb package which calls noip2 with the username, password, etc. on the command line doesn't handle spaces (and probably other special characters) correctly causing noip2 to fail.
Running dpkg-reconfigure after installation does not help either because apt-get detects a failed installation.
(/usr/sbin/dkpg-reconfigure: noip2 is broken or not fully installed)
Also, whenever apt-get is used to install/uninstall anything, it attempts to re-run the noip2 postinstall script and reports an error.

I've solved my problem by changing my password so that it didn't contain a space.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Thanks for the additional info. I'm confirming this bug and have informed upstream about this problem. You may add your comment or opinion in their bug tracker (see link above).

Changed in no-ip:
importance: Undecided → Low
status: Incomplete → Confirmed
Changed in no-ip:
status: Unknown → New
Changed in no-ip:
status: New → Fix Released
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Sync requested in bug 234634

Changed in no-ip:
status: Confirmed → Fix Committed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

 no-ip (2.1.7-9) unstable; urgency=low
 .
   [ Andres Mejia ]
   * Remove use of --error-handler for dh_installinit.
 .
 no-ip (2.1.7-8) unstable; urgency=low
 .
   [ Andres Mejia ]
   * Fix where logcheck filter is installed. Closes: #478848
   * Add DM-Upload-Allowed: yes field in control file.
   * Fixing postinst to allow usernames and passwords with spaces.
     Closes: #480543
   * Added nostrip option for DEB_BUILD_OPTIONS.
   * Fix manpage lintian warning.

Changed in no-ip:
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.