I encountered a problem this evening that I can’t really explain, I couldn’t install any pkgs via the Package Manager or command line. Both were failing with the same error:
$ pfexec pkg install SUNWant Creating Plan - pkg: The following pattern(s) did not match any packages in the current catalog. Try relaxing the pattern, refreshing and/or examining the catalogs: SUNWant $
At the time I had 2 pkg publishers defined:
$ pkg publisher PUBLISHER TYPE STATUS URI OpenSolaris-dev (preferred) origin online http://pkg.opensolaris.org/dev/ WebStack origin online http://pkg.opensolaris.org/webstack/ $
Both look good to me and have been working fine.
I tried rebuilding the index, but this didn’t seem to make any difference, so as usual, I turned to my trusted browser and found this thread. Whilst not the same pkg, looks like I’m not alone in hitting this issue. I checked my GUI in more depth and found I too was experiencing the same problem with it only showing installed pkgs.
The final entry in the thread in which the user details their solution sounded good, however I’m not too keen on the idea of unnecessarily hacking at files. The interesting part about this comment was the “requirement” for a publisher named “opensolaris.org”. Huh?? I’ve not needed this in the past and though I did have one, it was inactive so wouldn’t (shouldn’t?) have been used. Oh well, maybe something has changed without notice.
So, armed with this info, I fired up the GUI, removed my old opensolaris.org/release publisher which had the name “opensolaris.org” assigned to it and then added a new opensolaris.org entry, but this time pointing at the opensolaris.org/dev repo.
A short while later my pkg publishers looked like this:
$ pkg publisher PUBLISHER TYPE STATUS URI OpenSolaris-dev (preferred) origin online http://pkg.opensolaris.org/dev/ WebStack origin online http://pkg.opensolaris.org/webstack/ opensolaris.org origin online http://pkg.opensolaris.org/dev/ $
… and I was able to install the pkgs I wanted without any problems.
I’m not really sure if it was changing the name of the repo or the refreshing of the catalogs that resolved the issue, but it’s working now
.
3 Responses to “Can’t Install pkg On OpenSolaris snv_127”
Speak Your Mind 
Search
Related Entries
- OpenSolaris snv_90 Update Pain Free
- Update OpenSolaris to Build 97
- Spotify On OpenSolaris
- First Milestone of Project Indiana Now Available
- New Solaris Installer Coming Soon
- Updating to OpenSolaris 2009.06
- OpenSolaris 2008.05
- microblog-purple Pidgin Plugin on OpenSolaris
- Links for 3 Sep 2008 - 11 Sep 2008
- Google Browser Sync


It’s popped up a couple of times I think it’s currently tracked under:
http://defect.opensolaris.org/bz/show_bug.cgi?id=11523
Which is mentioned in the release notes:
http://www.opensolaris.org/jive/thread.jspa?messageID=435135&tstart=0#435135
Doh!!! I skimmed the release notes and completely missed the note about this issue. As for the bug report - well, I see we still don’t learn from our mistakes: it doesn’t give any indication of the symptoms people are likely to see when encountering this issue.
It’s hardly obvious is it!