I tried installing git by sudo apt-get install git
. But I got error.
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
I also tried sudo apt-get install git-core
and got this error
E: Unable to locate package git-core
since my current stack overflow reputation does not allow to post more than 2 link here.
So, here is pastebin link for the output of grep '^[^#]' /etc/apt/sources.list
.
After doing `sudo apt-get update' I got error:
Failed to fetch. Network is unreachable.
Here is complete output.
Edit:
Output of sudo apt-get install git
:
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
grep '^[^#]' /etc/apt/sources.list
– heemayl Feb 28 '16 at 04:33sudo apt-get update && sudo apt-get install git
– heemayl Feb 28 '16 at 05:49