I tried to fix the issue with the Qubes Update following this
Continuing the discussion from Understanding "Qubes Updater" :
Upon reading this thread , I decided to run manually a full update (all templates + Dom0). To my surprise, Dom0 updated linux-firmware new: 20211216 old: 20200122, and linux-firmware-whence new: 20211216 old: 20200122, and many other updates. Does this mean that updates were available for 3 months, but the Qubes Updater failed to find that?
Also, is there a simple command to manually run Qubes Updater for all available templates + Do…
and
If I get it right I should just do this in dom0 to get it fixed:
qubes-dom0-update --clean -y
download works, dependencies resolved, installing and upgrading…
It works well until the final (y/N)
- I confirmed with a y
and the terminal returns:
Transaction Summary
================================================================================
Install 3 Packages
Upgrade 40 Packages
Total size: 229 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
file /usr/lib/.build-id/10/426e215ebe20c87b885515b0c3a9b3284e0a68 from install of kernel-devel-1000:5.10.109-1.fc32.qubes.x86_64 conflicts with file from package kernel-devel-1000:5.10.96-1.fc32.qubes.x86_64
Seems to be some bug after upgrading 4.0 to 4.1:
After removing kernel-devel, the dom0 update was successful.
opened 09:48PM - 10 Dec 21 UTC
closed 01:10AM - 18 Apr 22 UTC
T: bug
P: critical
C: mgmt
r4.0-dom0-stable
r4.1-buster-stable
r4.1-bullseye-stable
r4.1-dom0-stable
diagnosed
pr submitted
C: updates
r4.1-centos-stream8-stable
r4.1-bookworm-stable
r4.1-fc36-stable
C: dist upgrade
r4.1-fc37-stable
affects-4.1
### Qubes OS release
Qubes R4.1
xen_version : 4.14.3
Linux 5.15.5-… 1.fc32.qubes.x86_64
Installed Packages:
grub2-qubes-theme.x86_64 5.14.4-2.fc32
kernel-latest-qubes-vm.x86_64 1000:5.14.15-1.fc25.qubes
kernel-latest-qubes-vm.x86_64 1000:5.15.5-1.fc25.qubes
kernel-latest-qubes-vm.x86_64 1000:5.15.5-1.fc32.qubes
kernel-qubes-vm.x86_64 1000:5.4.151-1.fc25.qubes
kernel-qubes-vm.x86_64 1000:5.4.156-1.fc25.qubes
kernel-qubes-vm.x86_64 1000:5.10.76-1.fc32.qubes
python2-qubesadmin.noarch 4.0.32-1.fc25
python2-qubesimgconverter.x86_64 4.0.31-1.fc25
python3-qubesadmin.noarch 4.1.18-1.fc32
python3-qubesdb.x86_64 4.1.11-1.fc32
python3-qubesimgconverter.x86_64 4.1.16-1.fc32
qubes-anaconda-addon.noarch 4.1.7-1.fc32
qubes-artwork.noarch 4.1.12-1.fc32
qubes-artwork-plymouth.noarch 4.1.12-1.fc32
qubes-audio-daemon.x86_64 4.1.19-1.fc32
qubes-audio-dom0.x86_64 4.1.19-1.fc32
qubes-core-admin-addon-whonix.noarch 4.0.2-1.fc32
qubes-core-admin-client.noarch 4.1.18-1.fc32
qubes-core-dom0.noarch 4.1.23-1.fc32
qubes-core-dom0-linux.x86_64 4.1.16-1.fc32
qubes-core-dom0-linux-kernel-install.x86_64 4.1.16-1.fc32
qubes-core-qrexec.x86_64 4.1.15-1.fc32
qubes-core-qrexec-dom0.x86_64 4.1.15-1.fc32
qubes-core-qrexec-libs.x86_64 4.1.15-1.fc32
qubes-db.x86_64 4.1.11-1.fc32
qubes-db-dom0.x86_64 4.1.11-1.fc32
qubes-db-libs.x86_64 4.1.11-1.fc32
qubes-desktop-linux-common.noarch 4.1.11-1.fc32
qubes-desktop-linux-manager.noarch 4.1.11-1.fc32
qubes-dist-upgrade.noarch 4.0.3-1.fc25
qubes-gpg-split-dom0.x86_64 2.0.54-1.fc32
qubes-gui-daemon.x86_64 4.1.19-1.fc32
qubes-gui-dom0.x86_64 4.1.19-1.fc32
qubes-img-converter-dom0.x86_64 1.2.11-1.fc32
qubes-input-proxy.x86_64 1.0.25-1.fc32
qubes-input-proxy-receiver.x86_64 1.0.25-1.fc32
qubes-libvchan-xen.x86_64 4.1.7-1.fc32
qubes-manager.noarch 4.1.22-1.fc32
qubes-menus.noarch 4.1.11-1.fc32
qubes-mgmt-salt.noarch 4.1.13-1.fc32
qubes-mgmt-salt-admin-tools.noarch 4.1.13-1.fc32
qubes-mgmt-salt-base.noarch 4.1.4-1.fc32
qubes-mgmt-salt-base-config.noarch 4.1.1-1.fc32
qubes-mgmt-salt-base-overrides-libs.noarch 4.0.2-1.fc25
qubes-mgmt-salt-base-topd.noarch 4.1.3-1.fc32
qubes-mgmt-salt-config.noarch 4.1.13-1.fc32
qubes-mgmt-salt-dom0.noarch 4.1.13-1.fc32
qubes-mgmt-salt-dom0-qvm.noarch 4.1.4-1.fc32
qubes-mgmt-salt-dom0-update.noarch 4.1.8-1.fc32
qubes-mgmt-salt-dom0-virtual-machines.noarch 4.1.15-1.fc32
qubes-pdf-converter-dom0.x86_64 2.1.12-1.fc32
qubes-release.noarch 4.1-0.27
qubes-release-notes.noarch 4.1-0.27
qubes-repo-templates.noarch 4.1.2-1.fc32
qubes-rpm-oxide.x86_64 0.2.2-1.fc32
qubes-usb-proxy-dom0.noarch 1.1.1-1.fc32
qubes-utils.x86_64 4.1.16-1.fc32
qubes-utils-libs.x86_64 4.1.16-1.fc32
xfce4-settings-qubes.x86_64 4.0.5-2.fc32
### Brief summary
After upgrade from Qubes 4.0 to 4.1 an update of dom0 and templates returned the following warning and error:
[WARNING ] /usr/lib/python3.8/site-packages/salt/utils/files.py:396: RuntimeWarning:
line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
[ERROR ] Failed to import module localemod, this is due most likely to a syntax error
### Steps to reproduce
Perform a version upgrade of Qubes from version 4.0 to 4.1 then either run Qubes Update from the menu or:
sudo qubesctl --show-output state.sls update.qubes-dom0
sudo qubesctl --show-output --skip-dom0 --targets=debian-10,whonix-gw-16,whonix-ws-16 state.sls update.qubes-vm
sudo qubesctl --show-output --skip-dom0 --targets=fedora-34,fedora-34-unt state.sls update.qubes-vm
### Expected behavior
Updates complete without error.
### Actual behavior
After upgrade from Qubes 4.0 to 4.1 an update of dom0 and templates returned the following warning and error:
[WARNING ] /usr/lib/python3.8/site-packages/salt/utils/files.py:396: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
[ERROR ] Failed to import module localemod, this is due most likely to a syntax error:
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/salt/loader.py”, line 1685, in _load_module
mod = spec.loader.load_module()
File “”, line 522, in _check_name_wrapper
File “”, line 1027, in load_module
File “”, line 852, in load_module
File “”, line 265, in _load_module_shim
File “”, line 702, in _load
File “”, line 671, in _load_unlocked
File “”, line 848, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/var/cache/salt/minion/extmods/modules/localemod.py”, line 222, in
@decorators.which(‘locale-gen’)
AttributeError: module ‘salt.utils.decorators’ has no attribute ‘which’
Well, neither the Qubes Updater nor the sudo qubes-dom0-update
can fix it.
Try to remove the kernel-devel package and update again. In dom0 terminal:
sudo dnf remove kernel-devel
1 Like
This looks good now. Let me reboot and see if the Qubes Updater works now.
Rebooted all looks good now.
Just the Qube Updater took three inruns to get all templates updated.
Thanks @tzwcfq for your quick support!