Fwupdmgr does not work on Ubuntu 16.04.2

Bug #1673744 reported by Peter Zhang - Lenovo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fwupd (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Triaged
Undecided
Unassigned
Yakkety
Fix Released
Undecided
Unassigned
Zesty
Fix Released
Undecided
Unassigned

Bug Description

Lenovo PA team found that fwupdmgr fails to schedule firmware update on Ubuntu 16.04.2, in their internal test.
Ubuntu 16.04.2 obtained from http://releases.ubuntu.com/16.04/ubuntu-16.04.2-desktop-amd64.iso.

Fwupdmgr shows the following error message and stops.

lenovo@lenovo-ThinkPad-X1-Carbon-5th:~$ fwupdmgr -v --allow-older --allow-reinstall install Lenovo-ThinkPad-X1Carbon-SystemFirmware-0.1.16.cab
* Decompressing firmware
HKR->FirmwareVersion missing from [Firmware_AddReg]
lenovo@lenovo-ThinkPad-X1-Carbon-5th:~$

The same cabinet file completely works fine on clean-installed Ubuntu 16.10 obtained from http://releases.ubuntu.com/16.10/ubuntu-16.10-desktop-amd64.iso.
On Ubuntu 16.10, fwupdmgr succeeds to schedule firmware update.
With the manual workaround, firmware update process finishes without any errors.

The error message indicates that something is wrong in firmware.inf file in the cabinet file, but the firmware.inf is almost identical to the one on http://fwupd.org.s3-website-eu-west-1.amazonaws.com/vendors.html except for version number or GUIDs. And completely works on Ubuntu 16.10. So I don’t think that something in firmware.inf is wrong. I attach the firmware.inf I used.

I suppose that the firmware update module in Ubuntu 16.04 would have some bug, and the bug seems to be fixed with Ubuntu 16.10. Is it known issue?

Revision history for this message
Richard Hughes (richard-hughes) wrote :

Yes, old versions of fwupd verified the contents of the .inf file, and new ones do not. This was done to avoid subtle incompatibilities with files submitted into Windows Update. If you want it to work with 16.04, I think you can safely omit the .inf file in the cab file.

Changed in fwupd (Ubuntu Zesty):
status: New → Fix Released
Changed in fwupd (Ubuntu Xenial):
status: New → Won't Fix
Changed in fwupd (Ubuntu Yakkety):
status: New → Fix Released
Revision history for this message
Ivan Hu (ivan.hu) wrote :

@Richard,
Do you mean that *.cab only needs to include firmware.bin and firmware.metainfo.xml?
For old and new version can both support by removing firmware.inf from *.cab?

Changed in fwupd (Ubuntu Xenial):
status: Won't Fix → Triaged
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.