问题 致命:读取错误:通过对等方重置连接


有人可以帮我摆脱以下几点:

vijay13@ubuntu:~$ git clone git://anongit.kde.org/plasma-mediacenter

Cloning into 'plasma-mediacenter'...

fatal: read error: Connection reset by peer

vijay13@ubuntu:~$ git clone git@git.kde.org:plasma-mediacenter

Cloning into 'plasma-mediacenter'...

Read from socket failed: Connection reset by peer

fatal: The remote end hung up unexpectedly

如何摆脱上述两个问题?


10260
2017-07-31 17:37


起源

修复你的网络? - Carl Norum
你通过IPV4或IPv6连接? (此时连接到anongit没问题) - Doon
伙计们感谢coz“git​​ clone anongit.kde.org/plasma-mediacenter”工作:-) - Vijay13
我经常遇到同样的问题。当它发生时,我尝试不同的网络与互联网连接但无济于事。通常情况下,它只会在10-30分钟的混乱之后开始随机工作,但最终在我的系统自上次失败尝试后没有任何变化之后起作用。 - CodeAndCats


答案:


如果互联网连接也没问题,那就跑吧

git gc 

然后再试一次。


6
2017-12-22 11:25



你能解释一下这是做什么以及为什么有效吗? - Sean Dunford
“[gc]在当前存储库中运行许多内务处理任务,例如压缩文件修订(以减少磁盘空间和提高性能)以及删除可能已从先前调用git add创建的无法访问的对象。” - git-scm.com/docs/git-gc - Ian Wise


我也遇到过这个问题。

我更换时问题解决了 “混帐://” 同 “https://开头”

root@ubuntu:~# git clone git://github.com/osrg/ryu.git
Cloning into 'ryu'...
fatal: read error: Connection reset by peer

root@ubuntu:~# git clone https://github.com/osrg/ryu.git
Cloning into 'ryu'...
remote: Counting objects: 25613, done.
remote: Compressing objects: 100% (5/5), done.
Receiving objects:  37% (9609/25613), 18.68 MiB | 60.00 KiB/s

3
2017-07-05 11:21





第一期

vijay13@ubuntu:~$ git clone git://anongit.kde.org/plasma-mediacenter

Cloning into 'plasma-mediacenter'...

fatal: read error: Connection reset by peer

在这里,您尝试使用上面的命令检查代码。 我甚至遇到这个错误:尝试检查代码时由同行重置连接。

这是你的问题 网络连接

检查您的互联网连接,然后重试。

它帮助了我。


0
2018-05-08 09:33





删除repos时(但不是永久性的),这也是一个问题。确保在克隆之前在回收站/回收站中删除回购。

或者,按SHIFT + DEL可永久删除文件夹/文件。


0
2017-09-21 09:26