OS X: launchctl: error unloading

Need to uninstall xquartz but keep running into the following error?

macbook:~ clem$ sudo launchctl unload -w /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
launchctl: Error unloading: org.macosforge.xquartz.startx

For whatever reason, you have to run this particular unload as a regular user and not as root or using sudo. Once you do that, it should successfully unload.

Chrissy is a Cloud and Datacenter Management & Data Platform MVP who has worked in IT for over 20 years. She is the creator of the popular SQL PowerShell module dbatools, and holds a number of certifications, including those relating to SQL Server, Linux, SharePoint and network security. You can follow her on Twitter at @cl.

Posted in OS X & iPhone

Leave a Reply

Your email address will not be published. Required fields are marked *

*