Note (2026): On modern Ubuntu releases, Git is available from the standard repositories as the
gitpackage. Git’s own Linux installation page still documents the Ubuntu Git Maintainers PPA for newer upstream releases. The oldpython-software-propertiespackage has been replaced bysoftware-properties-common.
Add the repository:
add-apt-repository ppa:git-core/ppa
apt-get update
apt-get install git-core
If the system does not have add-apt-repository, you need to install one more package first:
sudo apt-get install python-software-properties
Hooray, we have a modern Git version!