LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2006, 09:06 AM   #1
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Rep: Reputation: 15
Firefox install problem on Kubuntu, possibly libgtk related


Hi i'm new here and new to linux in general. I've just installed Kubuntu 6.06.1 (i386) on my system and am trying to install a few things i want.

I went to mozilla.com and downloaded the i686 firefox.tar.gz. Then i followed the directions here:

https://help.ubuntu.com/community/FirefoxNewVersion

to the letter up to the part where you type 'firefox' to make it start (except for the part about backing up my bookmarks as i don't have any yet).

I typed firefox in a konsole and got this error:

/opt/firefox/firefox-bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory


I did a search on these forums, which is always the first thing to do. I found one or two other similarish cases. I think that installing the libgtk library may do the trick.

I opened up the Adept package manager and tried to find libgtk so i could install it, but it wasn't listed. I did find gtk2-engines-gtk-qt however. I noticed from the previous threads that synaptic may help me do it, so i tried sudo apt-get install synaptic (and Synaptic), and sudo apt-get install kynaptic (and Kynaptic) but got errors e.g:

Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package Synaptic


I could use a little bit of advice to nudge me in the right direction.

Last edited by andy-k; 08-28-2006 at 09:44 AM.
 
Old 08-28-2006, 12:05 PM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
Hi andy
Welcome for your first post!
Did you check the Software Requirements for Firefox?
You can look here
but I paste the part for Linux systems :

Quote:
# Linux kernel - 2.2.14 or higher with the following libraries or packages:

* glibc 2.3.2 or higher
* XFree86-3.3.6 or higher
* gtk+2.0 or higher
* fontconfig (also known as xft)
* libstdc++5
In particular do you have gtk+2.0 installed on your machine?
Because Firefox is a GTK based application.
I don't use Kubuntu, so I give you only general infos.
But it is a start to solve your problem.
I hope you will find a solution quickly.
 
Old 08-28-2006, 12:17 PM   #3
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
You might need to enable some different repositories. If you post what's in /etc/apt/sources.lst we can check if any are missing. (I think that's it, I don't use ubuntu anymore so I can't check)

You should be able to install firefox using adept, which would bring in any other packages you need as well. Just so you know Synaptic and Kynaptic are frontends to apt-get, like Adept. I preferred Synaptic over Adept, but people may have personal preferences.
 
Old 08-28-2006, 02:43 PM   #4
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Original Poster
Rep: Reputation: 15
Merci vraiment M. Berbae i didn't know about the firefox software requirements link.

# Linux kernel - 2.2.14 or higher with the following libraries or packages:

* glibc 2.3.2 or higher
* XFree86-3.3.6 or higher
* gtk+2.0 or higher
* fontconfig (also known as xft)
* libstdc++5

I have:

# Linux kernel - 2.6.15-26 (i think)

* libdbus-glib-1-2 and libglib2.0-0. Can't find glibc
* libXxf86misc1 and libXxf86vm1. Can't find XFree86
* gtk2-engines-gtk-qt. Can't find gtk+
* fontconfig YES!
* libstdc++5 YES!

I have found the sources.list for you Mr McMillan. It says this (Please note i've had to put all the http parts of links on brackets because the forum says i'm not allowed to post URLs until i've made 3 posts, despite the fact i've posted 4 already...):

Quote:
# Line commented out by installer because it failed to verify:
#deb (http)://gb.archive.ubuntu.com/ubuntu/ dapper main restricted
# Line commented out by installer because it failed to verify:
#deb-src (http)://gb.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# Line commented out by installer because it failed to verify:
#deb (http)://gb.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
# Line commented out by installer because it failed to verify:
#deb-src (http)://gb.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb (http)://gb.archive.ubuntu.com/ubuntu/ dapper universe
# deb-src (http)://gb.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb (http)://gb.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src (http)://gb.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

# Line commented out by installer because it failed to verify:
#deb (http)://security.ubuntu.com/ubuntu dapper-security main
# Line commented out by installer because it failed to verify:
#deb-src (http)://security.ubuntu.com/ubuntu dapper-security main
# deb (http)://security.ubuntu.com/ubuntu dapper-security universe
# deb-src (http)://security.ubuntu.com/ubuntu dapper-security universe
I did try installing firefox with adept but couldn't work it out. And the only firefox related item that came up on search was mozilla-firefox-locale-en-gb which seems to be some kind of language package.

