Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge and others broken...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
verbatim
Apprentice
Apprentice


Joined: 13 Mar 2003
Posts: 223

PostPosted: Wed Sep 03, 2003 8:21 pm    Post subject: emerge and others broken... Reply with quote

Here's what I did...
"emerge -u pysol"
Told me I needed to remerge python with USE="tcltk"
Did that... then merged python and pysol, looks good.
Pysol works, but emerge is completely broken.

Code:
root@slimemold root # emerge info
Traceback (most recent call last):
  File "/usr/bin/emerge", line 13, in ?
    import portage
  File "/usr/lib/python2.2/site-packages/portage.py", line 18, in ?
    ostype=os.uname()[0]
AttributeError: 'module' object has no attribute 'uname'

Code:
root@slimemold root # etc-update
Traceback (most recent call last):
  File "/usr/lib/portage/bin/portageq", line 6, in ?
    import sys,portage,types,string
  File "/usr/lib/python2.2/site-packages/portage.py", line 18, in ?
    ostype=os.uname()[0]
AttributeError: 'module' object has no attribute 'uname'
Traceback (most recent call last):
  File "/usr/lib/portage/bin/portageq", line 6, in ?
    import sys,portage,types,string
  File "/usr/lib/python2.2/site-packages/portage.py", line 18, in ?
    ostype=os.uname()[0]
AttributeError: 'module' object has no attribute 'uname'
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)


What happened here? And more importantly, how do I fix it?
Back to top
View user's profile Send private message
t011
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 102

PostPosted: Thu Sep 04, 2003 2:54 am    Post subject: Reply with quote

I can't tell what your problem is, but you might try using the portage-rescue tarball. Go to /usr/portage/sys-apps/portage/files. In that directory you should find a few different versions of the portage-rescue tarball. Read the README.RESCUE file. It says:
Quote:
If your version of Portage dies for some reason, try using the
portage-rescue package as follows for Gentoo Linux 1.0+ systems:

SUBSTITUTE A FILE THAT EXISTS FOR THE EXAMPLE VERSION BELOW.
IF AN ARCHITECTURE IS SPECIFIED IN THE FILENAME BE SURE IT IS
THE CORRECT ONE FOR YOUR ARCH.

**************************************************************
NOTE: This WILL overwrite make.conf. Please copy your original
somewhere safe if you wish to keep it for reference.
**************************************************************

If you are not in this directory, you need to change to:
# cd /usr/portage/sys-apps/portage/files/

Run the following to extract the tarball (substitute your arch for 'x86')
# tar xjpUvf portage-rescue-2.0.47-r10-x86.tbz2 -C /

You'll see a warning about garbage at the end of the tarball/bzip2. That's
normal and not a problem. That should get Portage up and running again.

Immediately after that finishes do the following:
# emerge rsync
# emerge portage

Everything should be fine from then on.

Best Regards,

Gentoo Linux

Other than that, I have no idea how to help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum