sys-apps/portage-2.1.3.19 errors with the following traceback when I try to unmerge File-Temp-0.16. mustang ~ # emerge -C perl-core/File-Temp-0.16 perl-core/File-Temp selected: 0.16 protected: none omitted: 0.18 >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. >>> Waiting 1 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 1 >>> Unmerging perl-core/File-Temp-0.16... Traceback (most recent call last): File "/usr/bin/emerge", line 6518, in ? retval = emerge_main() File "/usr/bin/emerge", line 6498, in emerge_main mtimedb["ldpath"]): File "/usr/bin/emerge", line 4344, in unmerge vartree=vartree, ldpath_mtimes=ldpath_mtimes) File "/usr/lib/portage/pym/portage.py", line 4552, in unmerge ldpath_mtimes=ldpath_mtimes) File "/usr/lib/portage/pym/portage.py", line 7701, in unmerge self.settings, 0, 0, self.vartree.dbapi) File "/usr/lib/portage/pym/portage.py", line 3545, in doebuild_environment mysettings.setcpv(mycpv, use_cache=use_cache, mydb=mydbapi) File "/usr/lib/portage/pym/portage.py", line 1794, in setcpv slot, iuse = mydb.aux_get(self.mycpv, ["SLOT", "IUSE"]) File "/usr/lib/portage/pym/portage.py", line 5971, in aux_get raise KeyError(mycpv) KeyError: 'dev-perl/File-Temp-0.16' I have some how managed to get two versions of File-Temp installed, my guess, when 0.18 was emerged, it failed on unmerging 0.16. mustang ~ # emerge --info Portage 2.1.3.19 (default-linux/x86/2006.1/server, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-hardened-r5 i686) ================================================================= System uname: 2.6.14-hardened-r5 i686 Intel(R) XEON(TM) CPU 1.80GHz Timestamp of tree: Tue, 20 Nov 2007 19:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.0-r2, 2.1.2-r1 dev-lang/python: 2.3.5, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.3 sys-apps/baselayout: 1.11.13-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.12-r6 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe" DISTDIR="/common/admin/linux/gentoo/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage-cis /usr/local/portage/safesync" SYNC="rsync://portage.cis.ksu.edu/portage-current" USE="accessibility aim berkdb bidi bitmap-fonts canna cdr cjk cli cracklib crypt cscope cups doc dri dvd emacs f77 fftw fortran freewnn gb gd gdbm gif gtkhtml guile iconv icq imagemagick imap imlib ipv6 isdnlog jabber java jikes jpeg junit kerberos krb4 ldap leim libgda libwww maildir mailwrapper mcal midi mpi msn mudflap mule mysql ncurses nls nptl nptlonly objc odbc openmp oscar oss pam pcre perl php plotutils png ppds pppd python readline reflection rpc samba sasl session snmp spell spl ssl tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb wmf x86 xml xml2 xorg yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
This should fix it: echo perl-core > /var/db/pkg/perl-core/File-Temp-0.16/CATEGORY touch /var/db/pkg/perl-core/File-Temp-0.16 emerge -C perl-core/File-Temp-0.16 This issue is fixed in portage-2.1.4 (along with other category bugs such as bug 164540 and bug 201082).
That did it, thanks!