GNU/Linux >> Znalost Linux >  >> Cent OS

Centos – Yum Update selže:Chyba:Nelze načíst metadata úložiště (repomd.xml) pro úložiště…?

Používám CentOS 6.3. Když se pokouším aktualizovat svůj systém pomocí yum, zobrazí se tato zpráva:

yum update

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.ircam.fr
 * centosplus: miroir.univ-paris13.fr
 * extras: mirrors.ircam.fr
 * update: centos.quelquesmots.fr
http://mirror.centos.org/centos/6/addons/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

yum clean all

Loaded plugins: fastestmirror
Cleaning repos: CactiEZ addons base centosplus extras pgdg93 update
Cleaning up Everything
Cleaning up list of fastest mirrors

yum check

Loaded plugins: fastestmirror
check all

yum erase apf

Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: apf
Determining fastest mirrors
 * base: centos.mirror.fr.planethoster.net
 * centosplus: centos.mirror.fr.planethoster.net
 * extras: mirrors.ircam.fr
 * update: centos.quelquesmots.fr
CactiEZ                                                | 2.9 kB     00:00
CactiEZ/primary_db                                     |  13 kB     00:00
http://mirror.centos.org/centos/6/addons/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

yum upgrade

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.fr.planethoster.net
 * centosplus: centos.mirror.fr.planethoster.net
 * extras: mirrors.ircam.fr
 * update: centos.quelquesmots.fr
http://mirror.centos.org/centos/6/addons/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

Můj yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

Přijatá odpověď:

Váš ca-bundles.crt je příliš starý. Jedním z řešení, než upgradujete na novější verzi CentOS, by bylo změnit epel.repo z používání https na http

sudo sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo

Cent OS
  1. Chyba:Nelze načíst metalink pro úložiště:epel. Prosím ověřte jeho cestu a zkuste to znovu [Vyřešeno]

  2. Nepodařilo se stáhnout metadata pro repo „AppStream“ [CentOS]

  3. Jak vyloučit konkrétní úložiště pro aktualizaci Yum v CentOS / Red Hat

  1. "Nelze vyřešit proxy:https; Neznámá chyba“ – chyba s „yum update“

  2. Aktualizace DNF se nezdařila s chybou „Kontrola GPG FAILED“ – CentOS/RHEL 8

  3. „nelze nainstalovat nejlepšího kandidáta na aktualizaci pro balíček“ – chyba při spuštění aktualizace dnf

  1. Jak zakázat úložiště balíčků YUM na CentOS

  2. „yum update“ se nezdařilo s chybovou zprávou „Nelze vyřešit hostitele“ na Centos – zde je oprava

  3. Povolte automatické aktualizace nginx pomocí úložiště yum pro distribuce RHEL/CentOS