With the attached patch applied, the initial error is no longer present,
but the install still fails.

When _CapturedInstallProgress is instantiated from:

           apt.package.Package.mark_install(pkg.name)
            inst_p = progress_cb and MyInstallProgress(progress_cb) or None
 
there is a python traceback (my live session died, so this is approximate) in 
_CapturedInstallProgress at apt.progress.base.InstallProgress().__init__(self). 
 The error is two arguments provided when only one is permitted (error from 
memory, so it's not exact).  I don't see where multiple arguments are provided:

        class MyInstallProgress(_CapturedInstallProgress):
            def __init__(self, callback):
                _CapturedInstallProgress.__init__(self)
                self.callback = callback

            def statusChange(self, pkg, percent, status):
                # consider install as 50% of the total progress for installation
                logging.debug('install progress %s %f' % (pkg, percent))
                self.callback('install', int(percent/4+50.5), 100)

class _CapturedInstallProgress(apt.progress.base.InstallProgress):
    def __init__(self):
        apt.progress.base.InstallProgress().__init__(self)
        self.out = None

    def fork(self):
        '''Reroute stdout/stderr to files, so that we can log them'''

        self.out = tempfile.TemporaryFile()
        p = os.fork()
        if p == 0:
            os.dup2(self.out.fileno(), sys.stdout.fileno())
            os.dup2(self.out.fileno(), sys.stderr.fileno())
        return p

If someone else could pick this up, that'd be great.  I need to sleep.

** Patch added: "Patch that fixes part of the problem"
   
https://bugs.launchpad.net/ubuntu/+source/jockey/+bug/1239298/+attachment/3876563/+files/partial.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1239298

Title:
  Fails to install Broadcom wireless drivers from Kubuntu live session

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jockey/+bug/1239298/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to