1、更新linux mint 内核及软件包sudo apt-get updatesudo apt-get upgrade
2、使用dpkg包管理器查询是否已安装gitsudo dpkg -l git
4、检查是否安装成功git --version