BIOS update fails due to missing python import

Bug #604029 reported by Stefano Rivera
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsmbios (Ubuntu)
Fix Released
Medium
Unassigned
Lucid
Fix Released
Medium
Unassigned

Bug Description

# update_firmware --yes

Running system inventory...

Searching storage directory for available BIOS updates...
Checking System BIOS for OptiPlex 320 - 1.1.7
        Available: system_bios(ven_0x1028_dev_0x01e5) - 1.1.11
        Found Update: system_bios(ven_0x1028_dev_0x01e5) - 1.1.11

Found firmware which needs to be updated.

Running updates...
| Installing system_bios(ven_0x1028_dev_0x01e5) - 1.1.11Installation failed for package: system_bios(ven_0x10
28_dev_0x01e5) - 1.1.11
aborting update...

The error message from the low-level command was:

Could not update the system BIOS.

Many times, this is due to memory constraints. The BIOS update can require from
1 to 4 megabytes of physically contiguous free RAM in order to do the update.
Because memory can become fragmented, this is not always available. To correct
this, try rebooting and running the update immediately after reboot.

The output from the low-level bios update command was:

Performing BIOS update...
Traceback (most recent call last):
  File "/usr/sbin/dellBiosUpdate", line 185, in <module>
    sys.exit( main() )
  File "/usr/sbin/dellBiosUpdate", line 153, in main
    exit_code = updateBios(HdrFile(options.hdr), options)
  File "<peak.util.decorators.rewrap wrapping libsmbios_c.rbu_update.updateBios at 0x08CEFA3C>", line 3, in updateBios
  File "/usr/lib/python2.6/dist-packages/libsmbios_c/trace_decorator.py", line 98, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/dist-packages/libsmbios_c/rbu_update.py", line 95, in updateBios
    if compareBiosVersions(ver, hdrfile.biosVersion()) >= 0:
  File "<peak.util.decorators.rewrap wrapping libsmbios_c.rbu_hdr.biosVersion at 0x08CEFED4>", line 3, in biosVersion
  File "/usr/lib/python2.6/dist-packages/libsmbios_c/trace_decorator.py", line 98, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/dist-packages/libsmbios_c/rbu_hdr.py", line 86, in biosVersion
    ver = "%d.%d.%d" % struct.unpack("BBB", self.hdr.biosVersion)
NameError: global name 'struct' is not defined

The problem is that "struct" isn't imported. This can be fixed by using a new upstream version (which is in progress for Maverick in bug #591017) or applying the attached patch (which we should SRU)

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-libsmbios 2.2.13-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sat Jul 10 17:58:47 2010
Dependencies:

InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANG=en_ZA.UTF-8
 SHELL=/bin/bash
SourcePackage: libsmbios

Revision history for this message
Stefano Rivera (stefanor) wrote :
Changed in libsmbios (Ubuntu):
importance: Undecided → Medium
tags: added: patch
Revision history for this message
Stefano Rivera (stefanor) wrote :

This bug is in dependency wait on Bug #591017

Changed in libsmbios (Ubuntu):
assignee: nobody → Stefano Rivera (stefanor)
status: New → In Progress
Revision history for this message
Stefano Rivera (stefanor) wrote :

Fixed in 2.2.26-0ubuntu1

Changed in libsmbios (Ubuntu):
assignee: Stefano Rivera (stefanor) → nobody
status: In Progress → Fix Released
Changed in libsmbios (Ubuntu Lucid):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted libsmbios into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in libsmbios (Ubuntu Lucid):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Stefano Rivera (stefanor) wrote :

Works for me. Tested a firmware upgrade on a Dell PC, and it upgraded successfully.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libsmbios - 2.2.13-0ubuntu4.1

---------------
libsmbios (2.2.13-0ubuntu4.1) lucid-proposed; urgency=low

  * Add missing struct import (LP: #604029)
 -- Stefano Rivera <email address hidden> Wed, 21 Jul 2010 20:17:58 +0200

Changed in libsmbios (Ubuntu Lucid):
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.