Installing git on Debian 8.x

You should edit your sources.list , by adding the following line:

deb jessie main contrib

Then upgrade your package and install git:

apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get -f install
apt-get install git

nJoy ;-)


The following package git , liberror-perl and [rsync]3 can be downloaded from the mainrepo , because you don’t have the main repo on your sources.list you cannot install git and its dependencies .

Your sources.list should be (with non-free packages):

deb jessie main contrib non-free
deb-src jessie main contrib non-free

deb jessie/updates main contrib non-free
deb-src jessie/updates main contrib non-free

deb jessie-updates main contrib non-free
deb-src jessie-updates main contrib non-free

deb jessie-backports main contrib non-free

njoy ;-)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.