Firefox won't launch in Ubuntu after upgrading to feisty fawn...help appreciated

Asked by MJC

I originally installed the 64-bit version of Ubuntu (I'm using an AMD64 processor) so I assume the upgrade is as well.

When I try to launch firefox I get the starting firefox box at the bottom for about 30 seconds and then no window comes up.

If I try to launch it in the terminal I get the following:

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

I've already tried reinstalling firefox, no dice. Also tried reinstalling libgtk2.0-0, still no luck.

I'm wondering if I have the 32-bit libraries and 64-bit version of firefox or vice versa, not sure how to find out though.

Any help is appeciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Caspar Clemens Mierau
Solved:
Last query:
Last reply:
Revision history for this message
- (a--deactivatedaccount) said :
#1

can you try

strace firefox

see what results you get.

Revision history for this message
- (a--deactivatedaccount) said :
#2

can you try

strace firefox

see what results you get.

Revision history for this message
- (a--deactivatedaccount) said :
#3

Sorry I meant to click 'Add Information Request'

Revision history for this message
MJC (acrimonious85) said :
#4

execve("/usr/bin/firefox", ["firefox"], [/* 31 vars */]) = 0
brk(0) = 0x61b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2ba2a2162000
uname({sys="Linux", node="Desktop", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2ba2a2163000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=55850, ...}) = 0
mmap(NULL, 55850, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ba2a2165000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\331"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1367432, ...}) = 0
mmap(NULL, 3473592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2ba2a2363000
mprotect(0x2ba2a24aa000, 2097152, PROT_NONE) = 0
mmap(0x2ba2a26aa000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x147000) = 0x2ba2a26aa000
mmap(0x2ba2a26af000, 16568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x2ba2a26af000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2ba2a26b4000
arch_prctl(ARCH_SET_FS, 0x2ba2a26b46f0) = 0
mprotect(0x2ba2a26aa000, 12288, PROT_READ) = 0
munmap(0x2ba2a2165000, 55850) = 0
getpid() = 6078
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
geteuid() = 1000
brk(0) = 0x61b000
brk(0x63c000) = 0x63c000
getppid() = 6077
stat("/home/rick", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/bin/firefox", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10) = 10
close(3) = 0
fcntl(10, F_SETFD, FD_CLOEXEC) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x40def0, ~[RTMIN RT_1], SA_RESTORER,
0x2ba2a2393d40}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
read(10, "#!/bin/sh\n#\n# ***** BEGIN LICENS"..., 8192) = 5247
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6079
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "/usr/bin\n", 128) = 9
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6079
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6080
close(4) = 0
read(3, "firefox\n", 128) = 8
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6080
--- SIGCHLD (Child exited) @ 0 (0) ---
stat("/usr/bin/run-mozilla.sh", 0x7fff08960bb0) = -1 ENOENT (No such
file or directory)
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6081
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "/home/rick\n", 128) = 11
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6081
lstat("/usr/bin/firefox", {st_mode=S_IFLNK|0777, st_size=20, ...}) = 0
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6082
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "firefox\n", 128) = 8
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6082
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6083
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "/usr/bin\n", 128) = 9
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6083
chdir("/usr/bin") = 0
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6084
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "/opt/firefox/firefox\n", 128) = 21
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6084
stat("/opt/firefox/firefox", {st_mode=S_IFREG|0755, st_size=5247, ...})
= 0
geteuid() = 1000
getgid() = 1000
getegid() = 1000
getgroups(0, NULL) = 12
getgroups(12, [4, 20, 24, 25, 29, 30, 44, 46, 106, 110, 112, 1000]) = 12
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6087
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "/opt/firefox\n", 128) = 13
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6087
stat("/opt/firefox/run-mozilla.sh", {st_mode=S_IFREG|0755,
st_size=10492, ...}) = 0
geteuid() = 1000
getgid() = 1000
getegid() = 1000
getgroups(0, NULL) = 12
getgroups(12, [4, 20, 24, 25, 29, 30, 44, 46, 106, 110, 112, 1000]) = 12
chdir("/opt/firefox") = 0
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0x2ba2a26b4780) = 6088
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "/opt/firefox\n", 128) = 13
read(3, "", 128) = 0
close(3) = 0
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
6088
chdir("/home/rick") = 0
open("/opt/firefox/init.d", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
open("/home/rick/.mozilla/firefox/init.d", O_RDONLY|O_NONBLOCK|
O_DIRECTORY) = -1 ENOENT (No such file or directory)
stat("/opt/firefox/init.d/S*", 0x7fff08960850) = -1 ENOENT (No such file
or directory)
stat("/home/rick/.mozilla/firefox/init.d/S*", 0x7fff08960850) = -1
ENOENT (No such file or directory)
clone(/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
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x2ba2a26b4780) = 6089
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(4294967295, [{WIFEXITED(s) && WEXITSTATUS(s) == 127}], 0, NULL) =
6089
open("/home/rick/.mozilla/firefox/init.d", O_RDONLY|O_NONBLOCK|
O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/opt/firefox/init.d", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT
(No such file or directory)
stat("/home/rick/.mozilla/firefox/init.d/K*", 0x7fff08960850) = -1
ENOENT (No such file or directory)
stat("/opt/firefox/init.d/K*", 0x7fff08960850) = -1 ENOENT (No such file
or directory)
exit_group(127) = ?
Process 6078 detached

Revision history for this message
Caspar Clemens Mierau (leitmedium) said :
#5

Is it possible, you manually installed firefox to /opt/firefox or am I just wrong by reading the strace output?

Revision history for this message
- (a--deactivatedaccount) said :
#6

yes this looks funny

'/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'

maybe you could

ls -la /opt

tell us whats in there :)

also run 'which' and 'whereis'

Revision history for this message
MJC (acrimonious85) said :
#7

rick@Desktop:~$ ls -la /opt
total 16
drwxr-xr-x 4 root root 4096 2007-06-26 19:21 .
drwxr-xr-x 22 root root 4096 2007-07-04 16:16 ..
drwxr-xr-x 12 root root 4096 2007-02-25 22:26 firefox
drwxr-xr-x 13 root root 4096 2007-06-04 14:36 thunderbird

rick@Desktop:~$ which firefox
/usr/bin/firefox

rick@Desktop:~$ whereis firefox
firefox: /usr/bin/firefox /usr/bin/firefox.ubuntu /etc/firefox /usr/lib/firefox /usr/X11R6/bin/firefox /usr/X11R6/bin/firefox.ubuntu /usr/bin/X11/firefox /usr/bin/X11/firefox.ubuntu /usr/share/firefox /usr/share/man/man1/firefox.1.gz

Revision history for this message
Caspar Clemens Mierau (leitmedium) said :
#8

Thank you. Indeed you seem to have a non-Ubuntu-Firefox installed. Maybe you have installed Firefox from a tar.gz file in order to get a newer version under you old Ubuntu version?

Can you tell is where you icon is you click on to start firefox?

Actually it should be under Internet=>Firefox.

Revision history for this message
MJC (acrimonious85) said :
#9

I think I might've done that when firefox 2.0.0.4 first came out, I kind of don't remember...but I am a little new to Ubuntu so I might not have known what I was doing and installed it to an inappropriate directory or something. But when I tried to reinstall it I did it the standard way, under synaptic package manager (also with apt-get install).

My icon is under internet=>firefox. Although I do kind of remember...when I upgraded firefox (before I upgraded to feisty fawn) I do remember that my icon under internet=>firefox still brought up the old version. So I think I created a link directly to the firefox-bin or something...I still don't remember exactly what I did, it was probably stupid though.

Thanks for the help so far, gotta go to work so I won't be back until later today.

Revision history for this message
MJC (acrimonious85) said :
#10

Any more input on this? Would removing the non-Ubuntu firefox solve this? As I said I realize now that I DO probably have an extra installation of firefox.

Revision history for this message
Best Caspar Clemens Mierau (leitmedium) said :
#11

Please try the following:

sudo mv /opt/firefox /opt/firefix.tmp

Then try to start firefox by clicking on the icon in the menu. If it does not show up, make a right click on the top menu button (in the task bar) and chose "edit menus". Navigate to the firerox entry and make shure it says "firefox %u".

No open a console again and type

ls -l /usr/bin/firefox

It should show you that this is a symlink. It should look very similar to this:

lrwxrwxrwx 1 root root 22 2007-06-03 10:43 /usr/bin/firefox -> ../lib/firefox/firefox

If it looks different, type:

sudo mv /usr/bin/firefox /usr/bin/firefox.tmp
sudo ln -s /usr/lib/firefox/firefox /usr/bin/firefox

And then please tell us everything is fine again :)

Revision history for this message
MJC (acrimonious85) said :
#12

Thanks Caspar Clemens Mierau, that solved my question.