gpt4 book ai didi

linux - 来自 epel 的失败 : nginx-1. 0.15-12.el6.x86_64.rpm

转载 作者:太空宇宙 更新时间:2023-11-04 13:02:35 25 4
gpt4 key购买 nike

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

我以root身份登录并运行

yum 更新

yum install nginx -y

我一直在努力

nginx-1.0.15-12.el6.x86_64: failure: nginx-1.0.15-12.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.

任何提示/建议将不胜感激


尝试#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

最佳答案

尝试 #4 有效

我通过执行以下操作安装了 Nginx

  • yum clean all
  • yum 删除 epel-release
  • yum 更新
  • yum 安装 epel-release
  • yum install nginx -y

关于linux - 来自 epel 的失败 : nginx-1. 0.15-12.el6.x86_64.rpm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33548703/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com