Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Wish to search apt repositories with CLI tool. Did that in the past with:

apt-cache search <search_term>

Don't find apt-cache package:

# apt-get install apt-cache
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package apt-cache

Enabled all default repositories (multiverse).

share|improve this question
    
Please take the time to mark the proper answer as "accepted" –  Argusvision Oct 21 '12 at 22:02

2 Answers 2

You got the reported result for apt-get install apt-cache because there is no package called apt-cache.
The following commands are part of apt package:
apt-cache, apt-cdrom, apt-config, apt-get, apt-key, apt-mark
Courtesy: Ubuntu software center

Since apt-get itself is working for you, the apt package and therefore apt-cache command should be installed in your system. So no need for manually installing it.

Try apt-cache show apt to ensure that your apt-cache command is working.

share|improve this answer

Well, the reason you wont find apt-cache for installation is because its supposed to be part of apt.

Perhaps a reinstall of apt would be in order? Something like this: http://www.ehow.com/how_8141696_reinstall-apt-ubuntu.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.