RPM installation/Uninstall fails with scriptlet errors : "scriptlet failed, exit status"

Solution Verified - Updated -

Issue

  • Process to install / remove rpm packages fails during script execution
  • Install  or Remove packages can fail during %pre (preinstall), %preun  (preuninstall), %pos (postinstall)t, %postun (postuninstall) scriptlet  as follow:

         error: %pre(package-name-version.arch.rpm) scriptlet failed, exit status 110
         error:   install: %pre scriptlet failed (2), skipping package-name-version.arch.rpm
    ...
         error: %pre(package-name-version.arch.rpm) scriptlet failed, exit status 6
         error:   install: %pre scriptlet failed (2), skipping package-name-version.arch.rpm
    ...
         error in PREIN scriptlet in rpm package package-name-version.arch
         error: %pre(package-name-version.arch.rpm) scriptlet failed, exit status 9
    ...
         error: %preun(package-name-version.arch) scriptlet failed, exit status 127
    
  • Yum fails to install/remove packages with "PREUN/PREIN" errors

         Error in PREUN scriptlet in rpm package <package>
    ...
         Error in PREIN scriptlet in rpm package <package>
    

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.