On many of my identical Gentoo Hardened servers, I recently upgraded portage to 2.1.3.19 and it started crashing. Reproducible: Always Steps to Reproduce: 1. upgrade to >sys-apps/portage-2.1.2.12 2. run emerge Actual Results: Traceback (most recent call last): File "/usr/bin/emerge", line 6518, in ? retval = emerge_main() File "/usr/bin/emerge", line 6230, in emerge_main if portage._global_updates(trees, mtimedb["updates"]): AttributeError: 'module' object has no attribute '_global_updates' Expected Results: It should have displayed usage information or perform the actions required by the parameters instead of crashing. It is not possible to run `emerge --info` when the broken portage is installed, so I list here the info available when running it with portage 2.1.2.12 Portage 2.1.2 (hardened/amd64, gcc-3.4.6, glibc-2.5-r3, 2.6.20-hardened-r5 x86_64) ================================================================= System uname: 2.6.20-hardened-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+ Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 21 Dec 2007 18:00:04 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /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="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.UTF-8" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow acpi amd64 apache2 berkdb cracklib crypt fam hardened justify logrotate midi nls nptl nptlonly pam pic readline samba sse sse2 ssl suhosin tcpd unicode urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic 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, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
If you have issues w/ >=portage-2.1.3.19 then reopen this bug; we won't fix non-existant versions.
Yes, I do have issues with >=sys-apps/portage-2.1.3.19 -- that is what the bug is about.
It seems that you have a stale portage module in PYTHONPATH. When portage-2.1.2 is installed, it updates PYTHONPATH in /etc/env.d, but you won't get the updated value in your shell until you source /etc/profile. To identify the stale portage module, do this: ls -d /usr/lib*/portage On a normal system, you should only get one result for that. It's a good idea to remove the stale one that is triggering your problem. The one that you want to keep should be in new PYTHONPATH that's listed inside /etc/env.d/05portage.envd. Sometimes people who have this problem also have incorrect /lib* amd/or /usr/lib* symlinks. The correct layout for an amd64 profile is /lib -> lib64 and /usr/lib -> lib64.
This won't be an issue once everyone has >=portage-2.1.2 (in the 2007.1 stages) so I guess we can neglect it.
*** Bug 206910 has been marked as a duplicate of this bug. ***