2016-11-16 91 views
0

我有通過虛擬盒安裝的主機系統和Ubuntu 16.04。在虛擬框中,如果我想克隆任何git存儲庫,它不會與git://一起工作。爲了完成這項工作,我使用了git config選項,git clone不能在git中使用://在virtualbox中

git config --global url."https://".insteadOf git:// 

並開始通過https://訪問存儲庫。

[email protected]:~/Vinoth$ git clone git://git.yoctoproject.org/poky 
Cloning into 'poky'... 
fatal: repository 'https://git.yoctoproject.org/poky/' not found 


[email protected]:~/Vinoth$ git clone https://git.yoctoproject.org/git/poky 
Cloning into 'poky'... 
remote: Counting objects: 342925, done. 
remote: Compressing objects: 100% (82825/82825), done. 

現在我正在使用yocto項目並嘗試創建bsp圖層。當我嘗試創建一個bsp層時,我發現與git存儲庫連接有關的問題。

[email protected]:~/Yocto/poky/build$ yocto-bsp create mib arm 
Checking basic git connectivity... 
Couldn't verify git connectivity, exiting 

Details: couldn't access git://git.yoctoproject.org/linux-yocto-dev.git 
     (this most likely indicates a network connectivity problem or 
     a misconfigured git intallation) 
[email protected]:~/Yocto/poky/build$ 

現在我不知道如何解決這個問題。有關此主題的任何信息將有所幫助

回答

0

對於Yocto計劃,與代理工作按照以下鏈接提供的說明:

​​

下面的說明後,這個問題是固定的我。

0

我可以在非虛擬Ubuntu上重現此問題。
混帳:您可以通過訪問第一個庫//git.yoctoproject.org/poky

HTTPS://git.yoctoproject.org/git/poky
(不同pathes)

隨着您的配置「git://」被替換爲「https://」,並且您嘗試連接到「https://git.yoctoproject.org/poky」,該URL不存在(由於缺少URL路徑中的「/ git」)。

同爲第二個庫:
的git://git.yoctoproject.org/linux-yocto-dev.git(工作)
HTTPS://git.yoctoproject.org/linux-yocto-dev。 git的(不是工作,而是使用,由於配置)
HTTPS://git.yoctoproject.org/git/linux-yocto-dev.git(工作)

不知道,爲什麼「混帳:// 「不適用於你的虛擬機,也許是代理問題?

相關問題