搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

why do I get this error message /opt/firefox/run-mozilla.sh: 399: /opt/firefox/firefox-bin: not found

  • 3 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Vivek

more options

kubuntu 10.04 firefox 10.0.2

I downloaded and installed firefox 10.0.2 but when I... 1. click the desktop icon nothing happens. 2. use terminal mode and type firefox I get the following error message: /opt/firefox/run-mozilla.sh: 399: /opt/firefox/firefox-bin: not found

How do I fix this?

kubuntu 10.04 firefox 10.0.2 I downloaded and installed firefox 10.0.2 but when I... 1. click the desktop icon nothing happens. 2. use terminal mode and type firefox I get the following error message: /opt/firefox/run-mozilla.sh: 399: /opt/firefox/firefox-bin: not found How do I fix this?

被選擇的解決方法

In short, I used kpackagekit to uninstall firefox. Then used synaptic to uninstall firefox. After that I manually scanned the computer for residual DIRs. In the end, I noticed that I still had 3 DIRs containing firefox: /opt/firefox, /usr/lib/firefox-10.0.1, /usr/lib64/firefox-10.0.1

So removing firefox didn't work as expected.

As it turns out, the copy of firefox residing in /opt/firefox is v3.5.3, but I have a current version in /usr/lib and /usrlib64. For some reason the, new install didn't replace the copy in /opt/firefox and the /usr/bin scripts firefox and run-mozilla.sh point to /opt/firefox.

So when I use terminal mode and type firefox I get the cited error message. When I use my desktop icon it hangs.

My remedy for this was to due the following:

1. track down the location of the desktop icon: /usr/share/applications/firefox.desktop

2. edit the file: sudo pico /usr/share/applications/firefox.desktop

3. modify entry to: EXEC=/usr/lib/firefox-10.0.1 /firefox.sh u% ( save and exit)

4. modify terminal command: firefox

5. track down the location of the firefox command: /usr/bin/firefox and /usr/bin/ firefox.ubuntu

6. remove symbolic link: rm /usr/bin/firefox

7. remove symbolic link: rm /usr/bin/firefox

8. create new symbolic link: ln -sT /usr/lib/firefox-10.0.1/firefox.sh firefox

9. create new symbolic link: ln -sT /usr/lib/firefox-10.0.1/firefox.sh firefox.ubuntu

Everything works now as it should.

I believe the cause of this problem was related to the fact that the mozilla-team made a change to the location of their upgrade/update libraries which affected the entries in the file: /etc/apt/sources.list. When the ppa library location changed, my kubuntu version 10.04 didn't make this change and residual copies of firefox were left behind and DIRs /usr/bin and /opt/firefox were not modified.

Perhaps my experience will help others that tread this path.

Maybe somebody can explain to me why we need 3 DIRs for firefox: /opt/fire ; /usr/lib ; /usr/lib64

從原來的回覆中察看解決方案 👍 0

所有回覆 (3)

more options

Hi,

You can try to click the firefox script file in the downloaded package or make a new link to it. Please see this and this. You can also try to update/reinstall the customized Firefox in Kubuntu via the Update Manager/Software Center/Package Manager.

more options

選擇的解決方法

In short, I used kpackagekit to uninstall firefox. Then used synaptic to uninstall firefox. After that I manually scanned the computer for residual DIRs. In the end, I noticed that I still had 3 DIRs containing firefox: /opt/firefox, /usr/lib/firefox-10.0.1, /usr/lib64/firefox-10.0.1

So removing firefox didn't work as expected.

As it turns out, the copy of firefox residing in /opt/firefox is v3.5.3, but I have a current version in /usr/lib and /usrlib64. For some reason the, new install didn't replace the copy in /opt/firefox and the /usr/bin scripts firefox and run-mozilla.sh point to /opt/firefox.

So when I use terminal mode and type firefox I get the cited error message. When I use my desktop icon it hangs.

My remedy for this was to due the following:

1. track down the location of the desktop icon: /usr/share/applications/firefox.desktop

2. edit the file: sudo pico /usr/share/applications/firefox.desktop

3. modify entry to: EXEC=/usr/lib/firefox-10.0.1 /firefox.sh u% ( save and exit)

4. modify terminal command: firefox

5. track down the location of the firefox command: /usr/bin/firefox and /usr/bin/ firefox.ubuntu

6. remove symbolic link: rm /usr/bin/firefox

7. remove symbolic link: rm /usr/bin/firefox

8. create new symbolic link: ln -sT /usr/lib/firefox-10.0.1/firefox.sh firefox

9. create new symbolic link: ln -sT /usr/lib/firefox-10.0.1/firefox.sh firefox.ubuntu

Everything works now as it should.

I believe the cause of this problem was related to the fact that the mozilla-team made a change to the location of their upgrade/update libraries which affected the entries in the file: /etc/apt/sources.list. When the ppa library location changed, my kubuntu version 10.04 didn't make this change and residual copies of firefox were left behind and DIRs /usr/bin and /opt/firefox were not modified.

Perhaps my experience will help others that tread this path.

Maybe somebody can explain to me why we need 3 DIRs for firefox: /opt/fire ; /usr/lib ; /usr/lib64

由 owlseeker 於 修改

more options

Thanks for posting a detailed explanation. Your concerns seem valid. As you have noted ideally the .desktop file should have been updated by the package installed via the package manager. Please note that it would also be helpful to post in the Kubuntu support.