It is some time since I last updated my gentoo system, and now I get this when doing emerge -upDv world: nexus6 portage # emerge -up world These are the packages that I would merge, in order: Calculating world dependencies Traceback (most recent call last): File "/usr/bin/emerge", line 2903, in ? if not mydepgraph.xcreate(myaction): File "/usr/bin/emerge", line 1310, in xcreate if portage.db["/"]["vartree"].dbapi.match(x): File "/usr/lib/portage/pym/portage.py", line 4581, in match mymatch=match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache)) File "/usr/lib/portage/pym/portage.py", line 4495, in cp_list mystat=os.stat(self.root+VDB_PATH+"/"+mysplit[0])[stat.ST_MTIME] TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str Acutally it seems like it is when trying to emerge without specifying a specific package? I think it could have something to do with the package cache move gentoo made recently? Sorry if I am stupid..have searched the forums and bugzilla Reproducible: Always Steps to Reproduce: 1. 2. 3. nexus6 portage # emerge info Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.4.25-lck1 i686) ================================================================= System uname: 2.4.25-lck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acl acpi adns alsa apache2 apm avi berkdb bindist bitmap-fonts bonobo caps cdr crypt cscope cups curl dedicated dga directfb divx doc dvb dvd dvdr emacs emacs-w3 encode esd ethereal evo f77 faad fam fbcon firebird flac flash foomaticdb freetds gb gd gdbm ggi gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml imap imlib innodb ipv6 jabber jack java jikes joystick jpeg kerberos ladcca lcms ldap leim libg++ libgda libwww lirc mad maildir matroska mbox mcal memlimit mikmod mmx motif mozilla mpeg msn mule mysql nas ncurses nls oci8 odbc oggvorbis opengl oscar oss pam pda pdflib perl pic plotutils png postgres ppds python quicktime readline ruby samba sasl scanner sdl slang slp socks5 speex spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype unicode usb videos wmf wxwindows x86 xface xinerama xml xml2 xmms xosd xprint xv xvid zlib"
Can you check to see if /var/lib/portage/world is corrupted please?
Yes. I have checked that (I believe). I tried a regen-world or something like(I am not at a gentoo box right now), and it didn't help. If it can be of any help. I can post the world file later today.
If the world file does in fact contain garbage (as the traceback indicates), you'll need to delete it and then run regenworld.
Ok. Thanks I will try that when getting home (about an hour), and report back :-)
Ok. It solved the problem. Thank you very much :-) shouldn't regenworld be renamed to genworld?(it doesn't generate the world file if the file is present) ;-) Thank you.
Closing (jason already pointed out the local system issue).