[碎片空间] GaussDB for DWS维护宝典-安装类故障-版本过高导致RPM安装失败

问题背景与现象

执行PreinstallAdd Package Failed导致PreInstall失败。

原因分析

  1. 分析Preinstall日志(/tmp/fi-preinstall.log)。

[Thu Apr  9 18:16:17 CST 2015] Info: Run ./script//function/remote.sh -i 192.168.17.33 -P 22 -u root -a /tmp/fi-preinstall-ctrl/preinstall-p.bin -k /tmp/fi-preinstall-ctrl/known_hosts -t 300 -m ssh-cmd -c rpm -ivh /tmp/fi-preinstall/192.168.17.33_rpms_dir/*.rpm failed, ret code:16
[Thu Apr  9 18:16:17 CST 2015] Debug: [/opt/patch/packages/squid-3.1.10-19.el6_4.x86_64.rpm] Leave [get_rpm_file:77]
[Thu Apr  9 18:16:17 CST 2015] Error: rpm -ivh /tmp/fi-preinstall/192.168.17.33_rpms_dir/*.rpm failed on 192.168.17.33
[Thu Apr  9 18:16:17 CST 2015] Error: Add packages failed on 192.168.17.33 [Thu Apr  9 18:16:16 CST 2015] Debug: Leave [exec_cmd_r:60]
[Thu Apr  9 18:16:16 CST 2015] Debug: Leave [check_rpms_dir:86]
[Thu Apr  9 18:16:16 CST 2015] Error: [192.168.17.39] Setup os failed

2.OS在安装完成后,又安装了OS补丁,有些RPM被升级到高版本了,导致有些有依赖关系的RPM包安装失败。

解决办法

            方法一:卸载OS补丁后,再重新执行preinstall

 方法二:下载高版本的RPM包,手动安装RPM包。