Erro no 'sudo yum -y update'

1

Estou recebendo o seguinte erro ao atualizar minha instância amazon EC2.

Transaction check error:
  file /usr/bin/pyrsa-decrypt conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch
  file /usr/bin/pyrsa-decrypt-bigfile conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch
  file /usr/bin/pyrsa-encrypt conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch
  file /usr/bin/pyrsa-encrypt-bigfile conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch
  file /usr/bin/pyrsa-keygen conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch
  file /usr/bin/pyrsa-priv2pub conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch
  file /usr/bin/pyrsa-sign conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch
  file /usr/bin/pyrsa-verify conflicts between attempted installs of python2-rsa-3.4.1-1.el6.noarch and python26-rsa-3.4.1-1.8.amzn1.noarch

Eu tentei

sudo yum remove python26-rsa-3.4.1-1.8.amzn1.noarch

Mas o erro não desapareceu.

As informações da minha máquina Linux:

$cat /etc/issue
Amazon Linux AMI release 2014.09
Kernel \r on an \m
    
por Avi 13.02.2017 / 05:25

1 resposta

3

Eu consertei sozinho. altere /etc/yum.repos.d/epel.repo da seguinte forma

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
enabled=1
# ------^------- set this to zero
failovermethod=priority
gpgcheck=1
gpgkey=http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
    
por 07.06.2017 / 04:00