免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3715 | 回复: 4
打印 上一主题 下一主题

[求助] hpunix安装depot包时报错。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-10-09 15:16 |只看该作者 |倒序浏览
本帖最后由 ronins 于 2016-10-09 15:19 编辑


不管安装什么包,都在分析这一步报错。

错误日志:
| | -------  10/09/16 15:04:09 EAT  BEGIN install AGENT SESSION (pid=13253)    |               
| |          (jobid=主机名称已被替换-0042)                                             |               
| |                                                                            |               
| | WARNING: An attempt to get the network host entry for "183.221.250.11"     |               
| |          failed.  This may result in denial of access to users and         |               
| |          agents at this host.  Check the spelling of this name, then       |               
| |          your "/etc/hosts" file, or your "/etc/resolv.conf" file and       |               
| |          DNS resolver configuration.  The nslookup program may be          |               
| |          helpful in isolating this problem.                                |               
| |        * Agent session started for user "root@183.221.250.11".             |               
| |          (pid=13253)      
--------------------------------------------------------------------------+|      
| |        * Beginning Analysis Phase.                                        ^|               
| |        * Source:           主机名称已被替换:/tmp/python-2.7.6-ia64-11.23.depot     |               
| |        * Target:           主机名称已被替换:/                                      |               
| |        * Target logfile:   主机名称已被替换:/var/adm/sw/swagent.log                |               
| |        * Reading source for product information.                           |               
| | ERROR:   Could not open remote depot/root                                  |               
| |          "/tmp/python-2.7.6-ia64-11.23.depot" due to an RPC or network     |               
| |          I/O error.                                                        |               
| |        * Retry number 1 of 1 for product information.                      |               
| | ERROR:   Could not open remote depot/root                                  |               
| |          "/tmp/python-2.7.6-ia64-11.23.depot" due to an RPC or network     |               
| |          I/O error.                  
  ---------------------------------------------------------------------------+|      
| | ERROR:   Cannot open source.  Check above for errors, as well as the      ^|               
| |          daemon logfile on the source host (default location:              |               
| |          /var/adm/sw/swagentd.log).                                        |               
| | ERROR:   Cannot continue the Analysis Phase until the previous errors      |               
| |          are corrected.                                                    |               
| |                                                                            |               
| |        * Beginning Analysis Phase.                                         |               
| |        * Source:           主机名称已被替换:/tmp/python-2.7.6-ia64-11.23.depot     |               
| |        * Target:           主机名称已被替换:/                                      |               
| |        * Target logfile:   主机名称已被替换:/var/adm/sw/swagent.log                |               
| |        * Reading source for product information.                           |               
| | ERROR:   Could not open remote depot/root   
         "/tmp/python-2.7.6-ia64-11.23.depot" due to an RPC or network     |               
| |          I/O error.                                                        |               
| |        * Retry number 1 of 1 for product information.                      |               
| | ERROR:   Could not open remote depot/root                                  |               
| |          "/tmp/python-2.7.6-ia64-11.23.depot" due to an RPC or network     |               
| |          I/O error.                                                        |               
| | ERROR:   Cannot open source.  Check above for errors, as well as the       |               
| |          daemon logfile on the source host (default location:              |               
| |          /var/adm/sw/swagentd.log).                                        |               
| | ERROR:   Cannot continue the Analysis Phase until the previous errors      |               
| |          are corrected.      


论坛徽章:
0
2 [报告]
发表于 2016-10-09 15:18 |只看该作者
有遇到过的大哥没?unix新手,先谢过。

论坛徽章:
0
3 [报告]
发表于 2016-10-09 15:58 |只看该作者
本帖最后由 ronins 于 2016-10-09 16:02 编辑



ping183.221.250.11是通的。
补充:tail -n20 /var/adm/sw/swagentd.log的结果

主机名称已被替换#[/tmp]tail /var/adm/sw/swagentd.log
WARNING:
         尝试获取“183.221.250.11”的网络主机条目失败。这可能导致对此主机上的用户和代理的访问被拒绝。检查该名称的拼写然后检查您的“/etc/hosts”文件或“/etc/resolv.conf”文件以及
         DNS 分解器配置。nslookup 程序可能有助于隔离该问题。
       * 已在“$s”上为 $s 启动 $s 代理,pid=1828716590,2016年10月9日
         星期日 15:49:25 EAT
ERROR:   Cannot lock "/" because another command holds a conflicting
         lock.  The process id of that command is 9398.
ERROR:   The target "/" could not be opened. pid=14644 10/09/16
         15:49:25 EAT
       * 代理 pid=14644 已完成。2016年10月9日 星期日 15:49:25 EAT
主机名称已被替换#[/tmp]tail -n20 /var/adm/sw/swagentd.log
         DNS 分解器配置。nslookup 程序可能有助于隔离该问题。
WARNING:
         尝试获取“183.221.250.11”的网络主机条目失败。这可能导致对此主机上的用户和代理的访问被拒绝。检查该名称的拼写然后检查您的“/etc/hosts”文件或“/etc/resolv.conf”文件以及
         DNS 分解器配置。nslookup 程序可能有助于隔离该问题。
WARNING:
         尝试获取“183.221.250.11”的网络主机条目失败。这可能导致对此主机上的用户和代理的访问被拒绝。检查该名称的拼写然后检查您的“/etc/hosts”文件或“/etc/resolv.conf”文件以及
         DNS 分解器配置。nslookup 程序可能有助于隔离该问题。
       * 已注册 root@183.221.250.11 的软件仓库或根
         /tmp/python-2.7.6-ia64-11.23.depot。  2016年10月9日 星期日
         15:48:50 EAT
WARNING:
         尝试获取“183.221.250.11”的网络主机条目失败。这可能导致对此主机上的用户和代理的访问被拒绝。检查该名称的拼写然后检查您的“/etc/hosts”文件或“/etc/resolv.conf”文件以及
         DNS 分解器配置。nslookup 程序可能有助于隔离该问题。
       * 已在“$s”上为 $s 启动 $s 代理,pid=1828716590,2016年10月9日
         星期日 15:49:25 EAT
ERROR:   Cannot lock "/" because another command holds a conflicting
         lock.  The process id of that command is 9398.
ERROR:   The target "/" could not be opened. pid=14644 10/09/16
         15:49:25 EAT
       * 代理 pid=14644 已完成。2016年10月9日 星期日 15:49:25 EAT
主机名称已被替换#[/tmp]



论坛徽章:
0
4 [报告]
发表于 2016-10-12 09:15 |只看该作者
在/etc/hosts文件里面添加一个本机IP和名称的解析就对了。

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
5 [报告]
发表于 2016-10-18 14:38 |只看该作者
回复 4# ronins

从报错来看其实就是域名解析出错,导致没法访问远程的depot。这种时候就是检查你的DNS设置是否正确或直接手工把远程主机的解析关系加到/etc/hosts文件里面。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP