Hi Sajith,
please see below

On  1/02/12 03:26 PM, Sajith C.R. wrote:
Hi IPS team,
I am facing issue with removing one IPS package from my system. Because of some 
entries, it is not allowing me to re-install the package also.
#pkg info Myspt
pkg: [no errors accumulated]
#pkg uninstall -v Myspt
Creating Plan -
Errors were encountered while attempting to retrieve package or file data for
the requested operation.
Details follow:

[no errors accumulated]

#pkg contents Myspt

Errors were encountered while attempting to retrieve package or file data for
the requested operation.
Details follow:

[no errors accumulated]
How to come out of the above issue?

If you look at the pkg history, you should get an idea of what
the cause of the problem is.

As an example:


$ pkg history -n 3
START                    OPERATION                CLIENT             OUTCOME
2012-01-31T22:04:15      rebuild-image-catalogs   pkg                Succeeded
2012-01-31T22:04:41      install                  pkg                Failed
2012-01-31T22:13:32      install                  pkg                Canceled

$ pkg history -l -t 2012-01-31T22:04:41
         Operation: install
           Outcome: Failed
            Reason: Constrained
            Client: pkg
           Version: b4226bd1888c
              User: jmcp (101346)
         Boot Env.: s11u1_07
    Boot Env. UUID: e470b4d8-c834-c3a9-ef23-90e6659203ee
     New Boot Env.: None
New Boot Env. UUID: (None)
          Snapshot: (None)
        Start Time: 2012-01-31T22:04:41
          End Time: 2012-01-31T22:05:33
        Total Time: 0:00:52
           Command: /usr/bin/pkg install libetpan clamav dovecot postfix
       Start State:
None
         End State:
None
            Errors:
Traceback (most recent call last):
File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 1056, in __plan_op
    self._img.make_install_plan(**kwargs)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 4108, in make_install_plan
    reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 4071, in __make_plan_common
    ip.plan_install(**kwargs)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 598, in plan_install
    reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 582, in __plan_install
    reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 556, in __plan_install_solver
    relax_all=li_sync_op)
File "/usr/lib/python2.6/vendor-packages/pkg/client/pkg_solver.py", line 466, in solve_install
    no_version=ret, solver_errors=solver_errors)
PlanCreationException: No matching version of service/network/smtp/postfix can be installed: Reject: pkg://sfe/service/network/smtp/[email protected],5.11-0.151.1:20111014T184610Z Reason: All acceptable versions of 'require' dependency on pkg:/runtime/[email protected],5.11-0.151.1 are obsolete


The above output gives me sufficient information to determine the
root cause of the installation error, which in this case is that
one of the packages I want (dovecot) depends on perl-510, however
perl-510 has been obsoleted.


Is there any way to forcefully remove entries of a package from system?

Not that I'm aware.


James C. McPherson
--
Oracle
http://www.jmcp.homeunix.com/blog
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to