Error in PREUN scriptlet in rpm package sdcss-kmod when uninstalling Endpoint Protection Linux
search cancel

Error in PREUN scriptlet in rpm package sdcss-kmod when uninstalling Endpoint Protection Linux

book

Article ID: 241552

calendar_today

Updated On:

Products

Endpoint Protection Endpoint Security Complete Endpoint Security

Issue/Introduction

Error in PREUN scriptlet in rpm package sdcss-kmod when uninstalling Symantec Endpoint Protection (SEP) Linux

Example error from sdcss_uninstall.log :

Running transaction
  Preparing        :                                                         
  Running scriptlet: sdcss-kmod-10.0.5-1726.el8.x86_64                      
  Running scriptlet: sdcss-kmod-10.0.5-1726.el8.x86_64                      

Aborting uninstall as Agent does not seem to be installed correctly.
File "/usr/lib/symantec/sdcssagent/lib/instfunlib-kmod" or "/etc/symantec/sis/rc.functions" is inaccessible, or is missing.
If protection is enabled, it must be disabled before uninstalling.
Otherwise, a manual uninstall must be performed to remove this software.
Refer to product documentation to perform a Manual Uninstall.

error: %preun(sdcss-kmod-10.0.5-1726.el8.x86_64) scriptlet failed, exit status 1

Error in PREUN scriptlet in rpm package sdcss-kmod
  Running scriptlet: sdcss-kmod-10.0.3-1337.el8.x86_64                     
error: sdcss-kmod-10.0.5-1726.el8.x86_64: erase failed

Environment

SEP 14.x

Cause

The rpm package is stuck and doesn't get removed when the uninstallation is done.

Resolution

The rpm packages which are not uninstalled correctly can be removed manually as follows. 
 
1. Delete the below folders:
 
rm -rf /opt/Symantec/sdcssagent/
rm -rf /opt/Symantec/cafagent/
rm -rf /etc/sisips
rm -rf /etc/caf/
rm -rf /etc/symantec/sis/
rm -rf /var/log/sdcsslog/
rm -rf /var/log/sdcss-caflog/
rm -rf /var/symantec/
rm -f /etc/yum.repos.d/sdcss.repo
 
2. Once all are deleted, then run below command to clean up entry from rpm DB
 
rpm -e --justdb sdcss
rpm -e --justdb sdcss-kmod
 
3. Verify that packages are removed
 
rpm -qa | grep sdcss