I checked out this other thread (Error 126 while Updating the OS from Terminal) because qubes-dom0-update was throwing retcode 126 as well but it is likely unrelated; IMHO the other issue is incorrectly fixed and no valid solutions were recommended.
output from :
sudo qubesctl --show-output state.sls update.qubes-dom0
local:
----------
ID: /etc/yum.repos.d/qubes-dom0.repo
Function: file.replace
Result: True
Comment: No changes needed to be made
Started: 15:47:36.545518
Duration: 12.77 ms
Changes:
----------
ID: /etc/yum.repos.d/qubes-templates.repo
Function: file.replace
Result: True
Comment: No changes needed to be made
Started: 15:47:36.559206
Duration: 2.576 ms
Changes:
----------
ID: update
Function: cmd.script
Result: True
Comment: Cache cleaned
Started: 15:47:36.562847
Duration: 13538.462 ms
Changes:
----------
ID: update
Function: pkg.uptodate
Result: False
Comment: Problem encountered upgrading packages. Additional info follows:
result:
----------
pid:
85251
retcode:
126
stderr:
Running scope as unit: run-r4dc538318f154a21a1a0e186dff04260.scope
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time...
Unable to detect release version (use '--releasever' to specify release version)
Request refused
'/usr/lib/qubes/qrexec-client-vm dom0 qubes.ReceiveUpdates /usr/lib/qubes/qfile-agent /var/lib/qubes/dom0-updates/packages/*.rpm' failed with exit code 126!
stdout:
Started: 15:47:52.303487
Duration: 241014.943 ms
Changes:
Summary for local
------------
Succeeded: 3
Failed: 1
------------
Total states run: 4
Total run time: 254.569 s
etc release files
/etc/qubes-release — content — Qubes release 4.2.2 (R4.2)
/etc/redhat-release — content — Qubes release 4.2.2 (R4.2)
/etc/fedora-release — content — Qubes release 4.2.2 (R4.2)
not sure of the issue or how to fix it because my release files are intact and correct, maybe I am meant to be using the fedora release num instead (37?).
as of the moment I cannot update my machine through the qubes GUI or CLI regarding dom0 though updating VMs individually through CLI from within vm-templates seems to work while updating the same vms from the GUI does not work (both should be using tor routing); the GUI results in Errors from fetching index files which are clearly reachable through apt-get over tor, and dom0 updates over and over while appearing to be successful as indicated by the check mark next to the update.
excuse my formatting