Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, I'm new, haven't even mastered all the commands yet, but still, is there something wrong with firefox on linux?
I'm using Debian (Etch) on Linux. I downloaded the tar file from mozilla.com for linux, extracted it, and now I don't know what to do.
-I tried running EVERY shell script and executable in the file.
-I tried overwriting the old firefox directory with the new files.
-I tried using apt-get for the latest, version, it says it *IS* the latest version, 1.0.7 ... GRRR
-I downloaded this 'linux installer' from the firefox site, I can't make heads or tails of it.
-I tried running ./firefox from the command line, says there is a missing library entry.
I swear, every other program installs with EASE on Debian. In fact, this is the ONLY program i have had trouble getting to work. Is there some sort of update I can do for my library files?
Alrighty then. I'll answer the questions best I can...
Quote:
Can you please post the output of ./firefox command ? Exactly what message you get.
I get this:
./firefox-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Quote:
Meanwhile you do so, one request. STOP pulling out your hairs
It's not any worse than when I'm dealing with Windows... In 4 days, Linux has shown me that my computer is in fact NOT a piece of dirt.
Quote:
did you try installing or reinstalling the missing library?
I do not know what library or where to get it...
Quote:
When did you install Etch and did you run apt-get update? What do you have in sources.list and /etc/apt/apt.conf?
-I installed Etch four days ago.
-I ran the update, and tried to upgrade and install. Here is what got shown in my terminal:
Code:
Raider:/# apt-get update
Get: 1 http://http.us.debian.org stable Release.gpg [189B]
Get: 2 http://security.debian.org stable/updates Release.gpg [189B]
Hit http://http.us.debian.org stable Release
Hit http://security.debian.org stable/updates Release
Get: 3 http://non-us.debian.org stable/non-US Release.gpg [197B]
Hit http://non-us.debian.org stable/non-US Release
Ign http://security.debian.org stable/updates/main Packages
Ign http://http.us.debian.org stable/main Packages
Ign http://security.debian.org stable/updates/contrib Packages
Ign http://security.debian.org stable/updates/non-free Packages
Ign http://http.us.debian.org stable/contrib Packages
Ign http://http.us.debian.org stable/non-free Packages
Ign http://non-us.debian.org stable/non-US/main Packages
Hit http://security.debian.org stable/updates/main Packages
Hit http://http.us.debian.org stable/main Packages
Hit http://security.debian.org stable/updates/contrib Packages
Ign http://non-us.debian.org stable/non-US/contrib Packages
Ign http://non-us.debian.org stable/non-US/non-free Packages
Hit http://http.us.debian.org stable/contrib Packages
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://http.us.debian.org stable/non-free Packages
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/contrib Packages
Hit http://non-us.debian.org stable/non-US/non-free Packages
Fetched 3B in 0s (3B/s)
Reading package lists... Done
Raider:/# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Raider:/# apt-get install
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Raider:/#
Yes I'm running as root. I'm trying to learn Linux. If I mess up I'll reinstall, no biggie. But I havn't really changed anything, and I've been careful when I run root. I don't need the lecture.
-here are the contents of my sources.list file:
Code:
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
Please, if I'm going to have to use the command line to fix this, give me the exact line to write. I'm command line impaired. I'm 18 and for the last decade I've been coddled by the pretty Windows GUI. So you should be able to understand how alien Linux can seem to me.
-----
Unrelated: Is my GUI pronounced GNOME as in "garden gnome" or is it pronounced "gee-nome"?
Last edited by v3rtex7740; 03-26-2006 at 07:40 PM.
No. In Windows, i learned to love Firefox, the best browser I have ever tried. Better than Opera. And it's free. No ads. No money. And it's open source. Firefox is THE browser for me to have. I want it. I need it.
You do not have etch, your apt-get update command shows you are using stable, which is sarge. To get etch or sid, become root in a terminal with the su command, then edit the /etc/apt/sources.lst file. Everywhere that you see stable, make it testing (etch) or unstable (sid). Testing is the middle ground, and sid is bleeding edge new. Once that change is made, run:
Code:
apt-get update
apt-get dist-upgrade
At that point, you should have a functional firefox. I use sid, and it currently installs 1.5.0.1-4. Not sure about etch/testing. Probably the same, or just slightly older.
It's likely that when you upgrade, this will be resolved anyway, but for future reference: to install a missing library first you have to figure out the debian package name. The error message said you're missing libstdc++.so.5 so you should search for something wih libstdc++ in the name. To do that use the command:
Code:
apt-cache search libstdc++
This will give you a whole list of libraries, cause there are development versions, debugging versions, and multiple versions of each of these. In this case you probably want libstdc++5,
Code:
apt-get install libstdc++5
Possibly libstdc++6 would work also, I don't know if they are backwards compatible. You could try and see.
Okay, I changed my sources.list as specified. I ran the apt-get update and dist-upgrade commands. It did a LOT of stuff for like 10 minutes. I rebooted. Firefox is still ver. 1.0.7
Now when I try to run the commands again I get this:
apt-get upgrade:
Code:
Raider:~# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
Raider:~# apt-get update
Get: 1 http://security.debian.org testing/updates Release.gpg [189B]
Get: 2 http://security.debian.org testing/updates Release [18.5kB]
Get: 3 http://http.us.debian.org testing Release.gpg [189B]
Hit http://http.us.debian.org testing Release
Ign http://non-us.debian.org testing/non-US Release.gpg
Hit http://http.us.debian.org testing/main Packages
Hit http://http.us.debian.org testing/contrib Packages
Hit http://http.us.debian.org testing/non-free Packages
Ign http://non-us.debian.org testing/non-US Release
Ign http://security.debian.org testing/updates/main Packages
Ign http://security.debian.org testing/updates/contrib Packages
Ign http://security.debian.org testing/updates/non-free Packages
Ign http://non-us.debian.org testing/non-US/main Packages
Hit http://security.debian.org testing/updates/main Packages
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/non-free Packages
Ign http://non-us.debian.org testing/non-US/contrib Packages
Ign http://non-us.debian.org testing/non-US/non-free Packages
Errhttp://non-us.debian.org testing/non-US/main Packages
404 Not Found
Errhttp://non-us.debian.org testing/non-US/contrib Packages
404 Not Found
Errhttp://non-us.debian.org testing/non-US/non-free Packages
404 Not Found
Fetched 18.6kB in 0s (19.5kB/s)
Failed to fetch http://non-us.debian.org/debian-non-US/dists/testing/non-US/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://non-us.debian.org/debian-non-US/dists/testing/non-US/contrib/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://non-us.debian.org/debian-non-US/dists/testing/non-US/non-free/binary-i386/Packages.gz 404 Not Found
Reading package lists... Done
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
When I run apt-get update I get this:
Code:
Raider:~# apt-get update
Get: 1 http://security.debian.org testing/updates Release.gpg [189B]
Hit http://security.debian.org testing/updates Release
Ign http://non-us.debian.org testing/non-US Release.gpg
Ign http://security.debian.org testing/updates/main Packages
Ign http://non-us.debian.org testing/non-US Release
Ign http://security.debian.org testing/updates/contrib Packages
Ign http://security.debian.org testing/updates/non-free Packages
Hit http://security.debian.org testing/updates/main Packages
Ign http://non-us.debian.org testing/non-US/main Packages
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/non-free Packages
Ign http://non-us.debian.org testing/non-US/contrib Packages
Ign http://non-us.debian.org testing/non-US/non-free Packages
Errhttp://non-us.debian.org testing/non-US/main Packages
404 Not Found
Errhttp://non-us.debian.org testing/non-US/contrib Packages
404 Not Found
Errhttp://non-us.debian.org testing/non-US/non-free Packages
404 Not Found
Get: 2 http://http.us.debian.org testing Release.gpg [189B]
Hit http://http.us.debian.org testing Release
Hit http://http.us.debian.org testing/main Packages
Hit http://http.us.debian.org testing/contrib Packages
Hit http://http.us.debian.org testing/non-free Packages
Fetched 2B in 3s (1B/s)
Failed to fetch http://non-us.debian.org/debian-non-US/dists/testing/non-US/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://non-us.debian.org/debian-non-US/dists/testing/non-US/contrib/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://non-us.debian.org/debian-non-US/dists/testing/non-US/non-free/binary-i386/Packages.gz 404 Not Found
Reading package lists... Done
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
When I run apt-get dist-upgrade again i get this:
Code:
Raider:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade...Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
I'm at my wit's end here. I mean, from my own uneducated opinion it almost looks like I'm still using the wrong sources. I just can't belive that there isn't some place where apt-get sources are posted for everyone to see and use, like a most popular list or something, it would seem logical...
Also, when i run the command: apt-get install libstdc++5
i get this:
Code:
Raider:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade...Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
Raider:~#
Raider:~# apt-get install libstdc++5
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
gcc-3.3-base
The following NEW packages will be installed
gcc-3.3-base libstdc++5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 446kB of archives.
After unpacking 1008kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://http.us.debian.org testing/main gcc-3.3-base 1:3.3.6-10 [150kB]
Get: 2 http://http.us.debian.org testing/main libstdc++5 1:3.3.6-10 [296kB]
Fetched 446kB in 1s (264kB/s)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
Selecting previously deselected package gcc-3.3-base.
(Reading database ... 61948 files and directories currently installed.)
Unpacking gcc-3.3-base (from .../gcc-3.3-base_1%3a3.3.6-10_i386.deb) ...
Selecting previously deselected package libstdc++5.
Unpacking libstdc++5 (from .../libstdc++5_1%3a3.3.6-10_i386.deb) ...
Setting up gcc-3.3-base (3.3.6-10) ...
Setting up libstdc++5 (3.3.6-10) ...
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org testing/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_testing_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
I honestly don't know what anything there means. Thanks for the help I've gotten so far. Any other hints/tips would be appreciated. Thanks.
Then apt-get update, and apt-get dist-upgrade again. Just apt-get upgrade is expecting you to tell the machine what you want upgraded. Without the dist-upgrade it doesn't know to just update everything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.