Fedora 43 install references Fedora 42 repos

Hey all, I’m having an issue with my install of Fedora, I’ve upgraded from Fedora 42 recently and all has been going mostly well. However, my dnf thinks I’m still on Fedora 42 and is pulling f42 packages when I want to install something. It’s really frustrating as Discover shows the correct F43 repos, but dnf does not in dnf repolist

With some help of Claude I’ve gotten somewhere, but I think its lost at this point recommending me to do some really hacky work arounds. I’ve gotten the fedora-release package installed and its Fedora 43:

rpm -q fedora-release                                                                                                                                                                                                                                       
fedora-release-43-25.noarch

But even importing dnf in python shows its still very bugged:

python3 -c "import dnf; print(dnf.rpm.detect_releasever('/'))"                                                                                                                                                                                              
42

But repolist still shows F42 repos. Attempting to look at .repo files only shows that it should be referencing a $releasever variable but it’s not set properly. Any help would be greatly appreciated

Here a official Manual from a human being searched and linked manually without Claud or any other AI :wink:

Try to do the debug steps underneath the instructions to see if you might interrupted the upgrade and the repositories not got linked to F43 yet.

Just take also in consideration that the upgrade process to a new Fedora version, just will include the Fedora related Repositories/Packages. If you use other repository you might need manually deactivate and include the new F43 one.

Can you post your dnf repolist as text, to see about which ones you are talking.

1 Like

Thanks! I was able to figure it out, the solution involved me manually upgrading the repository packages:

sudo dnf --releasever=43 reinstall \
  fedora-repos \
  fedora-release \
  fedora-release-common \
  fedora-gpg-keys

The weird thing was Discover would show the correct package versions, just dnf was incorrect. Now I just gotta reinstall/upgrade all the f42 packages I installed recently on accident.

Sorry i forgot to tell you that the Discover Software is using dnf4 while dnf is linked with dnf5.

That was giving you the different result. You might upgraded with Discover from F42 to F43, right?