Page 1 of 1

[Solved] Strange repository issue with DNF

PostPosted: Jan 8th, '20, 16:30
by duskmourn
Whenever I try to update or install a package using DNF, I'm given this.

Code: Select all
[root@navi ~]# dnf install firefox
Mageia Cauldron - x86_64 - Updates                                                                                                                                                   6.9  B/s | 273  B     00:39   
Errors during downloading metadata for repository 'cauldron-updates-x86_64':
  - Status code: 404 for https://mirror.dacentec.com/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 104.26.7.123)
  - Curl error (78): Remote file not found for ftp://free.nchc.org.tw/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml [RETR response: 550]
  - Status code: 404 for http://ftp.tku.edu.tw/Linux/Mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 163.13.240.201)
  - Curl error (28): Timeout was reached for ftp://mageia.jameswhitby.net/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml [Connection time-out]
  - Status code: 404 for http://ftp.nluug.nl/pub/os/Linux/distr/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 145.220.21.40)
  - Status code: 404 for http://mirror.math.princeton.edu/pub/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 128.112.18.21)
  - Status code: 404 for http://mageia.jameswhitby.net/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 98.117.88.118)
  - Status code: 404 for http://mirrors.kernel.org/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 149.20.37.36)
  - Status code: 404 for http://mirror.isoc.org.il/pub/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 192.115.211.70)
  - Status code: 404 for http://ftp.linux.org.tr/mageia/distrib/cauldron/x86_64/media/core/updates/repodata/repomd.xml (IP: 193.140.98.183)
Error: Failed to download metadata for repo 'cauldron-updates-x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Mageia 8 - x86_64                                                                                                                                                                     57  B/s |  51  B     00:00   
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Updates                                                                                                                                                           56  B/s |  51  B     00:00   
Error: Failed to download metadata for repo 'updates-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Ignoring repositories: cauldron-updates-x86_64, mageia-x86_64, updates-x86_64
Last metadata expiration check: 2:37:57 ago on Wed 08 Jan 2020 04:34:05 AM EST.
Package firefox-68.3.0-1.mga8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!


I just used Firefox as an example as I already have it installed. But where are these non existent repos coming from? One of them, "cauldron-updates-x86_64" isn't even an actual repository.

DNF seems to work perfectly fine besides this, it's just annoying. Any ideas what could've caused this or how to fix it?

Re: Strange repository issue with DNF

PostPosted: Jan 8th, '20, 18:48
by Bequimao
Please show the output of

Code: Select all
# dnf repolist


It should look like this in a working dnf environment

Code: Select all
[root@mga8-cauldron ~]# dnf repolist
/usr/lib/python3.8/site-packages/bs4/element.py:15: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used.
  warnings.warn(

repo id                                                                          repo name
cauldron-x86_64                                                                  Mageia Cauldron - x86_64
cauldron-x86_64-nonfree                                                          Mageia Cauldron - x86_64 - Nonfree
cauldron-x86_64-tainted                                                          Mageia Cauldron - x86_64 - Tainted
[root@mga8-cauldron ~]#


Note that I am only using x86_64 repos.

Best regards,
Bequimão

Re: Strange repository issue with DNF

PostPosted: Jan 9th, '20, 12:19
by duskmourn
Here's the output of dnf repolist

Code: Select all
[root@navi ~]# dnf repolist
repo id                                                                                                         repo name
cauldron-updates-x86_64                                                                              Mageia Cauldron - x86_64 - Updates
cauldron-x86_64                                                                                           Mageia Cauldron - x86_64
copr:copr.fedorainfracloud.org:konimex:neofetch                                             Copr repo for neofetch owned by konimex
mageia-x86_64                                                                                             Mageia 8 - x86_64
updates-x86_64                                                                                            Mageia 8 - x86_64 - Updates


I do have the 32 bit repos enabled, but it doesn't seem to show up here for some reason. And yes, the COPR repo is intended for Cauldron.

Re: Strange repository issue with DNF

PostPosted: Jan 9th, '20, 17:29
by Bequimao
You see all the possiblilities with

Code: Select all
# dnf repolist --all


Now you can enable or disable any repo by

Code: Select all
# dnf config-manager --set-enabled <repo-name>  ...
# dnf config-manager --set-disabled <repo-name> ...


dnfdragora has also a menu item to configure the repos. The updates repos are empty in Cauldron by default. Of course, dnf commands should also work with empty repos. I see this as a minor issue.

Best regards,
Bequimão

Re: Strange repository issue with DNF

PostPosted: Jan 10th, '20, 17:21
by duskmourn
Disabling "cauldron-updates-x86_64", "mageia-x86_64", and "updates-x86_64" seems to have fixed it, sorry for the trouble.

Re: Strange repository issue with DNF

PostPosted: Jan 10th, '20, 17:52
by isadora
Would you please mark this topic [SOLVED]?
You can do so by editing the title/subject of the first message in the topic.
Place [SOLVED] in front of subject/title.

Thanks ahead. :)