Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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$ 
share|improve this question
    
What happens when you run sudo apt-get update? – Oliver Salzburg Apr 2 '12 at 22:45

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|improve this answer
    
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$ " – Iramusa Apr 2 '12 at 23:06
    
Did you ran sudo apt-get update ? – Gilles Quenot Apr 2 '12 at 23:09

9.04 reached end of life in October of 2010; you need to install a supported release.

share|improve this answer

As Psusi said, Ubuntu 9.04 is no longer supported. If you really need to use it, you can change your /etc/apt/sources.list to something like:

deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

Then just apt-get update && apt-get install git-core. You'll probably want to upgrade to a supported release. Follow the directions at https://help.ubuntu.com/community/EOLUpgrades/Jaunty

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .