Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I am trying to install Firefox. The commands "sudo apt-get install firefox" and "sudo apt-get install firefox-3.0" both yield a "Couldn't find package" error. I know I'm online; I can successfully execute "ping google.com".
However, when I enter "sudo apt-get install " followed by the [Tab] key twice, I am asked: "Display all 2520 possibilities? (y or n)". When I run that same command on my other (working) computer, I am asked: "Display all 32397 possibilities? (y or n)". This means that less than 8% of the possible packages are seen by the (non-working) computer.
One more thing: The "/etc/apt/sources.list" files of the non-working computer is identical to the "/etc/apt/sources.list" file of the working computer, so that can't be the problem...
before trying to install new software, or after changing your sources.list?
From man apt-get:
Code:
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available.
If you use apt-get from command line, you should run the update command pointed to above every time you install or update packages with apt-get, unless you're very sure the package information is up to date (i.e. if you have already run the update command recently). If you don't, it might lead to a funny-looking situation where some of the dependencies are found for a package you're installing, but others are not. It's funny-looking because it isn't really true, and with properly working mirrors that situation shouldn't come at you - if you remember to update the package lists
Another point is that you should be sure about the package name you're trying to install; the package might not be 'firefox' nor 'firefox-3', but 'firefox-browser' or something instead. Not saying it is, but take it as an example. If you blind-shoot like that, you might end up installing something you didn't intend to - in the worst case, a package that harms your system (read more about security issues concerning this sort of package managers to get the full idea). So before issuing commands, especially before issuing them with root privileges (with sudo or as root), make sure you know what you're doing and that the command is correct.
tredegar and b0uncer - Thank you both so much! I had tried running the dist-upgrade, but update didn't even cross my mind. Well, it works now. Thanks again.
Oh, and b0uncer:
Quote:
Originally Posted by b0uncer
Another point is that you should be sure about the package name you're trying to install; the package might not be 'firefox' nor 'firefox-3', but 'firefox-browser' or something instead. Not saying it is, but take it as an example. If you blind-shoot like that, you might end up installing something you didn't intend to - in the worst case, a package that harms your system (read more about security issues concerning this sort of package managers to get the full idea).
Yes, this is exactly how I installed it on the working computer. I have heard about the security issue, but as I understood it, unless your sources file points to a bad site, it wouldn't work maliciously because the package manager wasn't looking there. (Unless of course someone hacked the repositories and put something bad there...)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.