>>> original instance of package unmerged safely. * Please do not contact the E team about bugs in Gentoo. * Only contact vapier@gentoo.org via e-mail or bugzilla. * Remember, this stuff is CVS only code so dont cry when * I break you :). >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> media-sound/eplayer-0.7.20031025 merged. >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> Auto-cleaning packages ... !!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. root@vapier 0 root # emerge info Portage 2.0.49-r16 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r7, 2.6.0-test8) ================================================================= System uname: 2.6.0-test8 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.3.11 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-pipe -march=pentium4 -O2 -frename-registers -fomit-frame-pointer -mfpmath=sse -mmmx -msse -msse2 -fdelete-null-pointer-checks -funroll-loops -ffast-math -D_FILE_OFFSET_BITS=64 -D_LARGEFIL E_SOURCE -D_LARGEFILE64_SOURCE" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/k de/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /opt/ glftpd/etc /usr/share/config /var/qmail/control /var/qmail/alias" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-pipe -march=pentium4 -O2 -frename-registers -fomit-frame-pointer -mfpmath=sse -mmmx -ms se -msse2 -fdelete-null-pointer-checks -funroll-loops -ffast-math -D_FILE_OFFSET_BITS=64 -D_LARGEF ILE_SOURCE -D_LARGEFILE64_SOURCE" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache noauto" GENTOO_MIRRORS="http://www.ibiblio.org/gentoo" MAKEOPTS="-j2" PKGDIR="/mnt/space/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rux0r/gentoo-portage" USE="x86 foomaticdb mad offensive moznomail moznoirc moznocompose apache2 emu10k1 -joystick dedica ted nptl cdr -scanner -3dfx -3dnow aalib acl -afs alsa acpi -apm -arts -atlas avi -berkdb -bonobo -canna -cjk crypt cups dga directfb -doc dvd encode esd -evo -fbcon flash -freewnn -gb gd gd-exter nal gdbm ggi -ggz gif -gnome -gnome-libs -gphoto2 gpm gtk gtk2 -gtkhtml -guile -icc -icc-pgo imap imlib -innodb ipv6 -java jpeg -kde -kerberos -lcms -ldap -libg++ -libgda libwww -matrox maildir -m box mikmod mmx -motif mozilla mpeg -mule mysql nas ncurses -nls nocardbus -oci8 -odbc oggvorbis op engl oss pam -pcmcia -pda pdflib perl pic plotutils png pnp -postgres python qt qtmt quicktime rea dline -ruby samba sasl sdl -slang slp snmp socks5 spell sse ssl -static svga tcltk tcpd -tetex tif f truetype -trusted -voodoo3 wavelan X -xface xml xml2 xmms xv -zeo zlib video_cards_nvidia"
Got one guy in the forums having the same issue (http://forums.gentoo.org/viewtopic.php?t=99061). What version of devfsd are you using? The reason for the error is the asterisk: !!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! ---------------------------------^^^ // shouldnt be there
I got the same problem. Got devfsd 1.3.25-r3. Portage 2.0.49-r16 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test6-mm4) ================================================================= System uname: 2.6.0-test6-mm4 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.4.3.10p1 distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions -falign-functions=16 -falign-labels=1 -falign-loops=16 -funroll-loops -ffast-math" 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/cvs/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions -falign-functions=16 -falign-labels=1 -falign-loops=16 -funroll-loops -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://10.0.0.3/pub/linux/Gentoo ftp://ftp.uninett.no/pub/linux/Gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/" MAKEOPTS="-j2" 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 encode foomaticdb gif jpeg libg++ mad mikmod motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline aalib svga ggi tcltk java mysql X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde opengl mozilla gphoto2 cdr 3dnow acpi amd apache2 autofs bluetooth dga dvd dvdr gb gd geoip gtk2 imagemagick imlib2 ipv6 javascript offensive php samba sse transcode usb v4l wxwindows mmx -gpm -arts" Also had the same problem with Portage 2.0.49-r15.
*** Bug 31882 has been marked as a duplicate of this bug. ***
Same problem here with portage r15.
i know the asterik isnt supposed to be there but i dunno where it's coming from ;) i had it with devfsd 1.3.25-r3 ... but then i unmerged devfsd because i switched over to udev ... the error went away ... since devfsd is part of the system profile, portage wanted to install it for me ... so i injected it `emerge -i sys-fs/devfsd-1.3.25-r5` and the error came back no there arent any funky directories in /var/db/pkg so dont bother asking ;)
Same problem here, using devfsd-1.3.25-r5 and portage-2.0.49-r15. This is a brand new Gentoo installation from scratch (I've just finished stage2).
Is it possible that temporary files ? like: /var/db/pkg/media-gfx/-MERGING-gimp-1.3.20-r1.portage_lockfile /var/db/pkg/media-gfx/-MERGING-gimp-1.3.20-r1 note the "-" bofore the name make this kind of trouble. I've removed this file and emerge didn't show this message again.
i got this after installing apache: >>> Safely unmerging already-installed instance... flag-o-matic !!! Invalid db entry: /var/db/pkg/net-www/apache-2.0.47.portage_lockfile
sorry ignore comment #8 should have pasted: >>> Done. preinst flag-o-matic prerm flag-o-matic !!! Invalid db entry: /var/db/pkg/net-www/apache-2.0.47.portage_lockfile postrm flag-o-matic !!! Invalid db entry: /var/db/pkg/net-www/apache-2.0.47.portage_lockfile postinst flag-o-matic
ignore comment #8 and #9 ... rajiv is using an older ver of portage and that bug has been fixed
Me too... Portage 2.0.49-r16 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4, 2.4.20-gentoo-r2) ================================================================= System uname: 2.4.20-gentoo-r2 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.4.2.8 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline tetex bonobo svga tcltk java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis qt motif opengl dga gtk gtk2 -kde -arts -gnome xface"
Might not be directly related, but I'm also getting errors like this during unmerging: !!! Invalid db entry: /var/db/pkg/media-sound/ogmtools-1.0.2.portage_lockfile
It really seems that stale lockfiles causes this (and other) problems with portage. Take a look at http://bugs.gentoo.org/show_bug.cgi?id=31901#c7 , comment #7 by myself. Re-emerging the packages (or removing the lockfiles) solves also this problem.
Adding note about following messages appearing (couldn't find match ...): !!! Couldn't find match for media-video/mplayer >>> clean: No packages selected for removal. !!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd !!! Couldn't find match for media-libs/libsndfile !!! Couldn't find match for media-libs/libdv
same problem here: I have a file -MERGING-dvacm4-0.3.4.portage_lockfile trying to rm or even ls *.portage_lockfile it gives: root@research dev-libs # ls *.portage_lockfile ls: invalid option -- M Try `ls --help' for more information. Could this be what is causing this? Pieter
the filename has shell metacharacters -------------------------------- The classic case is a filename starting with '-'. You can try referring to the file as ./-foo, or escape the metacharacter with a \, or use the '-' or '--' flag in the rm command (use man rm to see which is installed on your system), which forces rm to take whatever follows as the name of a file to be removed. If none of these work then your best bet is to avoid trying to name the file yourself. Use rm -ri . to make Unix find the file for you, and with great care say 'y' to the file you want removed, and 'n' to all the others. A less dangerous method is to refer to the file by its inode number, which is its real name as far as Unix is concerned anyway. Use ls -i to find out the inode number, and then use find . -inum inode -ok rm '{}' \;. The advantage of this method is that it also allows you to rename the file if you actually want to keep it, but have been unable to access it because of the funny characters. To rename the file, use find . -inum inode -ok mv '{}' new-file-name \;. If you don't want the -ok safety check, use -exec instead.
I made the errors go away by: 1. rm -rf /var/db/pkg/sys-fs/devfsd-1.3.25-r3/ 2. /usr/lib/portage/bin/./fix-db.py 3. emerge devfsd
The solution above worked for me, too. Also, fix-db.py wanted me to delete file /var/db/pkg/kde-base/-MERGING-kdebase-3.1.4.portage_lockfile
> Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Do you think this could be related to the fact that "*sys-fs/devfsd" is exactly the very last line of the "packages" file in portage profile? I'm thinking of a not-so-local variable which would have kept this value after an iteration on the content of this file, and which would then be reused somewhere else where it is supposed to be fresh, or something like this. That said, this is just an thought, because in fact I've not been able to find any evidence of such a bug in the code. It is just that I feel this coincidence is suspectfull.
Okay, I've just read today portage changelog, and I guess this means this bug is fixed: 10 Nov 2003; Nicholas Jones <carpaski@gentoo.org> portage.py: <snip> Fixes for '*' being returned as part of a package split. <snip> So forget my previous comment.
*** Bug 33245 has been marked as a duplicate of this bug. ***
In method "cp_all()" of "class vardbapi" variable "y" contains the name of the invalid entry but variable "x" will be printed. The following patch fixes the error: --- portage.py.orig 2003-11-11 21:15:03.000000000 +0100 +++ portage.py 2003-11-11 21:33:20.000000000 +0100 @@ -3334,7 +3334,7 @@ for y in mylist: mysplit=catpkgsplit(y) if not mysplit: - self.invalidentry(self.root+"var/db/pkg/"+x) + self.invalidentry(self.root+"var/db/pkg/"+y) continue mykey=mysplit[0]+"/"+mysplit[1] if not mykey in returnme:
Comment #19 is true. Just try it for your self. Put temporarily an extra line /etc/make.profile/packages and run some command. The devfsd will be replaced by whatever you type there.
Hmm, the patch was correct but now it complains about this line: writemsg(red("INCOMPLETE MERGE:")+match[0]+"\n")
Maybe that line (#3119) in portage.py should be: writemsg(red("INCOMPLETE MERGE:")+mypath+"\n") instead of writemsg(red("INCOMPLETE MERGE:")+match[0]+"\n") After changing that all the errors were gone...
The patch from #22 together with that from #25 worked for me too. In the last, one could also replace the match[0] by match.group(0) or match.group(1). I like the last one, because it returns a cleaner package name. (It could be tuned further to return category+package). So here is my complete patch: --- portage.py.orig 2003-11-27 09:39:15.000000000 +0100 +++ portage.py 2003-11-27 09:34:58.000000000 +0100 @@ -3116,7 +3116,7 @@ def invalidentry(self, mypath): match = re.search(".*/-MERGING-(.*)",mypath) if match: - writemsg(red("INCOMPLETE MERGE:")+match[0]+"\n") + writemsg(red("INCOMPLETE MERGE:")+match.group(1)+"\n") else: if re.search("portage_lockfile$",mypath): writemsg("Lockfile removed: %s" % mypath) @@ -3334,7 +3334,7 @@ for y in mylist: mysplit=catpkgsplit(y) if not mysplit: - self.invalidentry(self.root+"var/db/pkg/"+x) + self.invalidentry(self.root+"var/db/pkg/"+y) continue mykey=mysplit[0]+"/"+mysplit[1] if not mykey in returnme:
I confirm that the patch above fixed this problem for me, on an amd64 box.
*** Bug 35521 has been marked as a duplicate of this bug. ***
#26 fixed it on my box, too.
This is still a problem, and it has now shown its face in stable.
we kknow it's a problem in stable which is why this bug isnt closed however, the fix is in cvs [see InCVS in Keywords], and you can find workarounds on this bug
>>> app-cdr/mp3burn-0.1 merged. >>> Recording app-cdr/mp3burn in "world" favorites file... !!! Couldn't find match for app-cdr/mp3burn >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> Auto-cleaning packages ... INCOMPLETE MERGE:mp3burn-0.1.portage_lockfile INCOMPLETE MERGE:mp3burn-0.1 Annoying...
This is still an issue, i'm on a clean install using devfsd-1.3.25-r3 and portage-2.0.49-r21
Same here on a clean install. the issue is still present
Likewise, clean install with devfsd-1.3.25-r3 and portage-2.0.49-r21. Still experiencing !Invalid db entry: /var/db/pkg/*sys-fs/devfsd errors.
Same here on a clean install.(Made yesterday)
I'm experiencing this problem already for months, then it goes away, sometimes it comes back again... I just had the same problem with emerging psmisc, then nmap (3.48 -> 3.50). Then, after re-emerging psmisc it went unmerging nmap 3.48... [...snip...] >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ]>>> sys-apps/psmisc-21.2-r4 merged. >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ]>>> Auto-cleaning packages ... net-analyzer/nmap selected: 3.48 protected: 3.50 omitted: none >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging net-analyzer/nmap-3.48... No package files given... Grabbing a set. --- !mtime obj /usr/share/nmap/nmap-services --- !mtime obj /usr/share/nmap/nmap-service-probes [...snip...]
This one irritates me! If the fix is in CVS, why hasn't it trickled down and STABLE showing the bug as fixed? This is ludicrous!
closing as 2.0.50 is stable now, if anyone still sees this with 2.0.50 please reopen.
really closing now ;)