LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-06-2008, 11:08 AM   #1
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Rep: Reputation: 15
Unhappy "sudo apt-get install" not seeing most packages


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...

Any ideas on how to fix this, anyone?
 
Old 08-06-2008, 11:33 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,123

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Did you do a
Code:
sudo apt-get update
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.
 
Old 08-06-2008, 01:08 PM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 08-06-2008, 05:07 PM   #4
computer_freak_8
Member
 
Registered: Jul 2008
Location: Iowa
Distribution: Ubuntu and Fedora, mostly
Posts: 103

Original Poster
Rep: Reputation: 15
Talking

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 View Post
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...)

Thanks again to both of you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cannot "sudo apt-get uptate" or "sudo" anything! plz help mdguy21061 Linux - Newbie 7 04-14-2008 12:59 AM
apt-get : save the "downloaded" packages? sagar.1986 Ubuntu 1 01-20-2007 03:07 AM
sudo apt-get install acroread returns "Couldn't find package acroread" swiadek Ubuntu 3 02-13-2006 11:52 AM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 09:19 PM
How can I install just one or two packages from another "favor" with apt-get? davidas Debian 3 04-09-2004 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:22 PM.

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