View previous topic :: View next topic |
Author |
Message |
FlowerOS n00b
Joined: 09 Apr 2006 Posts: 1
|
Posted: Sun Apr 09, 2006 7:18 pm Post subject: emerge doesn't work. I'm stuck |
|
|
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 |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sun Apr 09, 2006 7:47 pm Post subject: know what i'd do? |
|
|
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 |
|
|
cconroy Tux's lil' helper
Joined: 26 Apr 2005 Posts: 81
|
|
Back to top |
|
|
meax Tux's lil' helper
Joined: 21 Jul 2004 Posts: 88 Location: Babylon
|
Posted: Sun Apr 09, 2006 10:39 pm Post subject: |
|
|
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 |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
|
Back to top |
|
|
|
|
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
|
|