2010-05-20 78 views

回答

4

我不認爲這是關係到Git的,而是鏈接到其Git是運行的服務器。

this article

這到底意味着什麼:「Servname不支持ai_socktype」。
一些其他的嘗試,我終於看到了問題後... NTP端口均未/etc/services定義,這是錯誤的根源。
該系統不知道如何讓沒有這種NTP連接。所以,我已經添加了以下行/etc/services

ntp    123/tcp 
ntp    123/udp 

並在此之後ntpdate開始嘗試這些文件的任何修改之前按預期工作...

,請與管理員(除非這是你的個人服務器)

2

我不認爲NTP的問題有一個軸承git的錯誤;至少在我的情況下。

這裏是我的情況:

[email protected]:~/src$ git clone git://http://cgit.sukimashita.com/sbmanager.git/tree sbmanager 
Cloning into sbmanager... 
fatal: Unable to look up http (port <none>) (Servname not supported for ai_socktype) 

問題是我的git的語法。

這裏是我的解決方案:

[email protected]:~/src$ git clone git://git.sukimashita.com/sbmanager.git sbmanager 
Cloning into sbmanager... 
remote: Counting objects: 764, done. 
remote: Compressing objects: 100% (643/643), done. 
remote: Total 764 (delta 449), reused 257 (delta 118) 
Receiving objects: 100% (764/764), 291.75 KiB | 261 KiB/s, done. 
Resolving deltas: 100% (449/449), done. 

我認爲解決的辦法是檢查git的語法。