ubuntu 14 为何无法安装 git?

2016-07-07 19:24:00 +08:00
 clorts
源为
deb http://mirrors.aliyun.com/ubuntu/ trusty multiverse
deb http://mirrors.163.com/ubuntu/ trusty multiverse

操作日志如下:
http://paste.ubuntu.com/18695970/
2705 次点击
所在节点    Linux
4 条回复
sfree2005
2016-07-08 08:25:06 +08:00
试下:
sudo apt-get update

如果有
1. “ Hash sum mismatch ” error and
2. "GPG ERROR"

就执行:
sudo rm -rf /var/lib/apt/lists/*
然后
sudo apto-get clean
sudo apt-get update

答案来源:
http://askubuntu.com/questions/575639/cant-get-anything-to-install-dependency-errors
http://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error
kneep
2016-07-08 08:26:28 +08:00
强烈建议通过源码编译安装
hosiet
2016-07-08 15:10:41 +08:00
只有 multiverse 是什么鬼
likethewind
2016-07-19 10:03:08 +08:00
试试 apt-get -f install 修复下依赖关系,然后再执行 apt-get install git

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/290954

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX