Doing my regular check for updates (I know I can automate this, but I prefer manually as that way it’s clearer to me what changed on each server) I get the following in response to dnf upgrade:
DigitalOcean Agent 43 kB/s | 3.3 kB 00:00
DigitalOcean Droplet Agent 49 kB/s | 3.3 kB 00:00
Error:
Problem: cannot install the best update candidate for package fwupd-plugin-flashrom-1.8.16-1.el9.rocky.0.2.x86_64
- nothing provides fwupd(x86-64) = 1.8.16-1.el9.rocky.0.3 needed by fwupd-plugin-flashrom-1.8.16-1.el9.rocky.0.3.x86_64 from appstream
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Is this an issue with something on this box, and so I should know how to fix it, or something with the latest dependency chain (and so I am just supposed to report it)?
I would try to run dnf clean all on the box that is having issues and then try to update again. If you’re having issues still, check dnf repolist -v to see where your repos are pointing to. If they are pointing to a digital ocean url, it will be an issue with how they manage their mirrors of our repositories.
[paul@ironwood ~]$ sudo dnf clean all
69 files removed
[paul@ironwood ~]$ sudo dnf upgrade
Netdata 282 kB/s | 155 kB 00:00
Netdata Repository Config 3.8 kB/s | 1.6 kB 00:00
DigitalOcean Agent 20 kB/s | 6.1 kB 00:00
DigitalOcean Droplet Agent 11 kB/s | 3.2 kB 00:00
Extra Packages for Enterprise Linux 9 - x86_64 40 MB/s | 21 MB 00:00
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 3.9 kB/s | 2.5 kB 00:00
Rocky Linux 9 - BaseOS 5.4 MB/s | 2.2 MB 00:00
Rocky Linux 9 - AppStream 12 MB/s | 7.4 MB 00:00
Rocky Linux 9 - Extras 38 kB/s | 14 kB 00:00
Error:
Problem: package fwupd-plugin-flashrom-1.8.16-1.el9.rocky.0.2.x86_64 from @System requires fwupd(x86-64) = 1.8.16-1.el9.rocky.0.2, but none of the providers can be installed
- cannot install both fwupd-1.8.16-1.el9.rocky.0.3.x86_64 from baseos and fwupd-1.8.16-1.el9.rocky.0.2.x86_64 from @System
- cannot install the best update candidate for package fwupd-plugin-flashrom-1.8.16-1.el9.rocky.0.2.x86_64
- cannot install the best update candidate for package fwupd-1.8.16-1.el9.rocky.0.2.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[paul@ironwood ~]$
Looking at it, it looks like it may not be a digital ocean issue. I figured they may have used their own mirrors internally.
Looks like the mirror chosen for baseos doesn’t seem to have the fwupd updates. You could try to do a dnf clean all and try again… Otherwise you could modify /etc/yum.repos.d/rocky.conf and use just the baseurl.
In the meanwhile, I’ll do some digging on how in sync some of our mirrors are, since you had one system that seemed to update just fine.
On such conflicts I usually look at from which repo the packages come from. For example:
dnf list --showduplicates fwupd\*
Then I check whether I can uninstall some/all of the packages without cascade of other packages leaving due to dependency.
Usually it has been possible to reinstall the removed packages as it is now a “fresh addition”.
Obviously, if the repo (mirrors) offer conflicting versions, then that has to be sorted out before reinstall.
Error:
Problem: cannot install the best update candidate for package fwupd-plugin-flashrom-1.8.16-1.el9.rocky.0.2.x86_64
- nothing provides fwupd(x86-64) = 1.8.16-1.el9.rocky.0.3 needed by fwupd-plugin-flashrom-1.8.16-1.el9.rocky.0.3.x86_64 from appstream
This is the same version but in a different format than what’s available.
Success. I tried a clean all / update combination one more time in despair and this time it worked.
Interestingly, it simply reported nothing to do, complete (!)
Don’t know if this is a result of a mirror being corrected / brought up to date, a different mirror being selected, or something at my end that got resolved by my twiddling. Whatever it is, at least my updates work again!