LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   firefox error in sarge (https://www.linuxquestions.org/questions/debian-26/firefox-error-in-sarge-277269/)

bru 01-13-2005 06:13 AM

firefox error in sarge
 
After removing mozilla 1.7 with "apt-get --purge remove" and removing the other files/folders that were scattered around my hard drive I attempted to install Firefox. But I first read the post form seaching this form. I found out that it might be best to install libgtk2.0-common before installing Firefox, so I did. But it would not start after I attempted to start it from the command line. So I checked the posts again, and found one that said to run: "xhost +localhost" this gave me no errors, (I ran it as a user not root, if that makes a diffrence). then tried it again, still no dice. So I "apt-get --purge remove" and tryed again. Yet again no dice.

The error that was printed out was:
Code:

Xlib: connection to ":0.0" refused by server
Xlib: XDM authorization key matches an existing client!

(firefox-bin:2568): Gtk-WARNNING **: cannot open display:

Any pointer would be great, Thanks.


P.S. Google didn't help much

redgren 01-13-2005 10:16 AM

There was a problem, I recall vaguely, with firefox needing to run the first time as root on some distributions. I think it was Suse, but can't remember.

Anyway, you are the same user in the shell as you started X with?

what does 'echo $DISPLAY' give you?

bru 01-13-2005 03:44 PM

Yes I am the same user that I started X with as I am in the shell. I'll try the root thing when I get home from work.

echo f$DISPLAY= :0.0
Thanks for the help

Dead Parrot 01-14-2005 09:17 AM

Here's another thread that discusses a similar problem:
http://www.linuxquestions.org/questi...hreadid=275613

bru 01-15-2005 05:38 AM

Dead Parrot,

I actully followed that exact post a while back when I first encountered the problem. But It didn't help much. I even went a few steps futher, I removed every instance of mozilla from the computer after an 'apt-get --purge remove' as well as I have never looged on as root.
Any other ideas??? They would be greatly appricated.

<edit>
I just removed firefox again and reinstalled it, I even rebooted the computer after the removal and install, and still no dice! Then I loged on as root and tryed to run firfox, it gave me the same errors as before. Has anyone seen this before? Dose any one have any other sugestions that might be helpfull. Thanks a lot.

Code:


Xlib: connection to ":0.0" refused by server
Xlib: XDM authorization key matches an existing client!

(firefox-bin:2568): Gtk-WARNNING **: cannot open display:

(^^ the error code that it gives me)
</edit>

Dead Parrot 01-15-2005 08:53 AM

Well, the error message seems to refer to some kind of X authorization problem, like if you're running Firefox as a different user than the user who started the X session. Maybe you should run "w" (yes, it's a one letter long command) to see the users who are currently logged in? "ps -ef" and "pstree -u" might also become useful in studying user authorization for different currently running processes.

I haven't personally had any problems with Firefox in Debian Sid, so maybe the problem has something to do with your previous Mozilla installation? I think Mozilla is pretty closely integrated with Gnome. Is it possible that you still have some Mozilla settings left in some Gnome related subdirectory in your home directory and these interfere with Firefox? Maybe you should remove Firefox one more time, do "updatedb" and then "locate ozilla" to find all Mozilla related files that the --purge option has actually left behind?

You might also want to check out the bug reports for the Firefox package to see if someone else has reported a similar problem. Sometimes these bug reports contain temporary workarounds for specific problems.
http://bugs.debian.org/cgi-bin/pkgre...ozilla-firefox

bru 01-15-2005 06:55 PM

Dead Parrot,

I'll give the re-remove thing a go, and if still no dice I'll look and see if there is a bug reported or not. As far as users go I'm the only one loged in, even after I install firefox I exit from 'su'. But any how I'll also look into the 'sp -ef' and 'pstree -u' as well. Thanks again for the help.

<edit>
I checked bugzilla and found out that the problem is an actual bug,
bug #246313. There was a .bz2 file there that I'll check at home, I'm at work right now so I don't have the ability to view the file.
</edit>

bru 01-16-2005 07:41 AM

FIXED!!!
 
When I got home form work tonight I tryed what Dead Parrot said, and 'updatedb' then 'locate mozilla'. And while digging through the output I couldn't remember if firefox was loaded or not, so I ran the command 'firefox' and lo and behold it works!!!

Thanks everyone that gave me a hand fixing this!


All times are GMT -5. The time now is 11:34 PM.