I follow the steps in Upgrade Git version on Ubuntu 14.04, but when I enter the first step command: sudo add-apt-repository ppa:git-core/ppa
, I receive the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/git-core-ppa-trusty.list'
you can check the following picture for detail:
With this error, when I continue to enter the remaining 2 commands, I failed to upgrade my git version. Hope someone know this problem can help me out, thank you.
/etc/apt/sources.list.d
exists on your machine? Also please copy and paste command outputs as plain text and with code formatting instead of uploading screenshots. Thank you.source.list.d
, and the above error disappeared, but when I enter the second command:sudo apt-get update
, I receive the following error:Failed to fetch http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch
.{}
or press Ctrl+K.