Issue
I installed git using sudo apt upgrade git
but it only installed 1.9.1 version even though the latest git available is 2.11.0.
When I tried running apt-cache policy git, I got the following
$apt-cache policy git
git:
Installed: 1:1.9.1-1ubuntu0.3
Candidate: 1:1.9.1-1ubuntu0.3
Version table:
*** 1:1.9.1-1ubuntu0.3 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
1:1.9.1-1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Solution
Just try it:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
Answered By - Rubaiyat Jahan Mumu Answer Checked By - Clifford M. (WPSolving Volunteer)