Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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 trả lời
  • 221 gặp vấn đề này
  • 2 lượt xem
  • Trả lời mới nhất được viết bởi uname

more options

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

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

Giải pháp được chọn

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
Đọc câu trả lời này trong ngữ cảnh 👍 23

Tất cả các câu trả lời (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!

Được chỉnh sửa bởi swehack vào

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.

Được chỉnh sửa bởi gflygt vào

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

Giải pháp được chọn

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