Unable to update Fwupate_12 on my ubuntu_18.04

Asked by Sudarsanan

Hi Sir/Mam,

I am trying to upgrade Fwupdate package and i followed the below instruction.

1. Update package lists: sudo apt-get update
2. Start installation: sudo apt-get install fwupdate

With this command in terminal i able to see the following
" fwupdate is already the newest version(10-3)"

I can see that fwupdate-12-3 available in the following link,
https://launchpad.net/ubuntu/+source/fwupdate

i was able to download the same and tried executing the make file and i get the error stating
/bin/sh 1: gcc: not found
***Architecture is not supported build target.. stop

The Ubuntu OS i use is 18.04.1 LTS.

It would be great if you could help me on this issue.

Regards
Sudarsan

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu fwupdate Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Its only at 12-3 for Cosmic. The version for Bionic is 10-3. You aren't using Cosmic

Is the 10-3 version not working OK for you?

Revision history for this message
Sudarsanan (sudarsan06) said :
#2

Hi Andrew ,

Thank you so much for the response.

I have an issue on performing capsule update on Ubuntu 18.04 (Bionic). The capsule update is not successful.

Whereas i can see that capsule update works fine on Ubuntu 17.10. On researching further that issue was due to fwupdmgr and a bug has been raised for the same. Sharing the link of the same,

https://bugs.launchpad.net/ubuntu/+source/fwupdate/+bug/1785165

On the above bug id its mentioned ( Fwudpate package on 18.04(version 10-3) included the "Handle ux capsule updates" causes those machine with AMI firmware cannot do firmware update.) and i believe the patch for this issue is available on fwupdate_12.

Please correct me if i am wrong.

Also it will be very helpful, if you provide me steps to install the work around for capsule update for my Ubuntu OS 18.04.

Best Regards,
Sudarsan

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

This PPA has 11-0

https://launchpad.net/~ivan.hu/+archive/ubuntu/test?field.series_filter=bionic

sudo add-apt-repository ppa:ivan.hu/test
sudo apt-get update
sudo apt-get upgrade

This comes with the usual caveats of a PPA

Does this help?

Revision history for this message
Sudarsanan (sudarsan06) said :
#4

Dear Andrew,

Thanks for prompt response.

I followed the steps you mentioned above, unfortunately i am still not able to the capsule update been done.

sudo add-apt-repository ppa:ivan.hu/test
sudo apt-get update
sudo apt-get upgrade

After this command i can see my updating messages in my terminal window, yet i suspect that fwupdate has not been updated to 11 as mentioned in the link you provided.

I gave fwupdate --version i can see the following,

client version: 1.0.6
daemon version: 1.0.6

compile-time dependency versions
appstream-glib : 0.7.4
gusb: 0.2.11
fwupdate: 10
efivar: 34

From the above i can see that fwupdate is still 10 even after executing the command you mentioned. Is that expected?
Can you please let me know if you need any specific log that i can provide you from ubuntu(Please let me know the steps as well).
I am glad to provide you the information that is required for you.

Thanks,
Sudarsan

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What is the output of the command

apt-cache policy fwupdate libfwup1

If you urgently need version 12 of fwupdate, then you could try manually installing the version for cosmic on your bionic system.
(Disclaimer: This is a non-standard action with the package management system. No warranty given.)

Which Ubuntu version (32bit or 64bit) are you running?

If 64bit (a.k.a. amd64):
Download
https://launchpad.net/ubuntu/+archive/primary/+files/fwupdate_12-3ubuntu2_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libfwup1_12-3ubuntu2_amd64.deb
to your hard disk, change directory into the directory where you stored the files and install the packages with
sudo dpkg --install fwupdate_12-3ubuntu2_amd64.deb libfwup1_12-3ubuntu2_amd64.deb

If 32bit (a.k.a. i386):
Download
https://launchpad.net/ubuntu/+archive/primary/+files/fwupdate_12-3ubuntu2_i386.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libfwup1_12-3ubuntu2_i386.deb
to your hard disk, change directory into the directory where you stored the files and install the packages with
sudo dpkg --install fwupdate_12-3ubuntu2_i386.deb libfwup1_12-3ubuntu2_i386.deb

Revision history for this message
Sudarsanan (sudarsan06) said :
#6

Dear Hampl,

Thanks you so much for your response.

Please find the following answers,

1. Output of the command: apt-cache policy fwupdate libfwup1

fwupdate:
  Installed: 10-3
  Candidate: 11-0ubuntu1
  Version table:
     11-0ubuntu1 500
        500 http://ppa.launchpad.net/ivan.hu/test/ubuntu bionic/main amd64 Packages
 *** 10-3 500
        500 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
libfwup1:
  Installed: 10-3
  Candidate: 11-0ubuntu1
  Version table:
     11-0ubuntu1 500
        500 http://ppa.launchpad.net/ivan.hu/test/ubuntu bionic/main amd64 Packages
 *** 10-3 500
        500 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

2. Which Ubuntu version (32bit or 64bit) are you running?

My Ubuntu version is 64bit.

3. Yes, i was able to download and update the fwupdate_12 manually with the above instructions you shared. But still i am unable to perform the capsule update(System reboots back to same BIOS).

