搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

I cannot delete Firefox. It gives me the error "libnspr4.dylib is in use" on mac os x 10.7. How do I remove Firefox?

  • 4 个回答
  • 221 人有此问题
  • 2 次查看
  • 最后回复者为 uname

more options

The file is "damaged or incomplete" and won't open.

The file is "damaged or incomplete" and won't open.

被采纳的解决方案

The process restarted immediately after killing it, so the above solutions didn't work for me. Instead, I did the following:

  • Search for 'vpnagentd' in Spotlight
  • Select 'Show All in Finder'
  • Rename vpnagentd to something else (I chose vpnagentd.stop)
  • Now stop vpnagentd in Activity monitor (it shouldn't respawn again)
  • Continue with FF installation
  • Restore the vpnagentd filename
  • Success
定位到答案原位置 👍 23

所有回复 (4)

more options

I had this and discovered it was Cisco AnyConnect VPN client keeping the file open. Really strange, and its name in the process table was Cisco\x20, could you look more like a trojan Cisco?

Anyways, if it so happens that you don't use this Cisco VPN client, you can find out yourself by executing some commands, this is not for the faint of heart and I'm not a teacher.

First `find /Applications/Firefox.app -name "libnspr4.dylib" -type f -print` showed me that the library is in /Applications/Firefox.app//Contents/MacOS/libnspr4.dylib.

Then an `ls -i /Applications/Firefox.app/Contents/MacOS/libnspr4.dylib |cut -d' ' -f1` will give me the inode number of the file which is unique. Then `lsof | grep inodenumber-you-found` will reveal the application holding it open. I also learned that on Mac OS lsof lists the filename so a lsof | grep libnspr would have been faster but hey! =D

Also the process vpnagentd could be holding it, run `sudo launchctl remove com.cisco.anyconnect.vpnagentd` and the service will be removed completely. I tried stopping it and couldn't, neither remove nor unload could stop the actual process, just restart it. =D Crazy Cisco!

由swehack于修改

more options

I simply opened a terminal window, typed `ps ax | grep vpn` and the just ran `sudo kill 220` where 220 was the process # that ran the Cisco AnyConnect vpn-process in the background. Then I was able to install Firefox 7.

And it also would have been possible to delete any Firefox installation if that was the purpose.

由gflygt于修改

more options

I received the same "libnspr4.dylib is in use" error when trying up upgrade (replace old version with new version). Thanks to you both @gflygt and @swehack, I was able to quickly kill the process with Activity Monitor (and without Terminal).

For those less tech savvy folks reading this who are wary of Terminal, try this easy fix: 1. Open Activity Monitor from Applications/Utilities, then 2. choose "CPU" on the bottom, choose to view "All Processes" on the top right, and search for "vpn". 3. The file in question, "vpnagentd" will come up, click on it to select it, and press the big red stop button on the upper-left to "quit process".

This should kill the process and allow you to uninstall/upgrade FireFox.

more options

选择的解决方案

The process restarted immediately after killing it, so the above solutions didn't work for me. Instead, I did the following:

  • Search for 'vpnagentd' in Spotlight
  • Select 'Show All in Finder'
  • Rename vpnagentd to something else (I chose vpnagentd.stop)
  • Now stop vpnagentd in Activity monitor (it shouldn't respawn again)
  • Continue with FF installation
  • Restore the vpnagentd filename
  • Success