Update Git In Ubuntu To Latest Version
December 10, 2024I was trying to push a repository to gitlab and it was very slow. I thought maybe updating the git version would help.
The current version of git is git version 2.25.1
Updating git
I tried following the instructions from this stackoverflow answer ↗️ but fails during sudo add-apt-repository ppa:git-core/ppa
.
I then stumbled upon this code from this github comment ↗️
I tried the said command while replacing the key found from my error message.
Tried running the add-apt-repository
command again and return the same error.
I revised the key in the apt-key
command and tried the add apt repository again which still resulted to the same error.
Scrolling down from the previous github answer I tried out adding the port 80
as stated on this github command ↗️.
This still failed.
Removing the apt repository
Following this stackoverflow answer ↗️
Install ppa-purge
.
List out the repositories and find “github”.
Attempted to remove the listed repository but still result to the same signature verification error.
The conclusion
Found it from this github issue ↗️.
Followed the same commands to update git and it finally succeeded.
And pushing to gitlab is still slow 🙃