Support Questions
Find answers, ask questions, and share your expertise

Failed to remove oozie server rpm


Unable to use yum to remove oozie server

# yum remove oozie_2_6_4_0_91 -y

Loaded plugins: langpacks, priorities, product-id, rhnplugin, search-disabled-
              : repos, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Resolving Dependencies
--> Running transaction check
---> Package oozie_2_6_4_0_91.noarch 0: will be erased
--> Finished Dependency Resolution

Dependencies Resolved

 Package              Arch       Version                 Repository        Size
 oozie_2_6_4_0_91     noarch        @HDP-     0.0

Transaction Summary
Remove  1 Package

Installed size: 0
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
/var/tmp/rpm-tmp.4p0Hg2: line 1: pushd: /usr/hdp/ No such file or directory
/var/tmp/rpm-tmp.4p0Hg2: line 3: popd: directory stack empty
error: %preun(oozie_2_6_4_0_91- scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package oozie_2_6_4_0_91-
3529 packages excluded due to repository priority protections
  Verifying  : oozie_2_6_4_0_91-                     1/1

  oozie_2_6_4_0_91.noarch 0:



Super Mentor

@Zaili Xu
Please try cleaning up the yum cache first as following :

# yum clean all && rpm --rebuilddb
# package-cleanup --problems

And then perform the following command again:

# yum remove oozie_2_6_4_0_91 -y


Super Mentor

@Zaili Xu

If this fixes your issue then can you please mark this HCC thread as "answered" by clicking on the "Accept" button on the correct answer so that it will be useful for other HCC users to quickly browse and find the solution.


Thank you, Jay