# 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
答案 0 :(得分:0)
如果您还要在非全局区域中使用存储库,最好使用pkg set-publisher --proxy选项,因为区域pkg代理不知道您的环境。如果没有代理选项,则存储库将在globale区域中运行,但不能在非globale区域中运行。