LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Firefox error messagewhen try to access internet (https://www.linuxquestions.org/questions/linux-newbie-8/firefox-error-messagewhen-try-to-access-internet-742925/)

witchcat 07-26-2009 11:54 AM

Firefox error messagewhen try to access internet
 
Hi
I have an Aspire Acer with linux lite.When I try to access internet an error message appears saying I need to close firefox but it won't let me. What do I do?
Thanks

mark_alfred 07-26-2009 01:49 PM

It likely means an instance of firefox is still running (perhaps it crashed on your last use, rather than exiting properly). So, run the command "killall firefox" (without quotes). Your system should have a way to enter commands, via a menu choice at a start button, or something. If not, open a terminal, and enter the command there, or press Alt-F2, and a box should appear where you can enter commands. Enter the command "killall firefox". Then, you should have no problem opening firefox.

If you still have problems, rebooting would clear things up.

Oh, wait, I think I misread your question. I thought you were having problems opening firefox, but it appears you can open firefox, but can't connect to the internet? Well, maybe my above suggestion will help anyway.

and235100 07-26-2009 02:43 PM

If this is still a problem after a reboot, then it would indicate that the lock file that FF should delete after installing an Add-On has not been removed after a (successful) install - the killall command should remove the lock file, but occasionally, it doesn't.

Manual removal:
To remove the file manually open up a terminal window and issue the command cd ~/.mozilla/firefox. Within this directory will be a directory unique to the user. To find out the name of this directory issue the command ls. The directory will be a random string of characters. Mine, for example, is u6n8y834.default. Change into this directory and issue the command ls. You should now see a file called lock. Issue the command rm lock to remove this file. Firefox should now start up.

(from http://www.ghacks.net/2009/02/14/linux-firefox-tips/)

witchcat 07-27-2009 12:31 PM

no success
 
Tried both above but when I put in killallfirefox a run errormessage appears saying "failed to execute child process "killallfirefox"(no such file or directory)
When I try the manual removal and put cd etc into the terminal window the words "No such file or directory" appear.
Help?

and235100 07-27-2009 12:55 PM

Can I check something - did you run the command with su?
You might need to use su to run killall.
And, just to check - you need to use "killall firefox" (or "killall firefox-bin" (no quotes).

As to being unable to locate the firefox install path - run FireFox, then from a terminal, try running $ "ps -efww" (i.e. as superuser)

mark_alfred 07-27-2009 09:43 PM

Quote:

Originally Posted by witchcat (Post 3621929)
..but when I put in killallfirefox a run error message appears ..

Not "killallfirefox", but rather "killall firefox" (it's two words, not one).

Also, as and235100 mentioned, perhaps "killall firefox-bin" would work.

However, I'm surprised that rebooting did not work. So, I'm not really sure what to suggest, actually. Can you connect to the internet with its other applications? For instance, can you connect to the internet using the messenger (it uses pigeon, I think)?

You should probably download the manual from Linpus for the Acer Aspire One, and have a look there.

witchcat 07-29-2009 12:31 PM

Still not working
 
If I use su and killallfirefoxin the command window that appears when I press alt F2then it flashes and nothing else happens. If I put this in a terminal then the message that appears is su: user killallfirefox does not exist.
What next?
Thanks for the help so far.

repo 07-29-2009 12:50 PM

Can you open firefox?
When does the error appear?

To kill ll instances o firefox
open a terminal
type
Code:

ps ax| grep firefox
the output should be something like
Quote:

cannabis:/home/repo# ps ax | grep firefox
10979 ? S 0:00 /bin/sh /opt/firefox/firefox
10988 ? S 0:00 /bin/sh /opt/firefox/run-mozilla.sh /opt/firefox/firefox-bin
10992 ? Sl 6:10 /opt/firefox/firefox-bin
24287 pts/0 R+ 0:00 grep firefox
cannabis:/home/repo#
To kill firefox, type
Code:

kill -9 10979
where 10979 is the PID you see on YOUR screen

Again type
Code:

ps ax| grep firefox
and
Code:

kill -9 PID
un till the output from ps ax| grep firefox is empty
start firefox


All times are GMT -5. The time now is 07:08 PM.