dnf broken: all mirrors were tried

Sgt Shepard picture Sgt Shepard · Jan 22, 2020 · Viewed 24.1k times · Source

I don't know how to describe my problem because I don't understand why it happen ... When i enter

sudo dnf install (any packet)

It return me this

Tor Project Repo               407  B/s | 264  B     00:00    
Error: Failed to download metadata for repo 'Tor': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Its obvious that Tor is related to that mess but i don't know why.

I tried nothing because I'm afraid to do something wrong. I'm on fedora 30. (english baguette)

Answer

Chris Maes picture Chris Maes · Jan 22, 2020

It seems like you have a broken repository. Probably you will find this repository in:

ls /etc/yum.repos.d/

there will probably be a file named tor*.repo. If you remove that file (or edit it to contain enabled=0), then dnf should start working correctly again.