Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage broken during crash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
parressh
n00b
n00b


Joined: 16 Nov 2002
Posts: 6
Location: Phoenix, AZ

PostPosted: Sat Nov 16, 2002 12:50 am    Post subject: Portage broken during crash Reply with quote

My computer crashed while doing an 'emerge rsync' and I think it blew away a lot or portage files (/var/cache/edb stuff). So now I get all kinds of errors when running emerge. Here's an example of the output I get.

# emerge fwbuilder
portage: Update type "MD5" not recognized.
portage: Update type "" not recognized.
Calculating dependencies \portage: aux_get(): stale entry was not regenerated for net-libs/libfwbuilder-0.10.8-r1; exiting.
!!! list index out of range

!!! Problem in net-misc/fwbuilder dependancies.
!!! 1

Does anyone have any ideas what I need to do to try and fix this? Thanks.

-Matt
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Nov 16, 2002 4:51 pm    Post subject: Reply with quote

First thing would be an rsync, but I doubt that will help.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
parressh
n00b
n00b


Joined: 16 Nov 2002
Posts: 6
Location: Phoenix, AZ

PostPosted: Sat Nov 16, 2002 5:30 pm    Post subject: Rsync didn't work Reply with quote

Yeah, I've done several rsync's, but it hasn't helped.

Here's what happens when I do an emerge -pu world

# emerge -pu world
portage: Update type "MD5" not recognized.
portage: Update type "" not recognized.

These are the packages that I would merge, in order.

Calculating world dependencies /portage: aux_get(): (1) couldn't open cache entry for sys-libs/ncurses-5.2.20020511-r3
(likely caused by syntax error or corruption in the sys-libs/ncurses-5.2.20020511-r3 ebuild.)
|portage: aux_get(): (1) couldn't open cache entry for sys-libs/readline-4.2a-r1
(likely caused by syntax error or corruption in the sys-libs/readline-4.2a-r1 ebuild.)
/portage: aux_get(): stale entry was not regenerated for sys-apps/e2fsprogs-1.32; exiting.
!!! list index out of range
Back to top
View user's profile Send private message
TheEternalVortex
Apprentice
Apprentice


Joined: 15 Oct 2002
Posts: 207
Location: San Jose, CA

PostPosted: Sat Nov 16, 2002 5:43 pm    Post subject: Reply with quote

Try moving all of the cache files somewhere else, and do an emerge sync.
_________________
-- Andy
Back to top
View user's profile Send private message
parressh
n00b
n00b


Joined: 16 Nov 2002
Posts: 6
Location: Phoenix, AZ

PostPosted: Sat Nov 16, 2002 6:19 pm    Post subject: Didn't work Reply with quote

That didn't work, but when I moved the folders of the ebuilds that were complaining:

/usr/portage/sys-libs/ncurses/
/usr/portage/sys-libs/readline/
/usr/portage/sys-apps/e2fsprogs/

emerge -pu world worked fine.

Then I did emerge rsync, and I got the same error messages as posted above. Any ideas about that?
Back to top
View user's profile Send private message
wormie
n00b
n00b


Joined: 24 Aug 2002
Posts: 36

PostPosted: Sun Nov 17, 2002 12:09 am    Post subject: Reply with quote

I had a nastry crash at one point and it screwed up my portage too. However, I didn't get the same error messages. I also haven't found an easy way to rebuild the world file. qpkg still works, though, so I've manually attempted to do it by going through installed packages and re-emerging them.
You might try doing a fresh emerge of ncurses, readline, and e2fsprogs to rebuild the cache entries. Hopefully this will at least get rid of your error messages. Unfortunately, you may still end up with an out-of-sync world file. Aside from emerging stuff again, I don't know of a way to correct this. With luck, somebody else does.
Back to top
View user's profile Send private message
parressh
n00b
n00b


Joined: 16 Nov 2002
Posts: 6
Location: Phoenix, AZ

PostPosted: Sun Nov 17, 2002 9:59 pm    Post subject: problems with emerge portage Reply with quote

If I try to emerge portage, this is what eventually happens:

>>> original instance of package unmerged safely.
>>> Clearing invalid entries in dependancy cache...egrep: Update: No such file or directory
egrep: type: No such file or directory
egrep: "MD5": No such file or directory
egrep: not: No such file or directory
egrep: recognized.: No such file or directory
egrep: portage:: No such file or directory
egrep: Update: No such file or directory
egrep: type: No such file or directory
egrep: "": No such file or directory
egrep: not: No such file or directory
egrep: recognized.: No such file or directory
egrep: 11: No such file or directory
wc: write error: Broken pipe
wc: write error: Broken pipe
wc: write error: Broken pipe

It just keeps saying Broken pipe until I kill the process. Does anybody know how to fix that?
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Mon Nov 18, 2002 3:40 pm    Post subject: Reply with quote

Sounds like an ancient portage problem. Try upgrading to portage-2.0.44.

If you have successfully rsynced, try finding the portage-rescue tarball and using it.
Back to top
View user's profile Send private message
parressh
n00b
n00b


Joined: 16 Nov 2002
Posts: 6
Location: Phoenix, AZ

PostPosted: Mon Nov 18, 2002 4:22 pm    Post subject: tried it Reply with quote

I used the portage-rescue tarball, but I still see the write error: Broken pipe and other error messages. By the way, I am using 2.0.44.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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