我有通過虛擬盒安裝的主機系統和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$
現在我不知道如何解決這個問題。有關此主題的任何信息將有所幫助