Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fwupdmgr get-updates hangs if run before fwupdmgr refresh #9820

Open
zaz opened this issue Mar 3, 2025 · 0 comments
Open

fwupdmgr get-updates hangs if run before fwupdmgr refresh #9820

zaz opened this issue Mar 3, 2025 · 0 comments
Labels
affects-4.2 This issue affects Qubes OS 4.2. C: firmware C: updates needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.

Comments

@zaz
Copy link

zaz commented Mar 3, 2025

Qubes OS release

Qubes OS 4.2

Brief summary

Running qubes-fwupdmgr get-updates hangs if you run it before qubes-fwupdmgr refresh.

Steps to reproduce

  1. Fresh install on a StarLabs StarBook Ultra
  2. sudo qubes-fwupdmgr get-updates
  3. Wait

Expected behavior

Either show updates or show an error stating that qubes-fwupdmgr refresh must be run first.

Better yet, check not only if qubes-fwupdmgr refresh has been run, but when it has last been run, and show a warning if it is old (to avoid a user falsely thinking there are no new updates without realizing they need to refresh before running get-updates).

Actual behavior

qubes-fwupdmgr hangs. When terminated with Ctrl + C, outputs the following:

$ sudo qubes-fwupdmgr get-updates
^CTraceback (most recent call last):
  File "/usr/sbin/qubes-fwupdmgr", line 731, in <module>
    main()
  File "/usr/sbin/qubes-fwupdmgr", line 709, in main
    q.get_updates_qubes()
  File "/usr/sbin/qubes-fwupdmgr", line 586, in get_updates_qubes
    self._get_dom0_updates()
  File "/usr/sbin/qubes-fwupdmgr", line 196, in _get_dom0_updates
    new_data = os.read(mstdout, 4096)
               ^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

Additional information

After running qubes-fwupdmgr refresh, it works as expected:

$ sudo qubes-fwupdmgr get-updates
======================================================
Dom0 updates:
======================================================
No updates available.
@zaz zaz added the P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. label Mar 3, 2025
@andrewdavidwong andrewdavidwong added needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. C: updates affects-4.2 This issue affects Qubes OS 4.2. C: firmware labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.2 This issue affects Qubes OS 4.2. C: firmware C: updates needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.
Projects
None yet
Development

No branches or pull requests

2 participants