yum install sempre falha com o erro no CentOS 7

2

Erros 404:

[Errno -1] Metadata file does not match checksum
Trying other mirror.
[Errno 14] HTTP Error 403 - Forbidden

Eu tentei:

rm -fr /var/cache/yum/*
yum clean all
yum clean all && yum clean metadata && yum clean dbcache && yum makecache && yum update

Ainda sem efeitos. O que mais posso fazer?

Eu listarei meus arquivos de repositórios no diretório /etc/yum.repos.d :

CentOS-Base.repo
CentOS-CR.repo
CentOS-fasttrack.repo
CentOS-Sources.repo
epel.repo
CentOS-Base.repo.rpmnew
CentOS-Debuginfo.repo
CentOS-Media.repo
CentOS-Vault.repo
epel-testing.repo
OpenLogic.repo

Meu yum.conf conteúdo é:

[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=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
http_caching=packages

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
#proxy=http://proxy.com:8080
#proxy_username=xxx
#proxy_password=kkk
    
por user3405478 05.05.2016 / 14:34

2 respostas

1

Desative o cache no seu yum.conf : http_caching=none e desative o erro mais rápido no arquivo fastestmirror.conf alterando o valor de enabled de 1 para 0 e digite o seguinte comando:

yum clean metadata
yum clean all

Editar Para desabilitar temporariamente o plug-in, adicione –disableplugin=fastestmirror à sua linha de comando yum . Por exemplo, yum update –disableplugin=fastestmirror .

Para desativar permanentemente o plug-in, edite /etc/yum/pluginconf.d/fastestmirror.conf e altere enabled=1 para enabled=0

    
por 05.05.2016 / 17:10
0

Remova /etc/yum.repos.d/CentOS-Base.repo.rpmnew , em seguida, edite /etc/yum.repos.d/CentOS-Base.repo e ative o repositório principal, descomentando baseurl= line e comentando mirrorlist= line.

    
por 06.05.2016 / 15:52

Tags