r/Crostini • • May 03 '20

Firefox executable not working

I installed firefox through with the .tar.bz2 and have it in my /opt directory. I created a .desktop file and put it in /usr/share/applications, but it just kept loading, so I deleted it and created an icon by using alacarte, but it still kept loading, so I decided to check if the firefox executable was working, and I double clicked it but nothing happened. Am I doing something wrong?

0 Upvotes

9 comments sorted by

3

u/ws-ilazki Samsung Chromebook Plus v2 LTE May 04 '20

Am I doing something wrong?

Yes, you are: you're trying to run Firefox from a .tar.bz2 instead of installing it with Debian's package manager. That's sort of like the Windows idea of "portable apps" and isn't really the way to go if you want something installed so it works smoothly with other parts of the distro.

Linux distributions are not like Windows, you aren't supposed to be downloading software manually from random places off the internet and installing it. Instead, distros have central repositories of software, similar to the idea of mobile app stores (but predates them and allows use of multiple sources). Use the package manager to install the appropriate software; if it's not available, only then should you check for an official third-party repository to add or, failing that, using an alternate installation method.

The basic command-line way of installing software will be apt, with apt search to search for software and apt install package-name to install it. For a nicer (but still text-based) interface you can install aptitude (apt install aptitude), or you can look into GUI package managers, of which there are many. I prefer Synaptic but any will suffice.

2

u/Tonybusta May 04 '20

Don't forget to add "sudo" before "apt install package-name"

2

u/ws-ilazki Samsung Chromebook Plus v2 LTE May 04 '20

Right, good point; I forgot to include it because I rarely use sudo that way. Instead I always either enable real root logins with su or alias it to sudo -i because I hate typing sudo before every command.

0

u/TheRealFanjin May 04 '20

Yes, I know but you can only get Firefox ESR with sudo apt, and I don't want Firefox ESR. I've watched many tutorials on how to get Firefox with the .tar.bz2, and it all worked for them.

-1

u/ws-ilazki Samsung Chromebook Plus v2 LTE May 04 '20

you can only get Firefox ESR with sudo apt, and I don't want Firefox ESR.

Do you actually have a need that Firefox ESR can't cover? People complain about Firefox ESR and Debian's general pace of software updates a lot but the reality is that most people really do not need the latest-and-greatest everything all the time. It's just "gotta have the biggest version number" FOMO.

If you absolutely cannot live with firefox-esr for some reason (which I doubt), check this page for information. I'd suggest trying either the snap or flatpak first, and only resort to the manual installation if nothing else works. Just dumping files into your filesystem as "installation" just makes it harder to cleanly uninstall later if needed.

0

u/[deleted] May 04 '20

[deleted]

1

u/TheRealFanjin May 04 '20

I did what you said, and here's what I got (wow how did I not think of it)

XPCOMGlueLoad error for file /opt/firefox/libxul.so:

libdbus-glib-1.so.2: cannot open shared object file: No such file or directory

Couldn't load XPCOM.

0

u/[deleted] May 04 '20

[deleted]

1

u/TheRealFanjin May 04 '20

No need! I found the solution here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

http://el.web.id/how-to-solve-xpcomglueload-error-couldnt-load-xpcom-mozilla-firefox-debian-149

0

u/[deleted] May 04 '20

[deleted]

1

u/TheRealFanjin May 04 '20

I just got it off the Firefox website, and yes it's available for ARM64

1

u/cd109876 May 04 '20

You can also add the Ubuntu repos / use an Ubuntu container (see the wiki) which has a lot more packages than Debian on arm64, including Firefox.