View previous topic :: View next topic |
Author |
Message |
hanhun n00b
Joined: 24 Dec 2004 Posts: 30
|
Posted: Thu Jul 28, 2005 10:16 am Post subject: help!i have deleted the directory '/var/lib/portage/' |
|
|
now i can't emerge ,how should i do to restore? |
|
Back to top |
|
|
pitcrawler Apprentice
Joined: 09 Jan 2005 Posts: 155 Location: Oklahoma, USA
|
Posted: Thu Jul 28, 2005 10:20 am Post subject: Re: help!i have deleted the directory '/var/lib/portage/' |
|
|
I think you should just be able to create the directory again, then create two files called "world" and "config" (without the quotes of course) and that should get emerge working again. You will have lost the list of packages in your world file though so you might have to add them again to the world file manually. |
|
Back to top |
|
|
zieloo Veteran
Joined: 28 Mar 2004 Posts: 1337
|
Posted: Thu Jul 28, 2005 10:24 am Post subject: |
|
|
Use to recreate your world file. |
|
Back to top |
|
|
hanhun n00b
Joined: 24 Dec 2004 Posts: 30
|
Posted: Thu Jul 28, 2005 11:11 am Post subject: |
|
|
Quote: | huang portage # regenworld
Traceback (most recent call last):
File "/usr/sbin/regenworld", line 91, in ?
myfile=open(portage.WORLD_FILE, "w")
IOError: [Errno 2] No such file or directory: '/var/lib/portage/world'
huang portage #
|
|
|
Back to top |
|
|
zieloo Veteran
Joined: 28 Mar 2004 Posts: 1337
|
Posted: Thu Jul 28, 2005 11:19 am Post subject: |
|
|
hanhun wrote: | Quote: | huang portage # regenworld
Traceback (most recent call last):
File "/usr/sbin/regenworld", line 91, in ?
myfile=open(portage.WORLD_FILE, "w")
IOError: [Errno 2] No such file or directory: '/var/lib/portage/world'
huang portage #
|
|
The files do not exist, create them by:
Code: | touch /var/lib/portage/world /var/lib/portage/config |
EDIT: typo |
|
Back to top |
|
|
hanhun n00b
Joined: 24 Dec 2004 Posts: 30
|
Posted: Thu Jul 28, 2005 11:41 am Post subject: |
|
|
thank!
but after regenworld,the file is empty, because i clean /var by |
|
Back to top |
|
|
zieloo Veteran
Joined: 28 Mar 2004 Posts: 1337
|
Posted: Thu Jul 28, 2005 12:17 pm Post subject: |
|
|
hanhun wrote: | thank!
but after regenworld,the file is empty, because i clean /var by |
Why would you want to clean /var ? |
|
Back to top |
|
|
hanhun n00b
Joined: 24 Dec 2004 Posts: 30
|
Posted: Thu Jul 28, 2005 1:38 pm Post subject: |
|
|
i want to clean /var/tmp ,but i miss the tmp. how to restore my portage?maybe this is "Impossible Mission" |
|
Back to top |
|
|
|