PDA

View Full Version : [ubuntu] [SOLVED] apt-get unable to find any packages



capnfabs
June 20th, 2008, 01:29 PM
Hi

I just installed Hardy. Upon trying to install various packages via apt-get (e.g. "sudo apt-get install texlive-latex-recommended") I keep getting the error message "Couldn't find package". However, If I attempt to install the same packages with Synaptic, it works perfectly. Any ideas as to why this is happening?

Thanks heaps!

wormser
June 20th, 2008, 01:42 PM
That is a strange problem. Here are some things to try. Double check that the repositories are open. Try updating apt-get.


sudo apt-get update

neurostu
June 20th, 2008, 01:43 PM
You might want to check your spelling. Apt requires you to spell things exactly right.... to seach using apt (find the exact name) use:


aptitude search <packagename>

capnfabs
June 20th, 2008, 02:01 PM
Hey, thanks for the suggestions.... I did check that I was spelling everything correctly :D and updating seems to have resolved the problem.

Thanks again! :) Much appreciated.

wormser
June 20th, 2008, 02:07 PM
Hey, thanks for the suggestions.... I did check that I was spelling everything correctly :D and updating seems to have resolved the problem.

Thanks again! :) Much appreciated.

Glad it is working.

hyper_ch
June 20th, 2008, 02:39 PM
and you can also use tab completion:


sudo apt-get install apach

Press once the tab key to complete it or twice to show a list of possible packages ;)