that is to say, packages that dont install any files (CONTENTS == 0 bytes) fileutils, sh-utils, textutils all do this ... there are others too ...
*** Bug 29525 has been marked as a duplicate of this bug. ***
*** Bug 29602 has been marked as a duplicate of this bug. ***
Created attachment 18743 [details, diff] patch to fix the problem with zero-bye CONTENTS files This assumes that if CONTENTS exists and is zero-sized that the package in question is a meta package and skips it. Fixed the problem for me.
I ran into the same problem on one of my Gentoo boxen. I ran /usr/lib/portage/bin/fix-db.py instead of the .pl as suggested by the error message and it seems the problem is gone.
I am getting this error with app-doc/kdelibs-apidocs-3.1.4: --- !empty dir /usr/kde/3.1 --- !empty dir /usr/kde --- !empty dir /usr --- !targe sym /usr/kde/3.1/share/doc/HTML/en/kdelibs-apidocs/common >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... * Service 'dcron' already provide 'cron'!; * Not adding service 'vcron'... [ ok ] >>> app-doc/kdelibs-apidocs-3.1.4 merged. ['app-doc/kdelibs-apidocs', '3.1.2', 'r0'] ['app-doc/kdelibs-apidocs-3.1.2', 'app-doc/kdelibs-apidocs-3.1.4'] !!! COUNTER file is missing for app-doc/kdelibs-apidocs-3.1.2 in /var/db. !!! Please run /usr/lib/portage/bin/fix-db.pl or remerge the package. I run fix-db.pl, and it runs successfully: yen root # /usr/lib/portage/bin/fix-db.pl Grabbing db contents... Grabbing mtimes... Sorting... Writing COUNTERs... Writing /var/cache/edb/counter... Done. And yet, when I try re-emerging app-doc/kdelibs-apidocs-3.1.4, I get the same message again! I am unable to complete an update of my laptop because of this. Mark
Same problem here with nessus: root@cube:~# /usr/lib/portage/bin/fix-db.pl Grabbing db contents... Grabbing mtimes... fix-db: fatal: insufficient data for net-analyzer/nessus-2.0.7-r1 Remove this package's directory from /var/db/pkg to fix this, then start this script again. If everything worked correctly, you must remerge net-analyzer/nessus-2.0.7-r1 to not mess up any dependencies. root@cube:~# rm -rf /var/db/pkg/net-analyzer/nessus-2.0.7-r1/ root@cube:~# emerge nessus Calculating dependencies ...done! >>> emerge (1 of 1) net-analyzer/nessus-2.0.7-r1 to / >>> Unpacking source... >>> Source unpacked. >>> Install nessus-2.0.7-r1 into /var/tmp/portage/nessus-2.0.7-r1/image/ category net-analyzer man: prepallstrip: strip: >>> Completed installing into /var/tmp/portage/nessus-2.0.7-r1/image/ >>> Merging net-analyzer/nessus-2.0.7-r1 to / >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> net-analyzer/nessus-2.0.7-r1 merged. >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> Auto-cleaning packages ... ['net-www/mozilla', '1.4', 'r3'] ['net-www/mozilla-1.4', 'net-www/mozilla-1.4-r3'] !!! COUNTER file is missing for net-www/mozilla-1.4-r3 in /var/db. !!! Please run /usr/lib/portage/bin/fix-db.pl or remerge the package. root@cube:~# /usr/lib/portage/bin/fix-db.pl Grabbing db contents... Grabbing mtimes... fix-db: fatal: insufficient data for net-analyzer/nessus-2.0.7-r1 Remove this package's directory from /var/db/pkg to fix this, then start this script again. If everything worked correctly, you must remerge net-analyzer/nessus-2.0.7-r1 to not mess up any dependencies.
*** Bug 31025 has been marked as a duplicate of this bug. ***
The perl script needs some loving... At lot really. It's feeling neglected. Anyone wanna provide the TLC? I'll probably drop it otherwise in favor of my not-quite-finished python db fixer.
Now we don't have fixdb.pl, so we can't fix it. If I misunderstand somthing, feel free to reopen.