Fails to install Broadcom wireless drivers from Kubuntu live session

Bug #1239298 reported by Scott Kitterman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jockey (Ubuntu)
Fix Released
High
Unassigned
Saucy
Fix Released
High
Unassigned

Bug Description

I think this is the relevant bit from the log:

Traceback (most recent call last):
  File "/usr/bin/jockey-kde", line 286, in on_button_toggle_clicked
    if self.set_handler_enable(h_id, 'toggle', False):
  File "/usr/lib/python2.7/dist-packages/jockey/ui.py", line 670, in set_handler_enable
    handler_id, enable)
  File "/usr/lib/python2.7/dist-packages/jockey/backend.py", line 98, in convert_dbus_exceptions
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/jockey/backend.py", line 90, in dbus_sync_call_signal_wrapper
    raise _h_exception_exc
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/jockey/backend.py", line 337, in _f_result_wrapper
    self._f_result = f()
  File "/usr/share/jockey/handlers/broadcom_wl.py", line 53, in enable
    Handler.enable(self)
  File "/usr/lib/python2.7/dist-packages/jockey/handlers.py", line 263, in enable
    self.repository_sign_fp)
  File "/usr/lib/python2.7/dist-packages/jockey/backend.py", line 635, in install_package
    repository, fingerprint)
  File "/usr/lib/python2.7/dist-packages/jockey/oslib.py", line 258, in install_package
    class MyFetchProgress(apt.FetchProgress):
AttributeError: 'module' object has no attribute 'FetchProgress'

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: jockey-kde 0.9.7-0ubuntu14
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic i686
ApportVersion: 2.12.5-0ubuntu2
Architecture: i386
CasperVersion: 1.336ubuntu1
Date: Sun Oct 13 09:05:22 2013
LiveMediaBuild: Kubuntu 13.10 "Saucy Salamander" - Beta i386 (20131013)
MachineType: Dell Inc. Inspiron 1011
MarkForUpload: True
PackageArchitecture: all
ProcKernelCmdLine: noprompt cdrom-detect/try-usb=true file=/cdrom/preseed/username.seed boot=casper maybe-ubiquity initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
SourcePackage: jockey
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/20/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A00
dmi.board.name: CN0Y53
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A00
dmi.modalias: dmi:bvnDellInc.:bvrA00:bd03/20/2009:svnDellInc.:pnInspiron1011:pvrA00:rvnDellInc.:rnCN0Y53:rvrA00:cvnDellInc.:ct8:cvrA00:
dmi.product.name: Inspiron 1011
dmi.product.version: A00
dmi.sys.vendor: Dell Inc.

Revision history for this message
Scott Kitterman (kitterman) wrote :
Changed in jockey (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-13.10
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1239298

tags: added: iso-testing
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 1239298] Re: Fails to install Broadcom wireless drivers from Kubuntu live session

I am working on this. I got this error (I think) fixed, but immediately ran
into further problems.

Revision history for this message
Scott Kitterman (kitterman) wrote :

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.

tags: added: patch
Revision history for this message
Alberto Milone (albertomilone) wrote :

can you attach the log (/var/log/jockey.log) created by the patched jockey, please?

As a side note, I maintain Jockey in 12.04 but I assumed nobody would be using Jockey in saucy (or even in quantal) any more. Jockey hasn't been recently updated in releases newer than 12.04. In 14.04 we should consider removing it and replacing it with the (yet-to-be-developed) KDE equivalent of the software-sources-gtk app (or any other app that relies on ubuntu-drivers-common package), provided that this fits Kubuntu's plans. Shall we discuss this in a Kubuntu mailing list?

This said, let's try to fix this up for saucy.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 1239298] Re: Fails to install Broadcom wireless drivers from Kubuntu live session

I can do it tonight.

Revision history for this message
Scott Kitterman (kitterman) wrote :
Revision history for this message
Scott Kitterman (kitterman) wrote :

I didn't see the actual traceback in the log, so here it is.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Note: there was a small error in the partial patch from yesterday, it should just be pkg instead of pkg.name in the mark_install line.

Kubuntu had planned to switch away from jockey for 13.10, but it didn't get done. We're already working on it for 14.04.

Revision history for this message
Alberto Milone (albertomilone) wrote :

I added the following to your patch:

- apt.progress.base.InstallProgress().__init__(self)
+ apt.progress.base.InstallProgress.__init__(self)

Please test the attached patch and let me know if it solves the problem.

Note: I'm glad that you guys are working on a replacement. If you need help with that, have doubts on how to use ubuntu-drivers-common, etc. please let me know.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Ran out of room in the live session (which is a regression). I'll install and try from an installed system with more room.

Revision history for this message
Scott Kitterman (kitterman) wrote :

That works. I'll put this together and upload it shortly.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jockey - 0.9.7-0ubuntu15

---------------
jockey (0.9.7-0ubuntu15) saucy; urgency=low

  * jockey/oslib.py Additional fixes for current APT api (LP: #1239298)
    - Thanks to Alberto Milone for help getting the fixes working
 -- Scott Kitterman <email address hidden> Mon, 14 Oct 2013 09:57:15 -0400

Changed in jockey (Ubuntu Saucy):
status: New → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :

After sorting through some unrelated issues, I was finally able to verify this. I can, once again, install wifi drivers from the installation media (and use the wifi without reboot). Thanks again for the help.

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.