Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge doesn't work. I'm stuck
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
FlowerOS
n00b
n00b


Joined: 09 Apr 2006
Posts: 1

PostPosted: Sun Apr 09, 2006 7:18 pm    Post subject: emerge doesn't work. I'm stuck Reply with quote

I get an error every time I try to run emerge so I can;t update anything through usual methods.

Code:
# emerge --help

Performing Global Updates: /usr/portage/profiles/updates/1Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7480, in ?
    do_upgrade(mykey)
  File "/usr/lib/portage/pym/portage.py", line 7372, in do_upgrade
    db["/"]["vartree"].dbapi.move_ent(mysplit)
  File "/usr/lib/portage/pym/portage.py", line 4683, in move_ent
    origmatches=self.match(origcp,use_cache=0)
  File "/usr/lib/portage/pym/portage.py", line 4829, in match
    return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"


I tried to recompile portage and python on other station and copy the files but it didn't help. I can copy files from the other station but it will help a lot if I would know what to copy/update.

python-updater says everything is nice and well.

Code:
# python-updater
 * Logging disabled due to permissions
 * Starting Python Updater from 2.3 to 2.4 :
 * Searching for packages with files in /usr/lib/python2.3 /usr/lib32/python2.3 /usr/lib64/python2.3 ..
 * Calculating Upgrade Package List ..
 * Re-ordering packages to merge ..
 * Preparing to merge these packages in this order:
 * Python update completed successfully.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sun Apr 09, 2006 7:47 pm    Post subject: know what i'd do? Reply with quote

know what i'd do?

pull a portage snapshot from the internet and paste it right over the top of yours, blowing yours away beforehand of course. But i think the distfiles directory, possibly the packages dirrectory and maybe more if you use more advanced stuff, should be left as you have it. it's all the source mostly, the stuff you downloaded at any rate.

So do consider using a snapshot, and then syncing.

But consider carefully, for I know not whether any information concerning whether or not a package is installed is stored in the portage directory.

Another, less destructive idea is to fix

Code:

File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"


or maybe just the whole file? have any unexpected restarts lately or anything?

just watch out for getting the right version. if there's any doubt you could download the files / get them from another computer's distfiles directory and then extract only the portage.py and, backing up yours so as not to make matters worse, put the new one in its place.

what do you think?
Back to top
View user's profile Send private message
cconroy
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2005
Posts: 81

PostPosted: Sun Apr 09, 2006 9:18 pm    Post subject: Reply with quote

i totally borked my portage a few weeks ago, and here is the official documentation for how to recover from such a problem:

http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
Back to top
View user's profile Send private message
meax
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2004
Posts: 88
Location: Babylon

PostPosted: Sun Apr 09, 2006 10:39 pm    Post subject: Reply with quote

There was some b0rkage with an invalid entry in /usr/portage/profiles/updates/1Q-2006. Try this:
Code:
# rm /usr/portage/profiles/updates/1Q-2006
# emerge --sync

After this portage should work again.

HTH,
meax
_________________
Bullshit makes the flowers grow and that's beautiful.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Thu Jul 06, 2006 10:06 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of https://forums.gentoo.org/viewtopic-t-424160.html
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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