On the Add/Remove Programs thing i searched 'Any Suite' and Firefox was on the 'Internet' section but it was greyed out, so i couldn't enable or disable it any way.

But i understand the Kubuntu version of firefox is much slower than the mozilla.org version, for whatever reason so that's the one i'm trying to get going. It looks as though i'm missing some of the components firefox needs to work.

Last edited by andy-k; 08-28-2006 at 02:46 PM.
 
Old 08-29-2006, 07:22 AM   #5
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Original Poster
Rep: Reputation: 15
I've been told that the Ubuntu repositories can be a bit flakey, and inaccessible for hours at a time. But are these repositories the only way to get the dependencies i need? I've not yet even had the chance to use Adept anyway as it only seems to list everything i already have installed, which is useful..

I've edited /etc/apt/sources.list using sudo vim /etc/apt/sources.list and uncommented all the sources that are commented out above. It doesn't seem to have made any difference whatsoever.

I'm guessing i still need to obtain a few libraries to make firefox work. Namely:

* glibc 2.3.2 or higher
* XFree86-3.3.6 or higher
* gtk+2.0 or higher

Also, my disappearing internet connection returned today. And yet again the solution was to keep rebooting until the internet worked again. As before the net returned on the 3rd bootup. I'm thinking something is in need of configuration.
 
Old 08-29-2006, 09:59 AM   #6
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
You said in your first post:
Quote:
I've just installed Kubuntu 6.06.1 (i386)
Did you install the Desktop version or the Alternate version ?
Because on the Alternate version there is everything you are looking for, and Firefox comes with it already.
I think the Kubuntu 6.06.1 Alternate is much more complete than the Desktop version.
As for the libraries you think you need, I can tell you that you already have the glibc 2.3.6 libraries and the Xorg 7.0 X server, which replaced the XFree86 X server, because they are basic libraries needed for the functionning of your system and the KDE GUI.
Maybe only the gtk+2.0 (AKA gtk2) is missing on your machine, and the Alternate version has the 2.8.20 version.
I think you have an incomplete installation and, if you can, I advise you to install the Kubuntu 6.06.1 Alternate version.
Best wishes to you.
 
Old 08-29-2006, 11:20 AM   #7
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
Having the repositories working is the best way to install things, so at some point you should get that figured out. I haven't had a problem accessing any repositories, though based the first line there was definitely a problem at least when you installed. If you continue having problems you might be want to choose a different location than the British repositories. There's a site that can generate a new repository list for you, but I can't seem to find it anymore, I bet there's a link somewhere at the ubuntu forums though. After you make changes to the sources.lst file you need to update the list of packages, since you only have listed the packages already installed you almost certainly still need to do this. There should be a way to update through Adept, but I don't know what it is. You can do the same thing by typing sudo apt-get update into a terminal.

Berbae is right that you should have everything except the gtk libraries just by having a normal install. I'm pretty sure libglib is what the ubuntu calls the package for glib stuff. Similarly the gtk package you want is called libgtk2.0-0.
 
Old 08-29-2006, 01:18 PM   #8
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Original Poster
Rep: Reputation: 15
Good advice. I'm downloading the Alternate ISO right now and i will run MD5SUMS on it before install to rule out any errors caused in download. Maybe this will work better for me.

Could my NIC be the problem with the repositories? I'm using the onboard LAN on an ASUS A8N-SLI SE mobo which uses an 'nVidia nForce4 built-in Gigabit MAC with external PHY'.

My router is a D-Link DSL-504T with built in modem and the latest firmware. I believe it changes something every 604000ish seconds from a range or 192.168.1.1 and 192.168.1.33.

It's absolutely rock solid in WinXP. Very rare for me to get a stuck session since i changed the IP thingy from changing every 60 seconds to every 604000ish seconds instead.

In Adept there is a button labelled 'Fetch Updates' which i think is what you mean mcmillan, but that doesn't work for me. It's as though it can't even connect to find anything.

I can see that the repositories are central to everyday life in linux and it's vital i get them working before i can go further.
 
Old 08-29-2006, 08:10 PM   #9
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Original Poster
Rep: Reputation: 15
Ok an update on the situation, which has improved.

I downloaded the Alternate ISO. Burned it and made K3b check it's integrity. It failed and so did the cds self-check. I burned the image again, this time it passed the K3b check and it's own checks several times.

I installed the i386 Alternate. The attempt at downloading security updates failed, just as the AMD64 Desktop version and the i386 Desktop version did. Install completed.

