Jump to content

Photo

emerge --sync problem

- - - - - portage

3 replies to this topic

#1
maleita

maleita

    Newbie

  • Members
  • Pip
  • 5 posts

Good night,since today ,have trouble with sync

new-host-20 ~ # emerge --sync 
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git pull
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/portage/util/_async/AsyncFunction.py", line 39, in _run
    result = self.target(*(self.args or []), **(self.kwargs or {}))
  File "/usr/lib64/python2.7/site-packages/portage/sync/controller.py", line 159, in sync
    taskmaster.run_tasks(tasks, func, status, options=task_opts)
  File "/usr/lib64/python2.7/site-packages/portage/sync/controller.py", line 66, in run_tasks
    result = getattr(inst, func)(**kwargs)
  File "/usr/lib64/python2.7/site-packages/portage/sync/syncbase.py", line 125, in sync
    return self.update()
  File "/usr/lib64/python2.7/site-packages/portage/sync/modules/git/git.py", line 91, in update
    cwd=portage._unicode_encode(self.repo.location))
  File "/usr/lib64/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['/usr/bin/git', 'rev-list', '--max-count=1', 'HEAD']' returned non-zero exit status 128
new-host-20 ~ # kate



#2
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 369 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

1)

# ping -c5 google.com

to see if network is ok.

 

2)

# eselect python set python3.4
# emerge --sync

If Doesn't run correctly try:

 

3)

# cd /usr/portage && git reset --hard

Then

# emerge --sync

If You'll have other troubles, report the output.

 

Otherwise for reset the portage

# mv /usr/portage /usr/portage_old
# emerge --sync

If this will be resolutive you'll delete the /usr/portage_old



#3
maleita

maleita

    Newbie

  • Members
  • Pip
  • 5 posts

Thanks the last option works like charm!!

kali ~ # emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git pull
Already up-to-date.
=== Sync completed for gentoo
q: Updating ebuild cache in /usr/portage ... 
q: Finished 39297 entries in 0.136935 seconds
kali ~ # 


  • Sandro likes this

#4
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 369 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

Very Happy rof this; if is all ok now you can remove the "/usr/portage_old" ^^ :)

 

[ot]

I like app-portage/eix

 

eix is a "database" for Portage.

emerge eix

 

then when you want

# eix-sync

 

This command will make 2 operations.....

1) emerge --sync

2) eventually layman -S

3) eix-update (that update the internal database

 

[/ot]

 

I wish not to be too "pedantic , otherwise i'll recompile myself using CFLAGS="-pedantic" emerge -e sandro :D :D :D :D :D

 

Sorry my "joke" is just for "smiling a bit" :) :) :)





Reply to this topic



  



Also tagged with one or more of these keywords: portage

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users