I am attempting to upgrade to F41 and am receiving this error and unsure what to do to resolve it.
Post reboot it gets to 14% then boots back into F40 with this error on my discover.
Any information would be appreciated
Thanks!
package dnf5-5.2.8.1-3.fc41.x86_64 cannot be verified and repo updates is GPG enabled: /var/cache/PackageKit/41/metadata/updates-41-x86_64/packages/dnf5-5.2.8.1-3.fc41.x86_64.rpm could not be verified.
/var/cache/PackageKit/41/metadata/updates-41-x86_64/packages/dnf5-5.2.8.1-3.fc41.x86_64.rpm: Verifying a signature using certificate 466CF2D8B60BC3057AA9453ED0622462E99D6AD1 (Fedora (41) ```
I’m sure you could just skip the dnf5 package for now. Maybe you are picking up a bad copy from your local mirror and the next version will be OK. I don’t think you can skip packages using the GUI though. You’ll probably need to run something like sudo dnf update --exclude=dnf5. Be sure to reboot immediately after you update.
Seems it’s required, can I force it to be pulled from somewhere else?
Problem: conflicting requests
- package dnf5-plugins-5.2.6.2-1.fc41.x86_64 from fedora requires dnf5(x86-64) = 5.2.6.2-1.fc41, but none of the providers can be installed
- package dnf5-plugins-5.2.8.1-3.fc41.x86_64 from updates requires dnf5(x86-64) = 5.2.8.1-3.fc41, but none of the providers can be installed
- package dnf5-5.2.6.2-1.fc41.x86_64 from fedora is filtered out by exclude filtering
- package dnf5-5.2.8.1-3.fc41.x86_64 from updates is filtered out by exclude filtering
So it’s not already installed, but it is trying to install as part of the upgrade. That makes sense. Obviously you won’t be able to remove something that isn’t there.
You’ll have to exclude it as I originally suggested then. Just adding --skip-broken should be enough to prevent it from trying to download any additional package dependencies.
If you want to point to a different mirror, the parameter is --repofrompath=... and then you would have to specify the full URL to the right subdirectory on the server you want to download from.
From the man page:
--repofrompath=REPO_ID,REPO_PATH
Specify a repository to add to the repositories only for this run. Can be used multiple times.
The new repository id is specified by REPO_ID and its baseurl by REPO_PATH. Variables in both values are substituted before creating the repo.
The configuration of the new repository can be adjusted using options --setopt=REPO_ID.option=value.
If you want only packages from this repository to be available, combine this option with --repo=REPO_ID switch.
So be sure to also use --repo=... if you want to force another mirror and be sure it doesn’t use any other mirror. (Or just use --skip-broken which would be much easier.)