GNU/Linux >> Linux Esercitazione >  >> Cent OS

Centos – Aggiornamento Yum non riesce:errore:impossibile recuperare i metadati del repository (repomd.xml) per il repository …?

Sto usando CentOS 6.3. Quando provo ad aggiornare il mio sistema con yum ricevo questo messaggio:

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

Il mio 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

Risposta accettata:

Il tuo ca-bundles.crt è troppo vecchio. Una soluzione alternativa fino a quando non esegui l'aggiornamento a una versione più recente di CentOS sarebbe quella di modificare epel.repo dall'utilizzo di https a http

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

Cent OS
  1. 'yum update' non riuscito con un messaggio di errore "Impossibile risolvere l'host" su Centos:ecco una soluzione

  2. Abilita gli aggiornamenti automatici di nginx utilizzando il repository yum per le distribuzioni RHEL/CentOS

  3. Impossibile trovare un URL di base valido:errore YumRepo [risolto]

  4. Centos – Errore di aggiornamento Yum su Centos 5.6?

  5. Abilita le impostazioni proxy per il comando Yum su CentOS 7

Impossibile scaricare i metadati per il repository

“Impossibile risolvere il proxy:https; Errore sconosciuto” – errore con 'yum update'

Come creare un repository yum in CentOS/RHEL

"impossibile installare il miglior candidato di aggiornamento per il pacchetto" - errore durante l'esecuzione dell'aggiornamento dnf

Errore Yum:timeout su repomd.xml. Operazione troppo lenta

8 repository di terze parti YUM per CentOS e RHEL