【发布时间】:2019-10-03 07:07:47
【问题描述】:
我尝试在没有互联网访问的情况下使用 yum 安装 httpd-devel rpm 包。 我在其他计算机上使用 yum 的 --downloadonly 选项下载了依赖 rpm 包, 然后我将我下载的 rpm 包移动到我想要安装 httpd_devel 的机器上。
这是centos 6.8 发行版。
我希望当前安装。但是机器显示下面的错误消息。
跑步
yum install -y httpd-devel-2.2.15-69.el6.centos.x86_64.rpm
给出这个输出:
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Examining httpd-devel-2.2.15-69.el6.centos.x86_64.rpm: httpd-devel-2.2.15-69.el6.centos.x86_64
Marking httpd-devel-2.2.15-69.el6.centos.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
【问题讨论】:
标签: linux centos rpm centos6 yum