Ubuntu 16.04 comes with Git 2.7.x, which is a little old now. As versions 2.8 & 2.9 are not part of the Ubuntu repositories, you need to add the git-core personal package archive.

Open up a terminal and run the following commands, supplying your password when prompted.

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

 如果在执行第一条命令的时候出现:

sudo: add-apt-repository: command not found

  可以先执行以下命令:

sudo apt-get install software-properties-common python-software-properties

  

 

相关文章:

  • 2022-12-23
  • 2021-05-14
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2021-06-20
猜你喜欢
  • 2021-12-12
  • 2021-05-20
  • 2021-10-02
  • 2021-09-21
  • 2021-05-18
  • 2021-08-11
  • 2022-01-27
相关资源
相似解决方案