首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS6.5 x86_64未能使用yum安装httpd

CentOS6.5 x86_64未能使用yum安装httpd
EN

Server Fault用户
提问于 2014-10-07 12:18:23
回答 1查看 4.9K关注 0票数 0

我正在尝试安装apache httpd,但是失败了。

代码语言:javascript
复制
root@web [/]# yum install httpd
Loaded plugins: downloadonly, fastestmirror, replace
Loading mirror speeds from cached hostfile
 * epel: mirror.compevo.com
 * remi-php56: mirror.pw
 * remi-test: mirror.pw
 * List item
Setting up Install Process
No package httpd available.
Error: Nothing to do

编辑:这是评论家

代码语言:javascript
复制
root@web [/]# yum repolist
Loaded plugins: downloadonly, fastestmirror, replace
Loading mirror speeds from cached hostfile
epel/metalink                                                      |  16 kB     00:00
 * epel: mirror.compevo.com
 * remi-php56: mirror.pw
 * remi-test: mirror.pw
remi-debuginfo                                                     | 2.9 kB     00:00
remi-php55-debuginfo                                               | 2.9 kB     00:00
remi-php56                                                         | 2.9 kB     00:00
remi-php56-debuginfo                                               | 2.9 kB     00:00
remi-test                                                          | 2.9 kB     00:00
remi-test-debuginfo                                                | 2.9 kB     00:00

repo id              repo name                                                  status
epel                 Extra Packages for Enterprise Linux 6 - x86_64             10,217+881
remi-debuginfo       Les RPM de remi pour Enterprise Linux 6 - x86_64 - debugin     31+550
remi-php55-debuginfo Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - x86_6      0+207
remi-php56           Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - x86_6      6+316
remi-php56-debuginfo Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - x86_6      0+215
remi-test            Les RPM de remi en test pour Enterprise Linux 6 - x86_64        29+66
remi-test-debuginfo  Les RPM de remi en test pour Enterprise Linux 6 - x86_64 -       4+16
repolist: 10,287

root@web [/]# cat /etc/yum.repos.d/CentOS-Base.repo
cat: /etc/yum.repos.d/CentOS-Base.repo: No such file or directory
root@web [/]#

我使用链接http://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/来安装

我下载了centos-版本-6-5,并使用rpm -ivh安装.结果如下:

代码语言:javascript
复制
root@web [/]# rpm -ivh http://anorien.csc.warwick.ac.uk/mirrors/centos/6.5/os/x86_64/Packages/centos-release-6-5.el6.centos.11.1.x86_64.rpm

Retrieving  anorien.csc.warwick.ac.uk/mirrors/centos/6.5/os/x86_64/Packages/centos-release-6-5.el6.centos.11.1.x86_64.rpm

Preparing...                ########################################### [100%]

        package centos-release-6-5.el6.centos.11.2.x86_64 (which is newer than centos-release-6-5.el6.centos.11.1.x86_64) is already installed

        file /etc/yum.repos.d/CentOS-Vault.repo from install of centos-release-6-5.el6.centos.11.1.x86_64 conflicts with file from package centos-release-6-5.el6.centos.11.2.x86_64

我试过使用-Uvh,结果是一样的

代码语言:javascript
复制
root@web [/]# rpm -Uvh centos-release-6-5.el6.centos.11.1.x86_64.rpm
Preparing...                ########################################### [100%]
        package centos-release-6-5.el6.centos.11.2.x86_64 (which is newer than centos-release-6-5.el6.centos.11.1.x86_64) is already installed
root@web [/]#
EN

回答 1

Server Fault用户

发布于 2014-10-07 12:58:21

我不知道怎么做,但是有人已经成功地删除了您的baseupdates repos,这给了您操作系统本身。剩下的就是一堆扩展的repos,它们提供了更多最新版本的某些工具。那是行不通的。

拥有您需要的回购文件的包称为centos-release-6-5,您最好的选择是从镜像中获取它。这是一个小文件,所以它不太重要,哪一个。尝试下载http://anorien.csc.warwick.ac.uk/mirrors/centos/6.5/os/x86_64/Packages/centos-release-6-5.el6.centos.11.1.x86_64.rpm并使用rpm -Uvh --oldpackage安装它;这将为您提供基础和更新repos,在此之后,安装httpd和执行通用updates都会工作得更好。

如果你想成为这里的常客,请学习使用我们的标记系统。这相当简单。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/634136

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档