I will share the solution of the following error during the installing package on Solaris 11.
Error :
root@testdb:~# pkg install pkg://system/dtrace
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 error: code: 6 reason: Couldn’t resolve host ‘pkg.oracle.com’
URL: ‘http://pkg.oracle.com/solaris/release’ (happened 4 times)
Solution :
1 2 3 4 5 | root@testdb:~# svccfg -s system/name-service/switch svc:/system/name-service/switch> setprop config/host = astring: “files dns” svc:/system/name-service/switch> exit root@testdb:~# svcadm refresh name-service/switch root@testdb:~# svcadm restart name-service/switch |