Closed Aekez closed 6 years ago
Can you paste example output from sudo qubes-dom0-update
from affected system? Does qubes-dom0-update --clean
help?
Certainly, as requested I did it with today's updates' from current-testing. As requested I did without --clean first, followed up and did the exact same steps again but with added --clean option. I'll wait with manually installing these updates for 48 hours in case more information is needed, or wait longer if requested to do so.
rpm -K /var/lib/qubes/update/rpm/*.rpm
to check hash/keys, looks ok.rpm -K /var/lib/qubes/update/rpm/*.rpm
to check hash/keys, looks ok.Are you sure you don't have those versions already installed? For me it looks like it downloads packages which you already have. Check for example rpm -q xen
.
Note the user is different because I originally replaced it with "user" due for anonymity, but I thought a screenshot might be better, hence the difference.
This bug happens every time there are new dom0 updates available for at least some weeks now. It never made any difference if I use --clean, --refresh or without, it still won't trigger the dnf install process. The downloading of updates to dom0 always seem to work perfectly though.
I just remembered there is one difference for this machine compared to other Qubes machines that might be important to mention, since it has an integrated Ryzen mobile GPU, installing Qubes normally was not possible (no-graphics) due to kernel version the Linux-firmware version included in the Qubes installer.
I used the unix DD
command to disc-clone everything on a different Qubes machine. First I updated everything on the working hardware, and installed the newest available kernel-latest and Linux-firmware in the Qubes repo's at the time. Then I moved everything with DD
to the Ryzen laptop then made the system work.
So the act of using DD, could maybe change the dom0 integrity? I do not remember if these two overlap in time though, but I thought it might be important to mention just in case my scenario qubes-dom0-update issue is unique, and if that is indeed the case then this can be closed and I can just wait for the newest Qubes installer (I don't mind at all doing manual installs until then).
I don't think dd could cause this problem.
Lets see what cause qubes-dom0-update
think there are no updates, try this: sudo bash -x /usr/bin/qubes-dom0-update
I don't think dd could cause this problem.
That's reassuring, it seems like it would have been a wide area of uncertainty if it could.
Here's the log when running sudo bash -x /usr/bin/qubes-dom0-update
qubes-dom0-update-with-bash-x.log
I've been poking at this since I'm hit by this bug too. It appears that this check:
fails. Where is that file supposed to come from?
On Fri, Aug 17, 2018 at 10:26:54PM -0700, AJ Jordan wrote:
I've been poking at this since I'm hit by this bug too. It appears that this check:
fails. Where is that file supposed to come from?
It is created by createrepo call here
It is created by createrepo call here
Interesting. I do not have a /usr/bin/createrepo_c
on my system, although I do have /usr/bin/createrepo
. So it seems like that call is probably failing and the error is not being handled? Why might that binary be missing?
$ rpm -q createrepo
createrepo-0.10.3-10.fc25.noarch
Running sudo ln -s /usr/bin/createrepo /usr/bin/createrepo_c
in dom0 solved this issue for me.
createrepo_c is in different package: createrepo_c. Apparently package dependencies are wrong.
Automated announcement from builder-github
The package qubes-core-dom0-linux-4.0.16-1.fc25
has been pushed to the r4.0
testing repository for dom0.
To test this update, please install it with the following command:
sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
Automated announcement from builder-github
The package qubes-core-dom0-linux-4.0.16-1.fc25
has been pushed to the r4.0
stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
Hmm I am seeing this bug with qubes-core-dom0-linux-4.0.17-1.fc25
and using the new fedora-29 template as an update VM. I see the same behavior where updates are downloaded but not installed. But when inspecting the packages that were downloaded, I can see those same versions are already installed. Using --clean doesn't make any difference either.
Thoughts @marmarek ?
Edit: I missed the fact that dnf said it was reinstalling
the packages. But I am unsure why, as I'm executing sudo qubes-dom0-update --clean --verbose
.
Qubes OS version:
Qubes 4.0.
Affected component(s):
Steps to reproduce the behavior:
Expected behavior:
qubes-dom0-update to automatically verify and install the otherwise correctly downloaded dom0 updates.
Actual behavior:
rpm -K /var/lib/qubes/updates/rpm/*.rpm
shows the downloaded files are ok "whole and matching".General notes:
Manual fix is easy though, but only if the user realizes the problem and the fix
rpm -K /var/lib/qubes/updates/rpm/*.rpm
sudo dnf install /var/lib/qubes/updates/rpm/*.rpm
A potential critical problem
Related issues: