Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30441 - portage crash when I do emerge something.
Summary: portage crash when I do emerge something.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-05 15:56 UTC by Jose
Modified: 2011-10-30 22:21 UTC (History)
1 user (show)

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 Jose 2003-10-05 15:56:34 UTC
when I try to emerge something it fails. See additional information for details.

Thanks.

Reproducible: Always
Steps to Reproduce:
1.emerge something (emerge less, for example)


Actual Results:  
#emerge less
[...]

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                             
                                                                               
                                   [ ok ]
>>> Auto-cleaning packages ...
!!! COUNTER file is missing for sys-apps/baselayout-1.8.6.4-r1 in /var/db.
!!! Please run /usr/lib/portage/bin/fix-db.pl
bash-2.05b# 


then I run the script /usr/lib/portage/bin/fix-db.pl

bash-2.05b# /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
fix-db: fatal: couldn't open
/var/db/pkg/sys-kernel/crypto-sources-2.4.19-r7/CONTENTS: No such file or directory
bash-2.05b# 


Expected Results:  
I expected It works.

I dont have the missing file:

bash-2.05b# cd /var/db/pkg/sys-kernel/
bash-2.05b# ls
total 28K
drwxr-xr-x    7 root     root         4,0K 2003-10-06 00:08 .
drwxr-xr-x   71 root     root         4,0K 2003-09-30 23:01 ..
drwxr-xr-x    2 root     root         4,0K 2003-09-12 17:54 gaming-sources-2.4.20-r5
drwxr-xr-x    2 root     root         4,0K 2003-02-26 01:05 gentoo-sources-2.4.19-r7
drwxr-xr-x    2 root     root         4,0K 2003-09-16 16:41 gentoo-sources-2.4.20-r7
drwxr-xr-x    2 root     root         4,0K 2002-09-08 11:39 linux-headers-2.4.19
drwxr-xr-x    2 root     root         4,0K 2003-09-02 23:56 linux-headers-2.4.19-r1
bash-2.05b# 


The crypto-sources doesnt appears in my portage (I installed it once, a long
time ago) :

bash-2.05b# emerge  crypto-sources -s
Searching...   
[ Results for search key : crypto-sources ]
[ Applications found : 0 ]
 




This is my emerge info:

bash-2.05b# emerge info
Portage 2.0.49-r7 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gaming-r5)
=================================================================
System uname: 2.4.20-gaming-r5 i686 AMD Athlon(tm) Processor
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
DISTDIR="/mnt/d/temp/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.skynet.be/gentoo-portage/"
USE="x86 oss crypt encode foomaticdb gif jpeg libg++ mad mmx mpeg ncurses nls
pdflib png quicktime truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang
readline aalib nas svga java guile X sdl gpm tcpd pam libwww perl python
oggvorbis gtk qt motif opengl mozilla ldap cdr -apm arts -avi -cups dvd gd
-gnome gtk2 -imlib jikes junit -kde -mikmod oav snmp -spell -ssl tcltk alsa xml
mysql -esd php postgres"

bash-2.05b# 




I try to reinstall the baselayout.
bash-2.05b# emerge baselayout   
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/baselayout-1.8.6.10-r1 to /
*** Adjusting cvs-src permissions for portage user...
>>> md5 src_uri ;-) sysvinit-2.84.tar.gz
>>> Unpacking source...
>>> Unpacking sysvinit-2.84.tar.gz to /var/tmp/portage/baselayout-1.8.6.10-r1/work
>>> Unpacking rc-scripts-1.4.3.10p1.tar.bz2
  [...]

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                             
                                                                               
                                   [ ok ]
>>> sys-apps/baselayout-1.8.6.10-r1 merged.
!!! COUNTER file is missing for sys-apps/baselayout-1.8.6.4-r1 in /var/db.
!!! Please run /usr/lib/portage/bin/fix-db.pl

but I have the message again...

My /etc directory seems ok:

bash-2.05b# etc-update 
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
bash-2.05b#
Comment 1 Terje Kvernes 2003-10-14 14:35:02 UTC
I've seen the same problem on a few machines as well, and I've been unable
to fix the problem.  The issue seems to have started a while back, but since
I was running unstable I hoped it would go away.  Being overworked didn't
help either.  :-/

[almach ~] # emerge info
!!! Invalid db entry: /var/db/pkg/app-sci/units-1.74-r1.portage_lockfile
Portage 2.0.49-r13 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20)
=================================================================
System uname: 2.4.20 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox buildpkg ccache userpriv usersandbox distcc"
GENTOO_MIRRORS="http://gentoo.linux.no/ http://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups foomaticdb gif jpeg libg++ mad mikmod mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms zlib gtkhtml gdbm
berkdb slang readline arts tetex nas bonobo svga tcltk java guile ruby mysql
sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis qt motif opengl
ldap cdr scanner -3dnow X gtk gtk2 gnome alsa kde encode xv leim gphoto2
dvd pda mozilla mozsvg"
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 12:11:19 UTC
Those are notices. It's not failing.

Remedied in new/cvs portages.