Dnf still uses F35 repos after system-upgrade to F36

As stated, I have to add --releasever=36 when I try to use dnf (e.g. dnf update fetches F35 repos), is there a way to fix this?

% cat /etc/os-release
NAME="Fedora Linux"
VERSION="36 (Workstation Edition Prerelease)"
ID=fedora
VERSION_ID=36
VERSION_CODENAME=""
PLATFORM_ID="platform:f36"
PRETTY_NAME="Fedora Linux 36 (Workstation Edition Prerelease)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:36"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/"
SUPPORT_URL="https://discussion.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=36
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=36
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Did you perfom all five steps described here?

1 Like

+1

Could you also show us some example output from dnf?

I did perform the steps all the way until the reboot, and I was able to boot up F36 successfully.
I managed to resolve the issue myself in the end – for some reason F35 packages are not removed and they co-exist with F36 packages. Crucially fedora-release-35 & others were present, and they have confused DNF. I performed manual reinstallations of all F36 packages, during which DNF removes F35 duplicates, and performed the optional post-upgrade steps (removing broken packages and more duplicates), everything seems to work fine now.

1 Like

You may also wish to do a couple additional steps to make sure everything is fully cleaned up.
sudo dnf upgrade --refresh followed by sudo dnf distro-sync
Those 2 steps should make sure all installed packages are synced with the repo and that all potential remaining duplicates are purged.

Why you do not a fresh installation of Fedora 36 instead of playing around? Don’t forget to backup your important data. I never do an upgrade because I always have little issues with this kind of installation in the former days. For Windows it’s the same and it’s a commercial product.

There’s really no reason to do a fresh-install. Upgrades work very well. Let’s try to fix the issue here :slight_smile:

1 Like