uninstall_agent script fails to uninstal MacOS agent
search cancel

uninstall_agent script fails to uninstal MacOS agent

book

Article ID: 191647

calendar_today

Updated On: 04-21-2025

Products

Data Loss Prevention Endpoint Prevent Data Loss Prevention

Issue/Introduction

The Symantec Data Loss Prevention (DLP) Endpoint Agent uninstall_agent utility fails and produces the following output:

username@localmachine ~ %  ./uninstall_agent
Writing the logs at /private/tmp/uninstall_agent.log
Could not determine the install state of the Agent.
The Agent uninstallation was not successful or the Agent is not installed. Please try restarting the system and running the Uninstaller again.
For additional information on error please see logs at /private/tmp/uninstall_agent.log

The uninstall_agent.log contains the following:

2021-06-10 13:40:04 | uninstall_agent | INFO | Startup.
2021-06-10 13:40:04 | uninstall_agent | FINE | Could not read Agent install data. Could not find valid installed product.
2021-06-10 13:40:04 | uninstall_agent | SEVERE | Could not determine the install state of the Agent.
2021-06-10 13:40:04 | uninstall_agent | INFO | Exit.

Environment

Release: Any

Component: Data Loss Prevention (DLP) Endpoint Prevent for MacOS

Cause

The com.symantec.dlp.edpa.bom and com.symantec.dlp.edpa.plist files are missing or corrupt. 

Resolution

The necessary files are located in /var/db/receipts directory. Copy the com.symantec.dlp.edpa.bom and com.symantec.dlp.edpa.plist files from a working Endpoint Agent. Alternatively, reinstall the agent on top of itself and then try uninstalling it.

Additional Information

Verify the installed DLP Agent version using pkgutil --pkg-info com.symantec.dlp.edpa

pkgutil --pkg-info com.symantec.dlp.edpa
package-id: com.symantec.dlp.edpa
version: <DLP Agent Version>
volume: /
location: 
install-time: 1620744890