Dirk Heinrichs wrote:

Am Dienstag, 17. Mai 2005 09:23 schrieb ext Colin:



I was messing around with my disk when Gentoo froze up on me.  I
rebooted and got my system back up, but whenever I attempt an emerge, I
get this error:
Traceback (most recent call last):
File "/usr/bin/emerge", line 10 in ?
 import portage
File "/usr/lib/portage/pym/portage.py", line 7306, in ?
 do_upgrade(mykey)
File "/usr/lib/portage/pym/portage.py", line 7244 in do_upgrade
 myworld=open("/"+WORLD_FILE,"w")
IOError: [Errno 2] No such file or directory: '//var/lib/portage/world'

Well, apparently I destroyed Portage. What now?



No, you didn't. Your world file is gone, that's all (it seems). However, it may be some work to rebuild it.


1) Simply "touch /var/lib/portage/world"


Worked.  If it was supposed to spit back some output, it didn't.

2) Then do "emerge -p depclean" (don't forget -p) and put every package it lists into your world file.


It says:
!!! You have no world file.  Cannot determine explicit merges.
!!! You have no installed package tree (var/db/pkg).  This is a problem.

While you were typing your first message, I successfully ran an emerge --sync, and it told me that there was a new version of Portage available. This is probably because a lot of /var was annihilated, though.

--
Colin

--
gentoo-user@gentoo.org mailing list



Reply via email to