Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help!i have deleted the directory '/var/lib/portage/'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hanhun
n00b
n00b


Joined: 24 Dec 2004
Posts: 30

PostPosted: Thu Jul 28, 2005 10:16 am    Post subject: help!i have deleted the directory '/var/lib/portage/' Reply with quote

now i can't emerge ,how should i do to restore?
Back to top
View user's profile Send private message
pitcrawler
Apprentice
Apprentice


Joined: 09 Jan 2005
Posts: 155
Location: Oklahoma, USA

PostPosted: Thu Jul 28, 2005 10:20 am    Post subject: Re: help!i have deleted the directory '/var/lib/portage/' Reply with quote

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
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Thu Jul 28, 2005 10:24 am    Post subject: Reply with quote

Use
Code:
regenworld
to recreate your world file.
Back to top
View user's profile Send private message
hanhun
n00b
n00b


Joined: 24 Dec 2004
Posts: 30

PostPosted: Thu Jul 28, 2005 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Thu Jul 28, 2005 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message
hanhun
n00b
n00b


Joined: 24 Dec 2004
Posts: 30

PostPosted: Thu Jul 28, 2005 11:41 am    Post subject: Reply with quote

thank!
but after regenworld,the file is empty, because i clean /var by
Quote:
tmpreaper 3d /var
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Thu Jul 28, 2005 12:17 pm    Post subject: Reply with quote

hanhun wrote:
thank!
but after regenworld,the file is empty, because i clean /var by
Quote:
tmpreaper 3d /var


Why would you want to clean /var ?
Back to top
View user's profile Send private message
hanhun
n00b
n00b


Joined: 24 Dec 2004
Posts: 30

PostPosted: Thu Jul 28, 2005 1:38 pm    Post subject: Reply with quote

i want to clean /var/tmp ,but i miss the tmp. how to restore my portage?maybe this is "Impossible Mission"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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