Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] portage 2.1: cache.cache_errors.CacheCorruption:
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
synss
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 282
Location: Dijon > Berlin > Tokyo > Nürnberg > München

PostPosted: Mon May 29, 2006 8:01 pm    Post subject: [SOLVED] portage 2.1: cache.cache_errors.CacheCorruption: Reply with quote

after I emerge --sync && emerge -Du system and ran perl-cleaner, I have the following message on emerge -pDu word || emerge -pDu system:
Code:
21:44 [0] ~ 507 # emerge -p system
>>> --pretend disables --ask... removing --ask from options.

These are the packages that would be merged, in reverse order:

Calculating system dependencies -Traceback (most recent call last):
  File "/usr/bin/emerge", line 3408, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1424, in xcreate
    if not self.select_dep(portage.root, mydep, raise_on_missing=True):
  File "/usr/bin/emerge", line 1248, in select_dep
    myeb_matches = portage.portdb.xmatch("match-visible",x)
  File "/usr/lib/portage/pym/portage.py", line 5310, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep=mydep,mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 5296, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 5395, in gvisible
    keys, eapi = self.aux_get(mycpv, ["KEYWORDS", "EAPI"])
  File "/usr/lib/portage/pym/portage.py", line 5019, in aux_get
    try:                                del self.auxdb[mylocation][mycpv]
  File "/usr/lib/portage/pym/cache/template.py", line 81, in __delitem__
    self._delitem(cpv)
  File "/usr/lib/portage/pym/cache/metadata_overlay.py", line 51, in _delitem
    value = self[cpv] # validates whiteout and/or raises a KeyError when necessary
  File "/usr/lib/portage/pym/cache/metadata_overlay.py", line 28, in __getitem__
    if self._is_whiteout(value):
  File "/usr/lib/portage/pym/cache/metadata_overlay.py", line 76, in _is_whiteout
    return value["EAPI"] == "whiteout"
  File "/usr/lib/portage/pym/cache/mappings.py", line 32, in __getitem__
    return self.orig[key]
  File "/usr/lib/portage/pym/cache/mappings.py", line 77, in __getitem__
    self.d.update(self.pull())
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 29, in callit
    return args[0](*args[1:]+args2)
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 47, in _pull
    raise cache_errors.CacheCorruption(cpv, e)
cache.cache_errors.CacheCorruption: sys-devel/autoconf-2.13 is corrupt: dictionary update sequence element #1 has length 1; 2 is required
obviously, there is something wrong. However, emerge works partially so that I have been able to re-emerge portage, an older version of portage, emerge --sync today and the last version of portage-2.1, which I am using. I also checked my / partition (on which the cache (/var/) resides with e2fsck -f from a live CD just in case (it is ext3) but nothing. I did not hard reboot anyway (but might have used hibernate). No errors were detected. I also enabled "-metadata-transfert" in the FEATURES some time ago, following the instructions given at each update to portage (and it was working all right.)

I don't know what else... Following what the error message says, I tried emerge autoconf (since protage emerge works) but it failed. Now I just tried emerge --metadata -> failed with a similar error message telling me that qemu is corrupt: dictionary, etc. and emerge qemu fails
Code:
22:01 [0] ~ 516 # emerge -p app-emulation/qemu     
>>> --pretend disables --ask... removing --ask from options.

These are the packages that would be merged, in reverse order:

Calculating dependencies   

!!! Problem in app-emulation/qemu dependencies.
!!! app-emulation/qemu-0.8.1 is corrupt: dictionary update sequence element #2 has length 1; 2 is required cache.cache_errors

That's all I can say...
_________________
Compress portage tree
Elog viewer
Autodetect swap


Last edited by synss on Tue May 30, 2006 12:14 am; edited 1 time in total
Back to top
View user's profile Send private message
carl.anderson
Apprentice
Apprentice


Joined: 05 Sep 2005
Posts: 162
Location: Mountain View

PostPosted: Mon May 29, 2006 9:05 pm    Post subject: Reply with quote

What do you get when you run fixpackages? What is your emerge --info like?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


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

PostPosted: Mon May 29, 2006 9:46 pm    Post subject: Reply with quote

Code:
rm -rf /var/cache/edb/dep
emerge --metadata

"fixpackages" has nothing to do with this.
Back to top
View user's profile Send private message
synss
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 282
Location: Dijon > Berlin > Tokyo > Nürnberg > München

PostPosted: Tue May 30, 2006 12:14 am    Post subject: Reply with quote

Excellent! thank you, it did the trick :)
_________________
Compress portage tree
Elog viewer
Autodetect swap
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