Code: Select all
shoushi root # /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
fix-db: fatal: # of ebuilds doesn't match # of CONTENTS files
shoushi root # /usr/lib/portage/bin/fix-db.py
Traceback (most recent call last):
File "/usr/lib/portage/bin/fix-db.py", line 54, in ?
pkgdirlist = os.listdir(pkgdir)
OSError: [Errno 20] Not a directory: '/var/db/pkg/x11-misc/-MERGING-xscreensaver-4.14-r1.portage_lockfile/'

Code: Select all
sigil root # /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
fix-db: fatal: insufficient data for media-sound/mad-0.15.0b
Remove this package's directory from /var/db/pkg to fix this, then start this
script again. If everything worked correctly, you must remerge
media-sound/mad-0.15.0b to not mess up any dependencies.Code: Select all
root # /usr/lib/portage/bin/fix-db.py
ERROR: SLOT file is empty for 'sys-apps/baselayout-1.7.7'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/groff-1.17.2-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/debianutils-1.16'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/diffutils-2.7.7'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/file-3.37'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/fileutils-4.1.8'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/findutils-4.1.7-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/gawk-3.1.0-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/grep-2.5-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/sed-3.02.80-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/hdparm-4.6-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/less-371-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/lsof-4.60-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/man-1.5i-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/man-pages-1.43-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/modutils-2.4.12'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/net-tools-1.60-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/netkit-base-0.17-r5'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/procps-2.0.7-r6'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/psmisc-19-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/reiserfs-utils-3.6.25-r7'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/sh-utils-2.0.11-r4'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/shadow-4.0.2-r4'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/textutils-2.0.19-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/util-linux-2.11o'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/which-2.13'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/xinetd-2.3.4'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/eject-2.0.10'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-apps/ucspi-tcp-0.88-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-kernel/linux-sources-2.4.19-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-kernel/gentoo-sources-2.4.19-r5'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/glibc-2.2.5-r2'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/ncurses-5.2-r5'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/readline-4.1-r4'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/pwdb-0.61-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/cracklib-2.7-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/pam-0.75-r6'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/lib-compat-1.0-r2'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-libs/gpm-1.20.0-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/gcc-2.95.3-r5'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/gettext-0.11.1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/flex-2.5.4a-r4'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/bc-1.06-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/bin86-0.15.5'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/bison-1.34-r1'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/ld.so-1.9.11-r2'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/make-3.79.1-r3'.
RE-MERGE this exact package version or unmerge and remerge it.
ERROR: SLOT file is empty for 'sys-devel/gdb-5.1.1'.
RE-MERGE this exact package version or unmerge and remerge it.
Traceback (most recent call last):
File "/usr/lib/portage/bin/fix-db.py", line 54, in ?
pkgdirlist = os.listdir(pkgdir)
OSError: [Errno 20] Not a directory: '/var/db/pkg/sys-devel/-MERGING-gcc-3.2.3-r3.portage_lockfile/'
Code: Select all
root # /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
fix-db: fatal: insufficient data for kde-base/kde-3.1.5
Remove this package's directory from /var/db/pkg to fix this, then start this
script again. If everything worked correctly, you must remerge
kde-base/kde-3.1.5 to not mess up any dependencies.
root #

Me too - I've been unable to update for several days nowTheCoop wrote:hmm, ive still got the 'long list' varient of the problem. Deleting the empty directories in /var/db/pkg removes them from the list. if I delete directories with packages recorded in them they are removed from the list, when I recompile the packages whos db entry I deleted the !!! Invalid... error for the category comes back. Can a dev please say exactly what the problem is, or how we can help debug it (we are all very eager to help you as much as we can btw)


Code: Select all
# equery f /lib/rcscripts/net.modules.d/iproute2
[ Searching for packages matching /lib/rcscripts/net.modules.d/iproute2... ]
!!! Invalid db entry: /var/db/pkg//sys-devel
!!! Invalid db entry: /var/db/pkg//sys-apps
!!! Invalid db entry: /var/db/pkg//sys-kernel
<skipping the LOOONG list>

equery b /lib/rcscripts/net.modules.d/iproute2cghislai wrote:hi all
I have the same issue whencalling equery:Ive tried all your suggestion, exepting remerging devfs wich i dont use. Im using portage > 0.50, so the bug mentionned do not apply.Code: Select all
# equery f /lib/rcscripts/net.modules.d/iproute2 [ Searching for packages matching /lib/rcscripts/net.modules.d/iproute2... ] !!! Invalid db entry: /var/db/pkg//sys-devel !!! Invalid db entry: /var/db/pkg//sys-apps !!! Invalid db entry: /var/db/pkg//sys-kernel <skipping the LOOONG list>
I wonder what is the cause....
Any suggestion welcome!