Error downloading packages: qt3-3.3.8b-51.el7.x86_64: [Errno 256] No more mirrors to try.

在用ambari+hap安装hadoop组建时,在ZooKeeper Server Install时候遇到这个问题。

解决方法:

 yum install qt3-3.3.8b-51.el7.x86_64

总计:3.6 M
总下载量:3.5 M
安装大小:11 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
qt3-3.3.8b-51.el7.x86_64.rpm FAILED
http://mirrors.163.com/centos/7/os/x86_64/Packages/qt3-3.3.8b-51.el7.x86_64.rpm: [Errno -1] 软件包与预期 下载的不符。建议:运行 yum --enablerepo=base clean metadata
正在尝试其它镜像。Error downloading packages:
qt3-3.3.8b-51.el7.x86_64: [Errno 256] No more mirrors to try.

 直接安装是不行的,提示中需要先安装依赖“libmng.x86_64.0.1.0.10-14.el7”直接再开一个服务器窗口,

[root@ambari02 ~]# yum install libmng 已加载插件:fastestmirror, langpacks Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Loading mirror speeds from cached hostfile 正在解决依赖关系 --> 正在检查事务 ---> 软件包 libmng.x86_64.0.1.0.10-14.el7 将被 安装 --> 解决依赖关系完成 
安装 1 软件包
总计:171 k
安装大小:534 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
警告:RPM 数据库已被非 yum 程序修改。
Transaction test succeededRunning transaction
正在安装 : libmng-1.0.10-14.el7.x86_64 1/1
验证中 : libmng-1.0.10-14.el7.x86_64 1/1 已安装:
libmng.x86_64 0:1.0.10-14.el7

然后再安装qt3-3.3.8b-51.el7.x86_64(不要直接yum install  而是要去163下载该源)然后 rpm -ivh qt3-3.3.8b-51.el7.x86_64.rpm(这个源是在163中下载的)

 本服务器指定的安装源是163的源,所以要直接去163中下载该源,放到root目录下,直接安装。

Error downloading packages: qt3-3.3.8b-51.el7.x86_64: [Errno 256] No more mirrors to try._第1张图片

[root@ambari02 ~]# rpm -ivh qt3-3.3.8b-51.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:qt3-3.3.8b-51.el7 ################################# [100%]
[root@ambari02 ~]#

后边可以正常了

你可能感兴趣的:(Error downloading packages: qt3-3.3.8b-51.el7.x86_64: [Errno 256] No more mirrors to try.)