“在Solaris上安装软件包时,无法联系任何已配置的发布者”

时间:2011-08-31 18:22:28

标签: gcc installation solaris

# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (preferred)  origin   online   http://pkg.oracle.com/solaris/release/
# 

# pkg install gcc-3
pkg: 0/1 catalogs successfully updated:   
Unable to contact valid package repository
Encountered the following error(s):
Unable to contact any configured publishers.
This is likely a network configuration problem.
Framework stall:
URL: 'http://pkg.oracle.com/solaris/release'. (happened 4 times)

找到答案: 它正在将代理设置添加到配置文件

export http_proxy=http://URL:port

1 个答案:

答案 0 :(得分:0)

如果您还要在非全局区域中使用存储库,最好使用pkg set-publisher --proxy选项,因为区域pkg代理不知道您的环境。如果没有代理选项,则存储库将在globale区域中运行,但不能在非globale区域中运行。