Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git installation error missing installation candidate

Tags:

git

ubuntu

I tried installing git on Ubuntu 12.10 using the command sudo apt-get install git. But I am getting error message like this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'git' has no installation candidate

What am I supposed to do further?

like image 662
Niya Simon C Avatar asked Jun 19 '15 07:06

Niya Simon C


People also ask

How do I manually install Git?

To install Git, navigate to your command prompt shell and run the following command: sudo dnf install git-all . Once the command output has completed, you can verify the installation by typing: git version .

How do I check if Git is installed?

To see if Git is installed on your system, open your terminal and type git --version . If your terminal returns a Git version as an output, that confirms you have Git installed on your system. If not, you have to download Git for Mac or Windows.

What does no installation candidate mean?

That means that some installed package is saying that it needs a package called munin-memcached to work. But the package manager doesn't find it in the repositories. It is usually followed by some info about what packages are missing it, but it didn't here.


1 Answers

First run this command to update

sudo apt update 

Then run this

sudo apt-get install git
like image 63
mohammad kasiri Avatar answered Sep 17 '22 18:09

mohammad kasiri