Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
equery error after reiserfs curruption (FIXED)
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
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Tue Dec 27, 2005 7:31 pm    Post subject: equery error after reiserfs curruption (FIXED) Reply with quote

Hi!

After a filesystem corruption equery doesn´t work OK. It give me the correct results, but also give me an error:
Code:
portage: CONTENTS line 1 corrupt!


For example:
Code:

equery b nautilus
(results)
portage: CONTENTS line 1 corrupt!


I have tried to re-emerge gentoolkit, but it hasn´t fixed the problem :(

Thanks a lot for your help and sorry my poor english


Last edited by pacho2 on Wed Dec 28, 2005 5:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9555
Location: beyond the rim

PostPosted: Tue Dec 27, 2005 11:47 pm    Post subject: Reply with quote

Sounds like your installed package database in /var/db/pkg got a bit corrupted.
The following command might give you a hint what files are broken (untested):
Code:
find /var/db/pkg -name "CONTENTS" | xargs egrep -v "^(dev|fif|sym|dir|obj)"
Back to top
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Wed Dec 28, 2005 12:36 pm    Post subject: Reply with quote

I will try it. Thanks a lot :)

PD: Is there a command for rebuild this database?

Thanks
Back to top
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Wed Dec 28, 2005 5:50 pm    Post subject: Reply with quote

Genone wrote:
Sounds like your installed package database in /var/db/pkg got a bit corrupted.
The following command might give you a hint what files are broken (untested):
Code:
find /var/db/pkg -name "CONTENTS" | xargs egrep -v "^(dev|fif|sym|dir|obj)"


The problem is fixed. I run the line you sent me, and it gave me a CONTENTS files (hdparm one). I removed this file and re-emerged hdparm for re-create it, and now equery works fine :)

Thanks a lot :)
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