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
SEP 14.x
The rpm package is stuck and doesn't get removed when the uninstallation is done.
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
rpm -e --justdb sdcss
rpm -e --justdb sdcss-kmod
rpm -qa | grep sdcss