I have made sure that the fwupdate is updated as per the instruction. i can see it is updated after the below instruction

administrator@administrator-D3543-Sx:~/Desktop$ sudo dpkg --install fwupdate_12-3ubuntu2_amd64.deb libfwup1_12-3ubuntu2_amd64.deb
(Reading database ... 161803 files and directories currently installed.)
Preparing to unpack fwupdate_12-3ubuntu2_amd64.deb ...
Unpacking fwupdate (12-3ubuntu2) over (12-3ubuntu2) ...
Preparing to unpack libfwup1_12-3ubuntu2_amd64.deb ...
Unpacking libfwup1:amd64 (12-3ubuntu2) over (12-3ubuntu2) ...
Setting up libfwup1:amd64 (12-3ubuntu2) ...
Setting up fwupdate (12-3ubuntu2) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
administrator@administrator-D3543-Sx:~/Desktop$ apt-cache policy fwupdate libfwup1

administrator@administrator-D3543-Sx:~/Desktop$ apt-cache policy fwupdate libfwup1
fwupdate:
  Installed: 12-3ubuntu2
  Candidate: 12-3ubuntu2
  Version table:
 *** 12-3ubuntu2 100
        100 /var/lib/dpkg/status
     11-0ubuntu1 500
        500 http://ppa.launchpad.net/ivan.hu/test/ubuntu bionic/main amd64 Packages
     10-3 500
        500 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
libfwup1:
  Installed: 12-3ubuntu2
  Candidate: 12-3ubuntu2
  Version table:
 *** 12-3ubuntu2 100
        100 /var/lib/dpkg/status
     11-0ubuntu1 500
        500 http://ppa.launchpad.net/ivan.hu/test/ubuntu bionic/main amd64 Packages
     10-3 500
        500 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Now i wonder why that patch doesn't works fine for me.

For more information regarding this issue, during my capsule update i see the following difference

1. In Ubuntu Version 18.04
                                sudo fwupdmgr install (file-to-cab-file)
Got the following
     Decompressing.. Authenticating.. Scheduling..
2. In Ubuntu Version 17.10
                              sudo fwupdmgr install (file-to-cab-file)
Got the following
    Decompressing.. Scheduling..

I was able to see that Authenticating.. was missing in 17.10 Ubuntu OS and i believe that fwupdate contains the patch to resolve the capsule header size as mentioned in the below link.

https://bugs.launchpad.net/ubuntu/+source/fwupdate/+bug/1785165

Please correct me if my understandings are wrong.

Thanks for the great help.

Regards,
Sudarsan

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

What output do you now receive for the command
fwupdate --version

and eventually for the commands
fwupdate --info
fwupdate --list
fwupdate --supported

Remark:
Your output
"apt-cache policy fwupdate libfwup1
fwupdate:
   Installed: 10-3
   Candidate: 11-0ubuntu1"
from the moment before upgrading to version 12-3 shows that you did not have version 11 at that time.

Revision history for this message
Sudarsanan (sudarsan06) said :
#8

Dear Hampl,

The following are the output i receive,

administrator@administrator-D3543-Sx:~$ sudo fwupdate --version
fwupdate version: 12

administrator@administrator-D3543-Sx:~$ sudo fwupdate --info
Information for the update status entry 0:
  Information Version: 7
  Firmware GUID: {def41966-5b56-4205-af27-333534335378}
  Capsule Flags: 0x00000000
  Hardware Instance: 0
  Update Status: Unknown
  Capsule File Path:

Information for the update status entry 1:
  Information Version: 7
  Firmware GUID: {ux_capsule}
  Capsule Flags: 0x00000000
  Hardware Instance: 0
  Update Status: Unknown
  Capsule File Path:

administrator@administrator-D3543-Sx:~$ sudo fwupdate --list
System Firmware type, {def41966-5b56-4205-af27-333534335378} version 17039616 can be updated to any version above 17039615
System Firmware type, {ux_capsule} version 1 can be updated to any version above 0

administrator@administrator-D3543-Sx:~$ sudo fwupdate --supported
Firmware updates are supported on this machine.

Regarding your query,

Yes my fwupdate version was 10-3 before upgrading to version 12-3, and in comment #3 mentioned by Andrew, i followed the steps and i was not able to get fwupdate-11. I have mentioned the same in comment #4.

Kindly let me know if i have to install fwupdate 11 and perform the capsule update.

Also kindly provide me the instruction for the same to install and verify if fwupdate 11 is been updated successfully.

Thanks,
Sudarsan

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#9

1. For the version 10 / version 11 question:
It seems that after enabling the PPA you either did not execute the command "sudo apt-get upgrade", or something went wrong with that command. To verify this, it would be necessary to see the error message that was shown at that time. In any case this is obsolete now, because you already have version 12 installed.

2. Your output shows that you have fwupdate version 12 installed, and the info and list commands confirm that they identify ux_capsule firmware. My assumption is that the updates should now work. I cannot give any other solution.

Revision history for this message
Sudarsanan (sudarsan06) said :
#10

Thanks Manfred Hampl, that solved my question.