Whenevr I try to emerge anything, I get the following error: cerberus root # emerge portage !!! 'str' object has no attribute 'insert' !!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does !!! not then please report this to bugs.gentoo.org and, if possible, a dev !!! on #gentoo (irc.freenode.org) emerge sync gives the same error message however it then works properly. I have tried the above advice several times to no avail. I have also deleted and recreated the link from /etc/make.profile -> /usr/portage/profiles/default-linux/x86/2004.0 (I also tried making the link point to 2004.1 and 2004.3, also to no avail). This machine was working fine until a short time ago, when I was doing some routine maintenance (updating packages mostly). According to emerge.log, the most recent packages I installed were: net-tools-1.60-r9, expat-1.95.7, python-2.3.4, and shadow-4.0.4.1-r4. (All done on Oct 19). Reproducible: Always Steps to Reproduce: 1. I attempt to do an emerge on anything other than "emerge sync" Actual Results: cerberus root # emerge portage !!! 'str' object has no attribute 'insert' !!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does !!! not then please report this to bugs.gentoo.org and, if possible, a dev !!! on #gentoo (irc.freenode.org) Expected Results: the normal emerge output can't do emerge info. the machine is an IDS machine running snort, apache, mysql, and acid (a web based front end for the IDS alerts).
I am seeing the same problem when trying to do an install from stage1-x86-selinux-pie-ssp-2004.2.tar.gz. 'emerge sync' works but the /usr/portage/scripts/bootstrap.sh just repeats this error several times and does not install (or download) any packages.
*** This bug has been marked as a duplicate of 63400 ***