git安装失败

Posted sanjor

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git安装失败相关的知识,希望对你有一定的参考价值。

回答一:通过更新后安装(安装成功)

首先是

#sudo apt-get update

更新到后面会遇到这个问题

 W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com lucid-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

……
这时进行安装git
#sudo apt-get install git
会出问题:git:depends:liberror-perl but it is not installable
发现还是缺少包,就是更新不完全
解决方案
#sudo apt-get clean 
#cd /var/lib/apt 
#sudo mv lists lists.old 
#sudo mkdir -p lists/partial 
#sudo apt-get clean 
#sudo apt-get update
这时再安装就可以成功了
#sudo apt-get install git
 
 
另一个回答:

试一下如下命令:

 sudo apt-get update  
sudo apt-get upgrade
sudo apt-get install -f 

以上是关于git安装失败的主要内容,如果未能解决你的问题,请参考以下文章

在Tomcat的安装目录下conf目录下的server.xml文件中增加一个xml代码片段,该代码片段中每个属性的含义与用途

Oracle 数据库 - 使用UEStudio修改dmp文件版本号,解决imp命令恢复的数据库与dmp本地文件版本号不匹配导致的导入失败问题,“ORACLE error 12547”问题处理(代码片段

SoundPool 加载失败

一个函数应该返回什么可以失败?

安装FiPy时出错“命令”python setup.py egg_info“失败,错误代码为1”

片段:java.lang.RuntimeException:传递结果ResultInfo失败