Installation failed from ppa for jaunty.

Bug #336999 reported by Martin Schaaf
6
Affects Status Importance Assigned to Milestone
nssbackup
Fix Released
High
Oumar Aziz OUATTARA
0.2
Fix Released
High
Oumar Aziz OUATTARA

Bug Description

Setting up nssbackup-common (0.2-0~rc6-ppa1) ...
Traceback (most recent call last):
  File "/usr/sbin/nssbackupconfig", line 43, in <module>
    import nssbackup
ImportError: No module named nssbackup
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] File exists: '/var/crash/_usr_sbin_nssbackupconfig.0.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/sbin/nssbackupconfig", line 43, in <module>
    import nssbackup
ImportError: No module named nssbackup
dpkg: error processing nssbackup-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nssbackup-ftp:
 nssbackup-ftp depends on nssbackup-common (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-common is not configured yet.
dpkg: error processing nssbackup-ftp (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of nssbackup-gtk:
 nssbackup-gtk depends on nssbackup-common (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-common is not configured yet.
dpkg: error processing nssbackup-gtk (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of nssbackup-ssh:
 nssbackup-ssh depends on nssbackup-common (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-common is not configured yet.
dpkg: error processing nssbackup-ssh (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of nssbackup:
 nssbackup depends on nssbackup-ftp (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-ftp is not configured yet.
 nssbackup depends on nssbackup-gtk (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-gtk is not configured yet.
 nssbackup depends on nssbackup-ssh (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-ssh is not configured yet.
dpkg: error processing nssbackup (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 nssbackup-common
 nssbackup-ftp
 nssbackup-gtk
 nssbackup-ssh
 nssbackup
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up nssbackup-common (0.2-0~rc6-ppa1) ...
Traceback (most recent call last):
  File "/usr/sbin/nssbackupconfig", line 43, in <module>
    import nssbackup
ImportError: No module named nssbackup
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] File exists: '/var/crash/_usr_sbin_nssbackupconfig.0.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/sbin/nssbackupconfig", line 43, in <module>
    import nssbackup
ImportError: No module named nssbackup
dpkg: error processing nssbackup-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nssbackup-gtk:
 nssbackup-gtk depends on nssbackup-common (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-common is not configured yet.
dpkg: error processing nssbackup-gtk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nssbackup-ssh:
 nssbackup-ssh depends on nssbackup-common (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-common is not configured yet.
dpkg: error processing nssbackup-ssh (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nssbackup-ftp:
 nssbackup-ftp depends on nssbackup-common (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-common is not configured yet.
dpkg: error processing nssbackup-ftp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nssbackup:
 nssbackup depends on nssbackup-ftp (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-ftp is not configured yet.
 nssbackup depends on nssbackup-gtk (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-gtk is not configured yet.
 nssbackup depends on nssbackup-ssh (= 0.2-0~rc6-ppa1); however:
  Package nssbackup-ssh is not configured yet.
dpkg: error processing nssbackup (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nssbackup-common
 nssbackup-gtk
 nssbackup-ssh
 nssbackup-ftp
 nssbackup

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Hey Martin,

thank you for reporting this issue. The problem is that the NSsbackup Python package could no be found. You are using Python 2.6, aren't you?

I had a look at the installation files and found the origin of the problem: static references to Python 2.5 are used (e.g. in nssbackup-common.install: debian/tmp/usr/lib/python2.5/site-packages/nssbackup/managers/*.py).

Bug is confirmed.

Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Needs investigations on how to write Debian packaging files independently of used Python version.

Changed in nssbackup:
importance: Undecided → High
milestone: none → release0.2
status: New → Confirmed
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

I have fixed this, using setup.py. The script will generate the deb depending on the version of python existing on the target system.

Changed in nssbackup:
assignee: nobody → wattazoum
status: Confirmed → Fix Committed
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Fixed in 0.2rc 7

Changed in nssbackup:
status: Fix Committed → Fix Released
Revision history for this message
Heiko Voigt (hvoigt) wrote :

This seems to break the standard installation with python2.5... I've got the same error the other way around. Now its installed in the python2.6 directories but I have the standard package of python2.5 installed. Symlinking it from the python2.5 package directory
fixes it:

$ cd /usr/lib/python2.5/site-packages
$ ln -s /usr/lib/python2.6/dist-packages/nssbackup

which is probably only useable as a hotfix. Maybe regenerate the package with python2.5? Because there is no deb for python2.6, is there ?

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.