apt-get cannot find any packages

9,218

You should first search git packages (git.core package doesn't exists)

apt-cache search git --names-only

When you search an un-installed package, you can run :

sudo apt-file search git-core

To install it, simply run :

sudo apt-get install apt-file

In the present case, you just have to run :

sudo apt-get install git

Last but not least, you should run

sudo apt-get update

like Oliver Salzburg said.

Share:
9,218

Related videos on Youtube

Iramusa
Author by

Iramusa

Updated on September 18, 2022

Comments

  • Iramusa
    Iramusa over 1 year

    I get this result on my newly installed ubuntu 9.04 netbook remix. I haven't tampered with any apt files at all. It doesnt work for any other packages.

    ira@ira-windu100:/etc/apt$ sudo apt-get install git.core
    [sudo] password for ira: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Couldn't find package git.core
    ira@ira-windu100:/etc/apt$ 
    
    • Oliver Salzburg
      Oliver Salzburg about 12 years
      What happens when you run sudo apt-get update?
  • Iramusa
    Iramusa about 12 years
    this: "apt-cache search git --names-only" doesnt give me any output. when I try to install apt-file I get "ira@ira-windu100:/etc/apt$ sudo apt-get install apt-file Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package apt-file ira@ira-windu100:/etc/apt$ "
  • Gilles Quenot
    Gilles Quenot about 12 years
    Did you ran sudo apt-get update ?