Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136209 - emerge not working after emerge sync
Summary: emerge not working after emerge sync
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Lowest blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 136210 136211 136686 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-09 09:48 UTC by Matthew Schultz
Modified: 2006-06-13 11:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2006-06-09 09:48:46 UTC
I can no longer use emerge after doing an emerge sync.  I'm continually getting an error using the emerge command that first appeared as emerge sync was updating the portage cache:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7187, in ?
    settings=config(config_profile_path=PROFILE_PATH,config_incrementals=portage_const.INCREMENTALS)
  File "/usr/lib/portage/pym/portage.py", line 946, in __init__
    mypath = os.path.normpath(mypath+"///"+grabfile(mypath+"/parent")[0])
IndexError: list index out of range



Here are my mirror settings:

GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.usu.edu/mirrors/gentoo/ "

SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-09 09:54:35 UTC
This was a minor problem with the profiles in the tree. It's been fixed. Try syncing again in 30-60 minutes.
Comment 2 Matthew Schultz 2006-06-09 09:57:26 UTC
(In reply to comment #1)
> This was a minor problem with the profiles in the tree. It's been fixed. Try
> syncing again in 30-60 minutes.
> 

How can I sync if emerge isn't working?  If I just type emerge by itself, I get that error.
Comment 3 Wilderness Child 2006-06-09 10:01:57 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > This was a minor problem with the profiles in the tree. It's been fixed. Try
> > syncing again in 30-60 minutes.
> > 
> 
> How can I sync if emerge isn't working?  If I just type emerge by itself, I get
> that error.

This fixed it for me:
echo '..' > /usr/portage/profiles/default-linux/amd64/parent
Comment 4 Wilderness Child 2006-06-09 10:02:58 UTC
*** Bug 136210 has been marked as a duplicate of this bug. ***
Comment 5 Sebastian Volke 2006-06-09 10:06:17 UTC
I have the same problem after a sync about 18:30 CET (timezone Berlin). I'm using the standard rsync server @ distfiles.gentoo.org.
And it's right: portage is absolutly broken down after that. No emerge --sync, no install, nothing works, even equery exits, all with the same error, very similar to the one posted above. (if it's not the same)

But don't worry, you can get around that situation. I didn't manage to sync properly till now, but I got a working portage with manually installing it.
Just get a portage snapshot from you favorited gentoo mirror and untar it, using the following command:
    tar -xvjpf ./portage-<date>.tar.bz2 -C /usr/
See the manual pages for the tar options ;-)
That recreates a fine portage system and tree.

Good luck, I hope that is fixed soon

Sebastian
Comment 6 Matthew Schultz 2006-06-09 10:09:26 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > This was a minor problem with the profiles in the tree. It's been fixed. Try
> > > syncing again in 30-60 minutes.
> > > 
> > 
> > How can I sync if emerge isn't working?  If I just type emerge by itself, I get
> > that error.
> 
> This fixed it for me:
> echo '..' > /usr/portage/profiles/default-linux/amd64/parent
> 

Thanks.  I tried this and it worked.  It's good that I didn't have to rebuild portage. :-)
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2006-06-09 10:11:24 UTC
*** Bug 136211 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-06-09 13:00:29 UTC
Fixed, closing. See Comment #3 if you can't emerge --sync.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-06-13 10:43:11 UTC
*** Bug 136686 has been marked as a duplicate of this bug. ***
Comment 10 Ryan Grange 2006-06-13 11:26:44 UTC
The echo command fixed it for me as well on AMD64.  For some reason though searching commends for "IndexError" doesn't return this bug.  It would have prevented my creating a duplicate entry.