Trouble Updating DNF on Fedora 41 with Regional Repositories

Hi everyone,

I’m relatively new to Linux, having started with Ubuntu and recently switching to Fedora 40. On Fedora 40, I was able to solve issues with repositories and updates by doing the following:

  1. Updated the /etc/dnf/dnf.conf file with:

makefile

Copy code

fastestmirror=true  
max_parallel_downloads=20  
deltarpm=1  
ip_resolve=4  
  1. Disabled certain default repositories:

arduino

Copy code

sudo dnf config-manager --set-disabled fedora updates fedora-cisco-openh264  
  1. Added custom repositories:

ruby

Copy code

# Fedora  
https://repo.iut.ac.ir/repo/fedora/linux/releases/...  
# Updates  
https://repo.iut.ac.ir/repo/fedora/linux/updates/...  

This setup worked perfectly.

Recently, I formatted my drive and installed Fedora 41. I repeated the same steps as above, but this time, things didn’t work. Here’s what happened:

  1. The --set-disabled command failed, and unsetopt didn’t work either. I had to disable the repos manually by setting enabled=0.
  2. Upon running dnf update, I got repeated 404 errors like this:

python

Copy code

Updating and loading repositories:  
Fedora 41 - x86_64 - Updates                          
>>> Status code: 404 for https://repo.iut.ac.ir/repo/fedora/linux/updates/41/Everything/x86_64/repodata/...  
>>> Librepo error: Yum repo downloading error: ... all mirrors were already tried without success.  

I also encountered errors with downloading repomd.xml, which resolved on its own after a day.

Since I can’t use the default repositories due to connectivity issues, I’m at a loss. Is there anything I can do to fix this?

Here’s the output of dnf repolist:

Copy code

google-chrome                 google-chrome  
IUT-fedora                    Fedora 41 - x86_64  
IUT-updates                   Fedora 41 - x86_64 - Updates  

System Information:

  • CPU: Ryzen 7 5800H
  • GPU: NVIDIA RTX 3050
  • RAM: 16GB DDR4

Let me know if there’s any additional info I should provide. Thanks in advance!

You have any VPN options? I usually run now days VPN always on due limited connectivity on my locations and that have solved the issues

You could test proton VPN it has free tier and just works or wait and try again later usually these solved automatically when waiting

1 Like

sudo dnf config-manager setopt repoid2.enabled=0

You can get the repo id from
sudo dnf repolist

https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html

1 Like

Yes, I’m using v2fly
But I’ll try proton to see if it works
TY!

Tysm!