L'installazione del repository Epel su CentOS non riesce [chiuso]


8

Questo ha funzionato sul mio vagrant vm per alcuni mesi senza problemi. Non ho cambiato nulla, è stato vagrant upe lo avevo fatto vagrant destroydiverse volte prima senza problemi. Ma ora fallisce e non riesco a capire quale sia il problema. Non riesco nemmeno a installare vim.

Informazioni sulla versione

[root@localhost ~]# uname -a
Linux localhost 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# cat /etc/*{release,version}
CentOS release 6.5 (Final)
CentOS release 6.5 (Final)
CentOS release 6.5 (Final)

Installazione di EPEL

[root@localhost ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/$(uname -i)/epel-release-6-8.noarch.rpm
Receiving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Warning: /var/tmp/rpm-tmp.RGvUnd: Header V3 RSA/SHA256 Signature, Key-ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
[root@localhost ~]# yum clean all
[root@localhost ~]#

/etc/yum.repos.d/epel.repo

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Tentativo di verificare l'aggiornamento (GUASTI)

[root@localhost ~]# yum check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp-stud.fht-esslingen.de
 * epel: mirrors.ircam.fr
 * extras: mirror2.hs-esslingen.de
 * updates: mirror2.hs-esslingen.de
http://mirrors.ircam.fr/pub/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
[...]

Prova di controllare l'aggiornamento escluso epel (WORKS)

[root@localhost ~]# yum --disablerepo="epel" check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp-stud.fht-esslingen.de
 * extras: mirror2.hs-esslingen.de
 * updates: mirror2.hs-esslingen.de
[vagrant@localhost ~]#

URLGRABBER_DEBUG

[root@localhost ~]# URLGRABBER_DEBUG=1 yum check-update 2> debug.log

2014-09-03 07:39:10,534 MIRROR: trying repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2 -> http://mirrors.ircam.fr/pub/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2
INFO:urlgrabber:MIRROR: trying repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2 -> http://mirrors.ircam.fr/pub/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2
2014-09-03 07:39:10,535 combined options: {
  'checkfunc'    : (<bound method YumRepository.checkMD of <yum.yumRepo.YumRepository object at 0x27c8490>>, ('primary_db',), {}),
  'copy_local'   : 1,
  'http_headers' : (),
  'range'        : None,
  'reget'        : 'simple',
  'size'         : '6623767',
  'text'         : 'epel/primary_db',
  'delegate'     : {
    'bandwidth'    : 0,
    'cache_openers': True,
    'checkfunc'    : None,
    'close_connection': 0,
    'copy_local'   : 0,
    'data'         : None,
    'delegate'     : None,
    'failure_callback': (<bound method YumBaseCli.failureReport of <cli.YumBaseCli object at 0x276c0d0>>, (), {}),
    'ftp_headers'  : None,
    'http_headers' : (),
    'interrupt_callback': <bound method YumBaseCli.interrupt_callback of <cli.YumBaseCli object at 0x276c0d0>>,
    'keepalive'    : True,
    'max_header_size': 2097152,
    'opener'       : None,
    'password'     : None,
    'prefix'       : None,
    'progress_obj' : <output.YumTextMeter instance at 0x279e4d0>,
    'proxies'      : None,
    'quote'        : None,
    'range'        : None,
    'reget'        : 'simple',
    'retry'        : 10,
    'retrycodes'   : [-1, 2, 4, 5, 6, 7],
    'size'         : None,
    'ssl_ca_cert'  : None,
    'ssl_cert'     : None,
    'ssl_cert_type': 'PEM',
    'ssl_context'  : None,
    'ssl_key'      : None,
    'ssl_key_pass' : None,
    'ssl_key_type' : 'PEM',
    'ssl_verify_host': True,
    'ssl_verify_peer': True,
    'text'         : None,
    'throttle'     : 0,
    'timeout'      : 30.0,
    'urlparser'    : <urlgrabber.grabber.URLParser instance at 0x28f1f38>,
    'user_agent'   : 'urlgrabber/3.9.1 yum/3.2.29',
    'username'     : None,
    }
  }
DEBUG:urlgrabber:combined options: {
  'checkfunc'    : (<bound method YumRepository.checkMD of <yum.yumRepo.YumRepository object at 0x27c8490>>, ('primary_db',), {}),
  'copy_local'   : 1,
  'http_headers' : (),
  'range'        : None,
  'reget'        : 'simple',
  'size'         : '6623767',
  'text'         : 'epel/primary_db',
  'delegate'     : {
    'bandwidth'    : 0,
    'cache_openers': True,
    'checkfunc'    : None,
    'close_connection': 0,
    'copy_local'   : 0,
    'data'         : None,
    'delegate'     : None,
    'failure_callback': (<bound method YumBaseCli.failureReport of <cli.YumBaseCli object at 0x276c0d0>>, (), {}),
    'ftp_headers'  : None,
    'http_headers' : (),
    'interrupt_callback': <bound method YumBaseCli.interrupt_callback of <cli.YumBaseCli object at 0x276c0d0>>,
    'keepalive'    : True,
    'max_header_size': 2097152,
    'opener'       : None,
    'password'     : None,
    'prefix'       : None,
    'progress_obj' : <output.YumTextMeter instance at 0x279e4d0>,
    'proxies'      : None,
    'quote'        : None,
    'range'        : None,
    'reget'        : 'simple',
    'retry'        : 10,
    'retrycodes'   : [-1, 2, 4, 5, 6, 7],
    'size'         : None,
    'ssl_ca_cert'  : None,
    'ssl_cert'     : None,
    'ssl_cert_type': 'PEM',
    'ssl_context'  : None,
    'ssl_key'      : None,
    'ssl_key_pass' : None,
    'ssl_key_type' : 'PEM',
    'ssl_verify_host': True,
    'ssl_verify_peer': True,
    'text'         : None,
    'throttle'     : 0,
    'timeout'      : 30.0,
    'urlparser'    : <urlgrabber.grabber.URLParser instance at 0x28f1f38>,
    'user_agent'   : 'urlgrabber/3.9.1 yum/3.2.29',
    'username'     : None,
    }
  }
2014-09-03 07:39:10,535 attempt 1/10: http://mirrors.ircam.fr/pub/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2
INFO:urlgrabber:attempt 1/10: http://mirrors.ircam.fr/pub/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2
2014-09-03 07:39:10,535 opening local file "/var/cache/yum/x86_64/6/epel/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2" with mode ab
INFO:urlgrabber:opening local file "/var/cache/yum/x86_64/6/epel/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2" with mode ab
* About to connect() to mirrors.ircam.fr port 80 (#0)
*   Trying 129.102.1.37... * connected
* Connected to mirrors.ircam.fr (129.102.1.37) port 80 (#0)
> GET /pub/fedora/epel/6/x86_64/repodata/9fdd4609f219b3ec5cfa5408ab03b84b2bce97ab6de268b890577ee86b998618-primary.sqlite.bz2 HTTP/1.1
User-Agent: urlgrabber/3.9.1 yum/3.2.29
Host: mirrors.ircam.fr
Accept: */*

* The requested URL returned error: 404 Not Found
* Closing connection #0
2014-09-03 07:39:10,610 exception: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
INFO:urlgrabber:exception: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
2014-09-03 07:39:10,610 calling callback: (<bound method YumBaseCli.failureReport of <cli.YumBaseCli object at 0x276c0d0>>, (), {})
INFO:urlgrabber:calling callback: (<bound method YumBaseCli.failureReport of <cli.YumBaseCli object at 0x276c0d0>>, (), {})

Qualche idea?


Perché hai usato sudotutti i tuoi comandi mentre lo stai eseguendo come utente root?
Beginer,

@beginer L'ho modificato. non che faccia la differenza ...
Daniel

Correlati: stackoverflow.com/questions/25642071/… Questo sembra essere una rottura temporanea del repository epel.
Burhan Ali,

Risposte:


5

@Burhan Ali aveva ragione, sembra essere un problema temporaneo con il repository EPEL.

Ho cambiato il mio /etc/yum.repos.d/epel.repoper usare il baseurlinvece di mirrorlistcome indicato in questa risposta e funziona ora.


1

Per le altre persone che lo raggiungono tramite Google, il problema può anche essere dovuto a pacchetti di sicurezza non aggiornati in CentOS. La correzione per me era l'equivalente di:

rpm -ev epel-release-6-8.noarch
yum update
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/$(uname -i)/epel-release-6-8.noarch.rpm
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.