When calling "emerge -Upv world" it crashes. On my other mashine there is no such issue. So I don't really know what messed up and how to fix it. I allready run "emerge regen" but this wont help... Reproducible: Always Steps to Reproduce: 1. Have a broken installation :o) 2. run emerge -Upv world Actual Results: # emerge -upv world These are the packages that I would merge, in order: Calculating world dependencies -Traceback (most recent call last): File "/usr/bin/emerge", line 2513, in ? if not mydepgraph.xcreate(myaction): File "/usr/bin/emerge", line 1105, in xcreate myeb=portage.portdb.xmatch("bestmatch-visible",mydep) File "/usr/lib/portage/pym/portage.py", line 4673, in xmatch myval=best(self.xmatch("match-visible",None,mydep,mykey)) File "/usr/lib/portage/pym/portage.py", line 4684, in xmatch myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey)) File "/usr/lib/portage/pym/portage.py", line 4670, in xmatch myval=self.gvisible(self.visible(self.cp_list(mykey))) File "/usr/lib/portage/pym/portage.py", line 4765, in gvisible myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"]) File "/usr/lib/portage/pym/portage.py", line 4509, in aux_get auxdb_is_valid = self.auxdb[cat].has_key(pkg) and \ File "/usr/lib/portage/pym/portage_db_template.py", line 15, in __getitem__ return self.get_values(key) File "/usr/lib/portage/pym/portage_db_flat.py", line 58, in get_values raise ValueError, "Key count mismatch" ValueError: Key count mismatch Expected Results: List of packages ready to update # emerge info Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo) ================================================================= System uname: 2.6.1-gentoo i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.3.10p1 Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://212.219.247.16/sites/www.ibiblio.org/gentoo/ http://212.219.247.17/sites/www.ibiblio.org/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acl acpi acpi4linux alsa also apache2 apm arts avi berkdb bonobo cdr crypt cups dga directfb dvd encode esd evo fbcon foomaticdb gdbm gif gimpprint gnome gpm gtk gtk2 gtkhtml guile imap imlib ipv6 java jpeg kde ldap libg++ libwww lirc mad maildir mikmod mmx motif mozilla mozp3p mozsvg mozxmlterm mpeg nas ncurses nls nptl nvidia oggvorbis opengl oss pam pcmcia pdflib perl pic png python qt quicktime readline samba scanner sdl slang slp spell sse ssl svga tcltk tcpd tetex threads tiff truetype usb v4l x86 xml xml2 xmms xv zlib"
rm -Rf /var/cache/edb/dep Rather odd error... Probably means a corrupt cache file.
Same issue here after a crash while emerge-ing. rm -Rf /var/cache/edb/dep emerge sync fixed it.
*** This bug has been marked as a duplicate of 40831 ***