Repo Initialization Error

1,562 views
Skip to first unread message

Tirtha

unread,
Jun 6, 2009, 4:30:30 AM6/6/09
to Repo and Gerrit Discussion
Hi,

I am using Virtual Box with KUbuntu Linux on x86(Windows XP) system
and setting up system for Android Source SDK. I have installed repo
through (curl http://android.git.kernel.org/repo >~/bin/repo). Now I
am trying to initialize repo by $ repo init -u
git://android.git.kernel.org/platform/manifest.git but here I am
getting an error shown as follows:

Traceback (most recent call last):
File "/home/tirtha/mydroid/.repo/repo/main.py", line 235, in
<module>
_Main(sys.argv[1:])
File "/home/tirtha/mydroid/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/home/tirtha/mydroid/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/home/tirtha/mydroid/.repo/repo/subcmds/init.py", line 218, in
Execute
self._SyncManifest(opt)
File "/home/tirtha/mydroid/.repo/repo/subcmds/init.py", line 123, in
_SyncManifest
m.PreSync()
File "/home/tirtha/mydroid/.repo/repo/project.py", line 1440, in
PreSync
cb = self.CurrentBranch
File "/home/tirtha/mydroid/.repo/repo/project.py", line 271, in
CurrentBranch
b = self.work_git.GetHead()
File "/home/tirtha/mydroid/.repo/repo/project.py", line 1226, in
GetHead
fd = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/home/tirtha/
mydroid/.repo/manifests/.git/HEAD'


I have try to go to the mentioned folder and it looks like /home/
tirtha/mydroid/.repo/manifest.git/HEAD rather '/home/tirtha/
mydroid/.repo/manifests/.git/HEAD'.

Can anybody suggest me the reson of the error and any solution for
this

Thnaks and regards,
Tirtha

Shawn Pearce

unread,
Jun 7, 2009, 2:52:09 PM6/7/09
to repo-d...@googlegroups.com
On Sat, Jun 6, 2009 at 01:30, Tirtha <gti...@gmail.com> wrote:

I am using Virtual Box with KUbuntu Linux on x86(Windows XP) system
and setting up system for Android Source SDK. I have installed repo
through (curl http://android.git.kernel.org/repo >~/bin/repo). Now I
am trying to initialize repo by $ repo init -u
git://android.git.kernel.org/platform/manifest.git but here I am
getting an error shown as follows:

... 
IOError: [Errno 2] No such file or directory: '/home/tirtha/
mydroid/.repo/manifests/.git/HEAD'

I have try to go to the mentioned folder and it looks like /home/
tirtha/mydroid/.repo/manifest.git/HEAD rather '/home/tirtha/
mydroid/.repo/manifests/.git/HEAD'.

Odd.

Never seen that happen before.  Sounds like we failed to create the ".git" directory silently, and then "HEAD" couldn't be created there either.  That shouldn't have happened.

Try rm -rf .repo; repo init -u ... again ?

David Bickley

unread,
Jun 27, 2009, 2:42:15 PM6/27/09
to Repo and Gerrit Discussion
I had the same problem. It turned out that I typoed the path.

Specifically, I typed "android.git.kernel.org/platform.manifest.git"
instead of "android.git.kernel.org/platform/manifest.git"

This resulted in:

"Getting manifest ...
from git://android.git.kernel.org/platform.manifest.git
fatal: The remote end hung up unexpectedly
fatal: cannot obtain manifest git://android.git.kernel.org/platform.manifest.git"

As Shawn Pearce stated Removing the .repo folder fixed the issue.

rm -r ~/.repo; ~/bin/repo init -u git://android.git.kernel.org/platform.manifest.git


Hope this helps anyone else with bad typing skills,
--David







On Jun 7, 11:52 am, Shawn Pearce <s...@google.com> wrote:
> On Sat, Jun 6, 2009 at 01:30, Tirtha <gtir...@gmail.com> wrote:
>
> > I am using Virtual Box with KUbuntu Linux on x86(Windows XP) system
> > and setting up system for Android Source SDK. I have installed repo
> > through (curlhttp://android.git.kernel.org/repo>~/bin/repo). Now I
Reply all
Reply to author
Forward
0 new messages