When trying to install the package on Solaris 11 SPARC machine, I am getting a general failure:
pkg install: The following pattern(s) did not match any allowable packages. Try using a different matching pattern, or refreshing publisher information:
splunkforwarder-6.2.4-271043-solaris-8-sparc.pkg
When I review the package install history, I have these details:
-bash-4.1# pkg history -l -t 2015-07-29T10:47:04
Operation: install
Outcome: Failed
Reason: Bad Request
Client: pkg
Version: f840f00cdeff
User: root (0)
Boot Env.: solaris-4
Boot Env. UUID: masked
New Boot Env.: None
New Boot Env. UUID: (None)
Snapshot: (None)
Start Time: 2015-07-29T10:47:04
End Time: 2015-07-29T10:47:11
Total Time: 0:00:07
Command: /usr/bin/pkg install splunkforwarder-6.2.4-271043-solaris-11-sparc.p5p
Release Notes: No
Start State:
None
End State:
None
Errors:
Traceback (most recent call last):
File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 1405, in __plan_op
self._img.make_install_plan(kwargs)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 4356, in make_install_plan
reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 4315, in __make_plan_common
ip.plan_install(kwargs)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 564, in plan_install
reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 522, in __plan_install
reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 433, in __plan_install_solver
reject_set=reject_set)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 4987, in __match_user_fmris
rejected_pats=exclpats)
PlanCreationException: The following pattern(s) did not match any allowable packages. Try
using a different matching pattern, or refreshing publisher information:
splunkforwarder-6.2.4-271043-solaris-11-sparc.p5p
I am at a loss to understand the failure at this point.
Hello,
there is a mistake up there on the pkg install .....
It is as simple as pkg install splunkforwarder since the publisher and has already been setup
Well, finally figured it out with help.
You need to set the publisher definition up first (further steps are as follows):
pkg set-publisher -p /tmp/install/splunkforwarder-6.2.4-271043-solaris-11-sparc.p5p splunk
Test the package:
pkg install -nv splunkforwarder
Install:
pkg install ./splunkforwarder-6.2.4-271043-solaris-11-sparc.p5p splunk
Verify installed (two commands):
pkg list -v splunkforwarder
FMRI IFO
pkg://splunk/application/splunkforwarder@6.2.4,271043:20150626T044039Z i--
pkg info -r splunkforwarder
Name: application/splunkforwarder
Summary: Splunk Universal Forwarder
Description: Splunk> The platform for machine data.
Category: Applications/Internet
State: Installed
Publisher: splunk
Version: 6.2.4
Build Release: 271043
Branch: None
Packaging Date: Fri Jun 26 04:40:39 2015
Size: 42.53 MB
FMRI: pkg://splunk/application/splunkforwarder@6.2.4,271043:20150626T044039Z
Remove the temporary publisher:
pkg unset-publisher splunk