# 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
发布于 2015-04-21 14:18:08
如果您还想在非全局区域中使用存储库,最好使用pkg set-publisher --proxy选项,因为区域pkg代理不知道您的环境。如果没有代理选项,存储库可以在全局区域中工作,但不能在非全局区域中工作。
https://stackoverflow.com/questions/7261572
复制相似问题