For some weird reasons, I have wiped out my /etc/yum.repos.d folder
Now my DNF is not working any more.
- Code: Select all
[root@jeevanism dnf]# dnf repolist
No repositories available
whoever done such crazy for any reason, might get this helpful. You need to do as below -
Update --- the repos restored
I force installed
- Code: Select all
rpm -ivh mageia-repos-8-0.0.3.mga8.x86_64.rpm --force
which resulted the repo files back
- Code: Select all
[root@jeevanism yum.repos.d]# ls
mageia-i586.repo mageia-nonfree-x86_64.repo mageia-tainted-i586.repo mageia-tainted-x86_64-source.repo mageia-x86_64-source.repo
mageia-nonfree-i586.repo mageia-nonfree-x86_64-source.repo mageia-tainted-x86_64.repo mageia-x86_64.repo
then I ran
- Code: Select all
[root@jeevanism yum.repos.d]# dnf update
Mageia 8 - x86_64 9.6 B/s | 311 B 00:32
Errors during downloading metadata for repository 'mageia-x86_64':
- Status code: 404 for https://mirrors.kernel.org/mageia/distrib/8/x86_64/media/core/release/repodata/repomd.xml (IP: 198.145.21.9)
- Status code: 404 for https://mirrors.mageia.org/metalink?distrib=mageia-8&arch=x86_64§ion=core&repo=release (IP: 212.85.158.151)
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Mageia 8 - x86_64 - Updates 8.9 B/s | 311 B 00:34
Errors during downloading metadata for repository 'updates-x86_64':
- Status code: 404 for https://mirrors.mageia.org/metalink?distrib=mageia-8&arch=x86_64§ion=core&repo=updates (IP: 212.85.158.151)
- Status code: 404 for https://mirrors.kernel.org/mageia/distrib/8/x86_64/media/core/updates/repodata/repomd.xml (IP: 198.145.21.9)
Error: Failed to download metadata for repo 'updates-x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: mageia-x86_64, updates-x86_64
Dependencies resolved.
Nothing to do.
Complete!
Now, how to solve this ?