开发者

"'Unable to contact any configured publishers' when installing a package on Solaris"

开发者 https://www.devze.com 2023-04-01 07:20 出处:网络
# pkg publisher PUBLISHERTYPESTATUSURI solaris(preferred)originonlinehttp://pkg.oracle.com/solaris/release/
# 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 con开发者_如何转开发figuration 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消