ubuntu 22.04 fwupd apt package seems broken (library / daemon version mismatch)

Bug #2046992 reported by James
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fwupd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On Ubuntu 22.04.03, the fwupd package fails to perform a clean apt install.
The error given upon service startup is the following:

Dec 19 21:36:46 jwlandon-ThinkPad-E14-Gen-2 fwupd[9985]: Failed to load engine: libfwupd version 1.9.4 does not match daemon 1.7.9

More info below:

System version:
root@jwlandon-ThinkPad-E14-Gen-2:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

No fwupd related packages installed:
root@jwlandon-ThinkPad-E14-Gen-2:~# apt list --installed 2> /dev/null |grep fwupd

Now I install fwupd:
root@jwlandon-ThinkPad-E14-Gen-2:~# apt install fwupd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fwupd-signed libfwupd2 libfwupdplugin5
Suggested packages:
  gir1.2-fwupd-2.0
The following NEW packages will be installed:
  fwupd fwupd-signed libfwupd2 libfwupdplugin5
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,889 kB of archives.
After this operation, 7,989 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package libfwupd2:amd64.
(Reading database ... 329400 files and directories currently installed.)
Preparing to unpack .../libfwupd2_1.7.9-1~22.04.3_amd64.deb ...
Unpacking libfwupd2:amd64 (1.7.9-1~22.04.3) ...
Selecting previously unselected package libfwupdplugin5:amd64.
Preparing to unpack .../libfwupdplugin5_1.7.9-1~22.04.3_amd64.deb ...
Unpacking libfwupdplugin5:amd64 (1.7.9-1~22.04.3) ...
Selecting previously unselected package fwupd.
Preparing to unpack .../fwupd_1.7.9-1~22.04.3_amd64.deb ...
Unpacking fwupd (1.7.9-1~22.04.3) ...
Selecting previously unselected package fwupd-signed.
Preparing to unpack .../fwupd-signed_1.51.1~22.04.1+1.4-0ubuntu0.1_amd64.deb ...
Unpacking fwupd-signed (1.51.1~22.04.1+1.4-0ubuntu0.1) ...
Setting up libfwupd2:amd64 (1.7.9-1~22.04.3) ...
Setting up fwupd-signed (1.51.1~22.04.1+1.4-0ubuntu0.1) ...
Setting up libfwupdplugin5:amd64 (1.7.9-1~22.04.3) ...
Setting up fwupd (1.7.9-1~22.04.3) ...
fwupd-offline-update.service is a disabled or a static unit, not starting it.
fwupd-refresh.service is a disabled or a static unit, not starting it.
fwupd-refresh.timer is a disabled or a static unit, not starting it.
fwupd.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

fwupd packages are now installed:
root@jwlandon-ThinkPad-E14-Gen-2:~# apt list --installed 2> /dev/null |grep fwupd
fwupd-signed/jammy-updates,now 1.51.1~22.04.1+1.4-0ubuntu0.1 amd64 [installed,automatic]
fwupd/jammy-updates,now 1.7.9-1~22.04.3 amd64 [installed]
libfwupd2/jammy-updates,now 1.7.9-1~22.04.3 amd64 [installed,automatic]
libfwupdplugin5/jammy-updates,now 1.7.9-1~22.04.3 amd64 [installed,automatic]

Service is unable to start:
root@jwlandon-ThinkPad-E14-Gen-2:~# systemctl start fwupd
Job for fwupd.service failed because the control process exited with error code.
See "systemctl status fwupd.service" and "journalctl -xeu fwupd.service" for details.

Service complains about a library to daemon sw version mismatch:
root@jwlandon-ThinkPad-E14-Gen-2:~# systemctl status fwupd
× fwupd.service - Firmware update daemon
     Loaded: loaded (/lib/systemd/system/fwupd.service; static)
     Active: failed (Result: exit-code) since Tue 2023-12-19 21:36:46 PST; 20s ago
       Docs: https://fwupd.org/
    Process: 9985 ExecStart=/usr/libexec/fwupd/fwupd (code=exited, status=1/FAILURE)
   Main PID: 9985 (code=exited, status=1/FAILURE)
        CPU: 59ms

Dec 19 21:36:46 jwlandon-ThinkPad-E14-Gen-2 systemd[1]: Starting Firmware update daemon...
Dec 19 21:36:46 jwlandon-ThinkPad-E14-Gen-2 fwupd[9985]: Failed to load engine: libfwupd version 1.9.4 does not match daemon 1.7.9
Dec 19 21:36:46 jwlandon-ThinkPad-E14-Gen-2 systemd[1]: fwupd.service: Main process exited, code=exited, status=1/FAILURE
Dec 19 21:36:46 jwlandon-ThinkPad-E14-Gen-2 systemd[1]: fwupd.service: Failed with result 'exit-code'.
Dec 19 21:36:46 jwlandon-ThinkPad-E14-Gen-2 systemd[1]: Failed to start Firmware update daemon.

James (bizbat)
summary: - ubuntu 22.04 fwupd apt package seems broken
+ ubuntu 22.04 fwupd apt package seems broken (library / daemon version
+ mismatch)
James (bizbat)
description: updated
Revision history for this message
Mario Limonciello (superm1) wrote :

Do you have something in /usr/local perhaps? Or did you have a snap installed for fwupd?

affects: gnome-software (Ubuntu) → fwupd (Ubuntu)
Changed in fwupd (Ubuntu):
status: New → Incomplete
Revision history for this message
Oliver Kelly (0lzi) wrote :

Not sure if related, I had an issue with this package, Kept failing to update in the `Ubuntu Software`. My issue was the snap and deb package were installed. But I could also not remove the snap

```
➜ oliverkelly ~ sudo snap remove fwupd
error: cannot perform the following tasks:
- Stop snap "fwupd" services (systemctl command [stop snap.fwupd.fwupd.service] failed with exit status 5: stderr:
Failed to stop snap.fwupd.fwupd.service: Unit snap.fwupd.fwupd.service not loaded.)
```

had to `sudo sytemctl stop fwupd` then `sudo snap remove fwupd` and then the apt version worked as expected.

Revision history for this message
James (bizbat) wrote :

> Do you have something in /usr/local perhaps?
I have a lot of fwupd files under /usr/local/* . See attached file.

>Or did you have a snap installed for fwupd?
There is a good chance that I installed a snap, but there is no fwupd snap installed now.

Revision history for this message
James (bizbat) wrote :

I noticed remnants of an old fwupd installation. Once removed, the service was able to install and load.
Closing as this does not need to be fixed.
thank all.

Changed in fwupd (Ubuntu):
status: Incomplete → Invalid
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.