“无法联系任何已配置的发布者”在 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
# 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)
Found the Answer:
It was adding the proxy settings to profile
export http_proxy=http://URL:port
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想在非全局区域中使用存储库,最好使用 pkg set-publisher --proxy 选项,因为区域 pkg 代理不知道您的环境。如果没有代理选项,存储库可以在全局区域中工作,但不能在非全局区域中工作。
If you what to use the repository also in the non-globale zone it is better to use the pkg set-publisher --proxy option because the zone pkg proxy does not know your enviroment. Without the proxy option the repository works in globale zone but not in non globale zone.