Gentoo emerge problems

Hello.

I'm having problems with Gentoo Linux. It's actually a project i've been trying to get working successfully, but I have run into a problem.

So, the system is old, so I decided to update it with:

git clone https://anongit.gentoo.org/git/repo/gentoo.git

Then I try to emerge --sync

ghost / # emerge --sync 
>>> Syncing repository 'gentoo' into '/usr/portage'...
!!! /usr/portage appears to be under revision control (contains .git).
!!! Aborting rsync sync (override with "sync-rsync-vcs-ignore = true" in repos.conf).
q: Updating ebuild cache for /usr/portage ... 
q: Finished 30038 entries in 0.629156 seconds

 * IMPORTANT: 5 config files in '/etc' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * IMPORTANT: 18 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Action: sync for repo: gentoo, returned code = 1

 * An update to portage is available. It is _highly_ recommended
 * that you update portage now, before any other packages are updated.

 * To update portage, run 'emerge --oneshot portage' now.

So, I try that, and this:

ghost / # emerge --oneshot portage

 * IMPORTANT: 18 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/emerge", line 53, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.5/site-packages/_emerge/main.py", line 1289, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.5/site-packages/_emerge/actions.py", line 3332, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib/python3.5/site-packages/_emerge/actions.py", line 340, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib/python3.5/site-packages/_emerge/depgraph.py", line 9755, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib/python3.5/site-packages/_emerge/depgraph.py", line 9792, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib/python3.5/site-packages/_emerge/depgraph.py", line 3937, in select_files
    return self._select_files(args)
  File "/usr/lib/python3.5/site-packages/_emerge/depgraph.py", line 3946, in _select_files
    self._load_vdb()
  File "/usr/lib/python3.5/site-packages/_emerge/depgraph.py", line 670, in _load_vdb
    scheduler.start()
  File "/usr/lib/python3.5/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib/python3.5/site-packages/portage/util/_async/AsyncScheduler.py", line 90, in _start
    self._schedule()
  File "/usr/lib/python3.5/site-packages/_emerge/PollScheduler.py", line 154, in _schedule
    self._schedule_tasks()
  File "/usr/lib/python3.5/site-packages/portage/util/_async/AsyncScheduler.py", line 66, in _schedule_tasks
    task.start()
  File "/usr/lib/python3.5/site-packages/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib/python3.5/site-packages/_emerge/EbuildMetadataPhase.py", line 59, in _start
    self._async_wait()
  File "/usr/lib/python3.5/site-packages/_emerge/AbstractPollTask.py", line 105, in _async_wait
    self._unregister()
  File "/usr/lib/python3.5/site-packages/_emerge/EbuildMetadataPhase.py", line 147, in _unregister
    self.scheduler.remove_reader(self._files.ebuild)
AttributeError: 'NoneType' object has no attribute 'ebuild'

Any idea what i'm doing wrong, or point me in the right direction?

Thank you.

Found by Googling:
https://forums.gentoo.org/viewtopic-t-1100660-start-0.html

Thank you for the punctual reply. I tried to follow the instrucitons on that web page to the "T"... and i'm still getting errors.

ghost ~/portage-2.3.69 # bin/emerge --oneshot portage

 * IMPORTANT: 18 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!
Traceback (most recent call last):
  File "bin/emerge", line 53, in <module>
    retval = emerge_main()
  File "/root/portage-2.3.69/lib/_emerge/main.py", line 1289, in emerge_main
    return run_action(emerge_config)
  File "/root/portage-2.3.69/lib/_emerge/actions.py", line 3325, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/root/portage-2.3.69/lib/_emerge/actions.py", line 340, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/root/portage-2.3.69/lib/_emerge/depgraph.py", line 9749, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/root/portage-2.3.69/lib/_emerge/depgraph.py", line 9786, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/root/portage-2.3.69/lib/_emerge/depgraph.py", line 3937, in select_files
    return self._select_files(args)
  File "/root/portage-2.3.69/lib/_emerge/depgraph.py", line 3946, in _select_files
    self._load_vdb()
  File "/root/portage-2.3.69/lib/_emerge/depgraph.py", line 670, in _load_vdb
    scheduler.start()
  File "/root/portage-2.3.69/lib/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/root/portage-2.3.69/lib/portage/util/_async/AsyncScheduler.py", line 90, in _start
    self._schedule()
  File "/root/portage-2.3.69/lib/_emerge/PollScheduler.py", line 154, in _schedule
    self._schedule_tasks()
  File "/root/portage-2.3.69/lib/portage/util/_async/AsyncScheduler.py", line 66, in _schedule_tasks
    task.start()
  File "/root/portage-2.3.69/lib/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/root/portage-2.3.69/lib/_emerge/EbuildMetadataPhase.py", line 59, in _start
    self._async_wait()
  File "/root/portage-2.3.69/lib/_emerge/AbstractPollTask.py", line 99, in _async_wait
    self._unregister()
  File "/root/portage-2.3.69/lib/_emerge/EbuildMetadataPhase.py", line 147, in _unregister
    self.scheduler.remove_reader(self._files.ebuild)
AttributeError: 'NoneType' object has no attribute 'ebuild'

Not sure what to do at this point.

have you searched/asking in any gentoo specific forums - i'd be going there before coming here tbh. If you have then state that

You know, that never occured to me. I will try that.

Well, I can't register on the Gentoo forum site. I tried creating an account at least 10 times, and it either said there was an error creating the account, or this identity is taken.

do you have tried that suggestion?

Yes. Thanks for the reply.

ghost ~ # emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
!!! /usr/portage appears to be under revision control (contains .git).
!!! Aborting rsync sync (override with "sync-rsync-vcs-ignore = true" in repos.conf).
q: Updating ebuild cache for /usr/portage ...
q: Finished 30038 entries in 0.624340 seconds

 * IMPORTANT: 5 config files in '/etc' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * IMPORTANT: 18 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Action: sync for repo: gentoo, returned code = 1

 * An update to portage is available. It is _highly_ recommended
 * that you update portage now, before any other packages are updated.

 * To update portage, run 'emerge --oneshot portage' now.

Ok. I solved it. I tried a different version of the userland. It works. Thanks everyone.