当我们安装使用sudo apt-get install git出现未满足依赖关系,我们需要先sudo apt-get update更新一下软件,然后sudo apt-get -f install 然后sudo apt-get install git 就可以了。