I opened Adept. Again i had 937 packages installed, but this time importantly i have 1156 available and plenty listed as 'Not installed'. And when i click Fetch Updates for this list the progress bar completes in the blink of an eye.

I searched for 'gtk' and three entries of interest came up. libgtk2.0.0, libgtk2.0-bin and libgtk2.0-common. I selected to install them and it began to, i was prompted to install the cd and did, installation completed and the updates were listed as installed.

So it looks as though the repositories are working now. Brilliant news.

Now the important part. I went back to mozilla.org and downloaded firefox again. Followed the instructions again (link in first post) and installed firefox without a hitch. Run command 'firefox' and it opens. Excellent. Imported my bookmarks and there they are. Excellent.

One slight problem though. Firefox won't connect to any webpages. It just times out as though it can't find an internet connection, even though there is, because Konqueror is surfing fine.

I'm so close now, it must be something really minor. But what?

Last edited by andy-k; 08-29-2006 at 08:12 PM.
 
Old 08-30-2006, 04:42 AM   #10
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
In Firefox choose in the scrolling down menu Edit/Preferences and
choose General/connexion settings...
and configure there what concerns your connexion, maybe "Direct connexion to the Internet" or something else.
It's nice you progressed in your installation. Congratulations!
 
Old 08-30-2006, 06:36 AM   #11
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks for all the help so far you guys.

I checked my preferences and firefox is setup with a 'Direct connection to the internet' which i guess has to be right for me. Connected to a modem/router.

Also i put about:config in the browser and searched for 'network.dns.disableIPv6' to check it was false like it should be. But it is by default so that's not the problem either.
 
Old 08-30-2006, 04:30 PM   #12
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Original Poster
Rep: Reputation: 15
I've now actually managed to get firefox working by changing the default setting of 'network.dns.disablePv6' from 'False' to 'True'.

However i am still getting intermittent complete loss of internet connection (unrelated to firefox). The only remedy i have found to this so far is to keep rebooting Kubuntu until it works (between 1 and 5 reboots).

I am also still unable to connect to online repositories. It appears as though before i must have connected to the repository list on the install cd and got updates from there.

It looks as though i've found a legitimate Kubuntu bug with apt-get and D-Link routers. It may be the inbuilt NAT or firewall but Kubuntu has a problem with it.

I've found a few other people with my exact model of router having identical symptoms. Here are two threads about it:

http://kubuntuforums.net/forums/index.php?topic=5276.0

http://kubuntuforums.net/forums/index.php?topic=6499

I really need working repositories to get along with linux. If Kubuntu isn't capable of doing this then i may have to consider changing distro, which would be a shame because i'm really taking to Kubuntu. It has so much character.

Last edited by andy-k; 08-30-2006 at 05:31 PM.
 
Old 08-31-2006, 09:41 AM   #13
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Original Poster
Rep: Reputation: 15
It seems that there is a problem with IPv6 and some D Link routers. So i tried this:

http://ubuntuos.wordpress.com/2006/0...efox-internet/

I'm afraid that didn't work for me, i lost internet connectivity altogether. I rebooted 4 times but got no internet, so i deleted the new bad_list file i'd created and rebooted. Firefox found my homepage instantly.

It seems my D-Link router is causing problems for Kubuntu and i don't know why. I can't stick with a distro that requires half a dozen reboots every time i need to connect to the internet, and no repositories. One guy switched to Fedora and had no more problems. Maybe i'll do that.

Another guy having problems with the DSL-504T said this:

"Initially I had problems getting it working with Linux (I use Fedora Core 3) - the router's DNS server couldn't handle IPV6-mapped addresses. So I set it up to use static IP addressing and manually configured DNS in Linux using the servers listed in the router's log file. It's now working a treat. (I'm new to Linux and networking, so the lingo might not be accurate - apologies.)"

If someone could put that in a language i could understand, with a step by step, i'd be more than willing to give it a go..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB error 2 and possibly related problem cajunaggie Linux - General 4 08-31-2007 04:08 AM
some domains inaccessible, possibly masquerade or dns related front_sturm Linux - Networking 4 05-23-2006 03:27 AM
Strange possibly Amarok related problem futz Linux - Software 4 12-13-2005 10:44 AM
Installing Firefox - libgtk iqchicken Linux - Software 6 11-19-2005 12:42 PM
KDSKBENT Error -Nvidia Related... Possibly MTUTech Fedora 0 12-10-2004 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration