Fedora 34 dnf upgrade not working MetaData April

,

I am unable to upgrade my system.

I tried

sudo dnf clean all
sudo dnf upgrade --refresh -v                                                                                                                                                                                                                                        
Geladene Plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, diff, download, generate_completion_cache, groups-manager, kickstart, leaves, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, show-leaves, system-upgrade, versionlock
DNF version: 4.6.1
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (Fedora 34; workstation; Linux.x86_64)'
Repo: Herunterladen von Remote: Brave
Brave-Browser                                                                                                                                                                                                                                             112 kB/s | 6.9 kB     00:00
Brave: Metadaten von Mi 02 Feb 2022 22:09:57 werden verwendet.
Repo: Herunterladen von Remote: fedora-cisco-openh264
Fedora 34 openh264 (From Cisco) - x86_64                                                                                                                                                                                                                  2.3 kB/s | 2.5 kB     00:01
fedora-cisco-openh264: Metadaten von Di 23 Feb 2021 01:49:00 werden verwendet.
Repo: Herunterladen von Remote: fedora-modular
countme: no event for fedora-modular: window already counted
Fedora Modular 34 - x86_64                                                                                                                                                                                                                                2.6 MB/s | 3.4 MB     00:01
fedora-modular: Metadaten von Fr 23 Apr 2021 12:25:38 werden verwendet.
Repo: Herunterladen von Remote: fedora
countme: no event for fedora: window already counted
Fedora 34 - x86_64                                                                                                                                                                                                                                         46 MB/s |  64 MB     00:01
fedora: Metadaten von Fr 23 Apr 2021 12:47:57 werden verwendet.
Repo: Herunterladen von Remote: code
Visual Studio Code                                                                                                                                                                                                                                         25 MB/s |  22 MB     00:00
code: Metadaten von Mi 02 Feb 2022 20:11:37 werden verwendet.
Completion plugin: Generating completion cache...
--> Abhängigkeitsauflösung wird gestartet
--> Abhängigkeitsauflösung wurde abgeschlossen
Abhängigkeiten sind aufgelöst.
Nichts zu tun.
Fertig.

Metadata is from April 2021. How to fix this?

Thanks in advance

1 Like

Have you look into this
https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/
Make dnf distro sync

I don’t see the updates repo there. Can you please check your repolist:

LANG=C sudo dnf repolist --refresh -y

(`LANG=C should make your output appear in English for the benefit of forum readers)

Updates do not go to the fedora repo, they go to the updates repo. The fedora repo remains pretty static once a Fedora release has been made.

Thanks for your answer

Here is the output, and thanks for the hint with the language setting

sudo dnf repolist --refresh -y                                                                                                                                                                                                             
[sudo] password for XXXXX:
repo id                                                                                                                           repo name
Brave                                                                                                                             Brave-Browser
code                                                                                                                              Visual Studio Code
fedora                                                                                                                            Fedora 34 - x86_64
fedora-cisco-openh264                                                                                                             Fedora 34 openh264 (From Cisco) - x86_64
fedora-modular     
1 Like

So your fedora-updates repository is not enabled. Please enable it, and that should get your your updates.

sudo dnf config-manager --set-enabled updates

If you are using the modular repos, you should also enable their updates:

sudo dnf config-manager --set-enabled updates-modular

It isn’t suggested to disable the updates repos, because that’s how you get all your bugfixes.

You are completely right.
After enabling the update-rpositorys everything works fine.

Many thanks, i have no idea why they were disabled.

TIL: There are extra repos for updates.

Thanks a lot

1 Like