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 has worked in IT for nearly 20 years, and currently serves as a Sr. Systems Engineer for a federal contractor in Belgium. Always an avid scripter, she attended the Monad session at Microsoft’s Professional Developers Conference in Los Angeles back in 2005 and has worked and played with PowerShell ever since. Chrissy is currently pursuing an MS in Systems Engineering at Regis University and helps maintain RealCajunRecipes.com in her spare time. She holds a number of certifications, including those relating to SQL Server, SuSE Linux, SharePoint and network security. She recently became a Microsoft PowerShell MVP. You can follow her on Twitter at @cl.

Posted in OS X & iDevices

Leave a Reply

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



We are IT pros who grew up living and loving life in Cajun Country.


Chrissy LeMaire
View Chrissy LeMaire, BSc. MCITP's profile on LinkedIn

Brandon Abshire
View Brandon Abshire, MCDBA's profile on LinkedIn


Chrissy LeMaire
Microsoft PowerShell MVP