Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41555 - emerge crashes when i try to emerge -u anything or -p
Summary: emerge crashes when i try to emerge -u anything or -p
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-14 06:01 UTC by Pedro de Oliveira
Modified: 2004-02-14 12:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro de Oliveira 2004-02-14 06:01:41 UTC
yesterday I did a emerge sync like I normaly do, but when it ended and i did a emerge -up world i started getting these errors:

(lots of them over this ones)
!!! Invalid db entry: /var/db/pkg//net-analyzer
!!! Invalid db entry: /var/db/pkg//games-action
!!! Invalid db entry: /var/db/pkg//games-arcade
!!! Invalid db entry: /var/db/pkg//games-fps
!!! Invalid db entry: /var/db/pkg//games-rpg
Calculating world dependencies  
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2517, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1097, in xcreate
    if portage.db["/"]["vartree"].dbapi.match(x):
  File "/usr/lib/portage/pym/portage.py", line 4156, in match
    mymatch=match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4082, in cp_list
    mystat=os.stat(self.root+VDB_PATH+"/"+mysplit[0])[ST_MTIME]
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not st
r

and i cant emerge anything.

i was on #gentoo, and ppl told me to run fix-db.py, i did that but the same errors persisted, then another one told me to do a emerge regen, so i did, and after it ended i tried again the emerge -up world, and.. the error is still the same. im posting here cause no one really know how to help me and i dont want that my system dies :-|

please try to help me

Reproducible: Always
Steps to Reproduce:
1.emerge anything
2.
3.



Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.3
-rc2-gentoo)
=================================================================
System uname: 2.6.3-rc2-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/te
xmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/mnt/c/gentoo/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo/ ftp://ibiblio.org/pub/Linux/dis
tributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/c/gentoo/build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm avi berkdb cdr crypt dvd encode foomaticdb gdbm ggi gif gp
hoto2 gpm gtk gtk2 gtkhtml guile imap imlib jpeg libg++ libwww mad mikmod motif 
mpeg ncurses nls offensive oggvorbis opengl oss pam pdflib perl png python quick
time readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff trans
code truetype usb wxwindows x x86 xml2 xmms xv xvid zlib"
Comment 1 Pedro de Oliveira 2004-02-14 12:56:44 UTC
my world file was damaged, i already fixed it. this is solved. thanks for everyone at #gentoo-dev