I upgraded my R4.0 installation to R4.1, I noticed 2 things:
When I execute qubes-dom0-update, the sys-whonix window appears and checks for updates, when it is done it immediately disappears. I filmed it with my phone and found that it outputs:
Removing dependent packages:
* a number of python2 packages *
Transaction summary
Remove 14 packages
Freed space 14MB
DNF will only download packages for the transaction
Then dom0 terminal reports no updates found. Shouldn’t it ask about removing those packages?
When I try to install a package with qubes-dom0-update, the sys-whonix window closes early and I get an error about downloading the metadata for the cache repository:
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time...
Qubes OS Repository for Dom0 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'qubes-dom0-cached':
- Curl error (37): Couldn't read a file:// file for file:///var/lib/qubes/updates/repodata/repomd.xml [Couldn't open file /var/lib/qubes/updates/repodata/repomd.xml]
Error: Failed to download metadata for repo 'qubes-dom0-cached': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Check this issue, there are some instructions to fix this problem:
opened 09:48PM - 10 Dec 21 UTC
closed 01:10AM - 18 Apr 22 UTC
T: bug
P: critical
C: mgmt
r4.0-dom0-stable
diagnosed
pr submitted
C: updates
### 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’
It doesn’t seem like the same issue. When I run sudo qubesctl --show-output state.sls update.qubes-dom0
I do get the warning:
[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
But not the error about module localemod, and after the warning, the update reports system is already up to date.
I tried anyway to remove python2 packages, used the commands to clean salt cache, removing qubes-mgmt-salt-base-overrides wasn’t necessary because it was already no longer installed, default kernel version already was 5.10 and kernel-devel is not installed.
I still have the same issues with qubes-dom0-update.
Switching the UpdateVM from sys-whonix to sys-firewall(fedora-35 template) also does not make a difference.
Here was the same error:
opened 06:40PM - 09 Sep 21 UTC
T: bug
P: default
needs diagnosis
C: updates
### Qubes OS release
4.1beta
### Brief summary
Since suspend does not w… ork well with the 5.10 default kernel in 4.1, I wanted to test the most uptodate `kernel-latest`, and without much fuss just tried:
```
[root@dom0 ~]# qubes-dom0-update kernel-latest
Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time...
Qubes OS Repository for Dom0 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'qubes-dom0-cached':
- Curl error (37): Couldn't read a file:// file for file:///var/lib/qubes/updates/repodata/repomd.xml [Couldn't open file /var/lib/qubes/updates/repodata/repomd.xml]
Error: Failed to download metadata for repo 'qubes-dom0-cached': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@dom0 ~]# ls /var/lib/qubes/updates/repodata/
[root@dom0 ~]#
```
Digging a bit I found https://github.com/QubesOS/qubes-issues/issues/1685 which was about a "nothing to update" case.
Now if I just run `qubes-dom0-update` I see downoads going on; I interrupt this with Ctrl-C and try again my original commandline:
```
[root@dom0 ~]# qubes-dom0-update kernel-latest
Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time...
Qubes OS Repository for Dom0 2.9 MB/s | 3.0 kB 00:00
Qubes OS Repository for Dom0 4.0 MB/s | 70 kB 00:00
Package kernel-latest-1000:5.12.9-1.fc25.qubes.x86_64 is already installed.
Package kernel-latest-1000:5.12.14-1.fc25.qubes.x86_64 is already installed.
Package kernel-latest-1000:5.12.14-1.fc32.qubes.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@dom0 ~]#
```
... so this looks like an edge case not fixed with #1685 ?
But there was no solution.
2 Likes