无法在ubuntu PC中克隆yocto poky repo

时间:2015-11-23 09:42:05

标签: git yocto

我正在研究yocto,试图在我的电脑中克隆poky。在我的一个ubuntu PC中,我能够克隆poky.git。

git clone -b dizzy http://git.yoctoproject.org/git/poky.git

但在另一台ubuntu PC中,我无法克隆,给出了错误407.

a@a-VirtualBox:~$ git clone -b dizzy http://git.yoctoproject.org/git/poky.git
Cloning into 'poky'...
fatal: unable to access 'http://git.yoctoproject.org/git/poky.git/': The requested URL returned error: 407

我认为代理问题在这里。但是git clone https://github.com/torvalds/linux.git,     这是有效的。不知道我哪里错了。     提前致谢

2 个答案:

答案 0 :(得分:1)

在“另一个ubuntu pc”位置,您需要进行身份验证。

407表示您在尝试向http代理进行身份验证时收到错误消息。有关详细信息,请参阅here

可能仅适用于http您需要获得授权,而https则不需要。

答案 1 :(得分:0)

如果您在代理墙后面,则会出现此问题。您需要设置gitproxy。要求是socat

在家庭环境中创建一个gitproxy文件。在声明您的PROXY

后添加此行
exec socat STDIO SOCKS4:$PROXY:$1:$2

在〜/ .gitconfig [core]标签中添加以下行:

gitproxy = /home/<linux username>/bin/gitproxy
chmod +x ~/.gitproxy
相关问题