So today I decided to switch over to the mainline Firefox 4.0 Beta from the Minefield dailies I’ve been using. Â I started to copy the new Firefox.app directory over the existing one in my Applications folder and immediately was met with a:
‘The operation can’t be completed because the item “libsmime3.dylib” is in use.’
Well shit, whats holding onto that lib. Â Turns out that it was my Cisco VPN Anywhere Agent, aka vpnagentd. Â So I go ahead and do a:
‘sudo killall vpnagentd’
Ugh and of course it restarts automatically before I can copy the files over. Â So what now. Â Oh yeah, it runs as a daemon so I need to use my old friend launchctl to unload it. Â The command for this is:
sudo launchctl unload /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
w00t! Now the files copy over with no problem. Â Now I need to put AnyConnect back into place. Â This can be done with:
sudo launchctl load /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
That should do it, Firefox 4 Beta up online and working again.
That was 15 minutes of my life I’ll never get back. Hopefully this post saves you 10.