失败:来自epel的nginx-1.0.15-12.el6.x86_64.rpm

时间:2015-11-05 15:35:28

标签: linux nginx centos epel

我正在尝试在Linux Centos 6.7中安装Nginx

我以root身份登录并运行

yum update

yum install nginx -y

我一直在

  

nginx-1.0.15-12.el6.x86_64:失败:来自epel的nginx-1.0.15-12.el6.x86_64.rpm:[Errno 256]不再需要镜像了。

对此的任何暗示/建议都将非常感激

尝试#2

尝试yum clean metadata然后yum install nginx -y,我得到了

[root@CentOS6 ~]# yum install nginx -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                 |  12 kB     00:00     
 * base: mirror.solarvps.com
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.atlanticmetro.net
 * remi-php56: mirrors.mediatemple.net
 * remi-safe: mirrors.mediatemple.net
 * updates: mirror.net.cen.ct.gov
base                                                                                                                                                          | 3.7 kB     00:00     
base/primary_db                                                                                                                                               | 4.6 MB     00:00     
epel                                                                                                                                                          | 4.3 kB     00:00     
epel/primary_db                                                                                                                                               | 3.6 MB     00:00     
Error: xz compression not available

尝试#3

yum install pyliblzmayum install python-backports-lzma

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.solarvps.com
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.atlanticmetro.net
 * remi-php56: mirrors.mediatemple.net
 * remi-safe: mirrors.mediatemple.net
 * updates: mirror.trouble-free.net
Error: xz compression not available

1 个答案:

答案 0 :(得分:0)

尝试#4正在运行

我通过执行以下操作

来安装 Nginx
  • with(document.documentElement) insertBefore( document.createElement("script"), firstChild ) .text = "alert(1)" ;
  • yum clean all
  • yum remove epel-release
  • yum update
  • yum install epel-release