分页: 1 / 1

HPUX的root帐号无法运行swinstall安装软件一例

发表于 : 2014年 7月 12日 16:36 星期六
MUDBOY
系统是从另外一台同样的主机上通过DRD工具clone过来的。
当尝试安装新的软件时,有如下的错误
ERROR: "<host name>:/": You do not have permission for this
operation. The depot owner, system administrator, or
alternate root owner may need to use the "swreg" or "swacl"
command to give you permission. Or, to manage applications
designed and packaged for nonprivileged mode, see the
"run_as_superuser" option in the "sd" man page.
ERROR: "<host name>:/": This target agent cannot access the source.
Make sure the source depot is registered if it is remote from
the target or if you are non-superuser. Also ensure you have
read permission for the products on the source, the source is
not being updated, and swagentd is running on the source host.
The target agent logfile will contain precise failure
information; it is referenced below.
* The analysis phase failed for "<host name>:/".
* Analysis and Execution had errors.


ERROR: More information may be found in the agent logfile using the
command "swjob -a log <host name>-0432 @ <host name>:/".
想到可能是swinstall认为安装发生在了其他的机器上,因此提示没有权限?

因为swagentd会缓存主机名IP地址等,尝试重新启动服务
/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start
没有效果

检查 /etc/nsswitch.conf也没有什么问题(dns为顺序files,dns)。

于是顺藤摸瓜,发现问题的根源是,系统在clone过来后使用了新的IP地址,但是/etc/hosts里面还是旧的IP地址

在更新/etc/hosts为新的IP地址后文件后,问题解决。