Now that everything is going on again, I'll take one second to let you know that your locales still look wrong. That's probably due to not having configured /etc/locale.gen correctly. For example, this output shows that you have set en_US@UTF-8, but that locale can't be found.
Code:
>>> Unpacking Python-2.7.5.tar.xz to /var/tmp/portage/dev-lang/python-2.7.5-r3/work
>>> Unpacking python-gentoo-patches-2.7.5-0.tar.xz to /var/tmp/portage/dev-lang/python-2.7.5-r3/work
>>> Source unpacked in /var/tmp/portage/dev-lang/python-2.7.5-r3/work
>>> Preparing source in /var/tmp/portage/dev-lang/python-2.7.5-r3/work/Python-2.7.5 ...
/var/tmp/portage/dev-lang/python-2.7.5-r3/temp/environment: line 1827: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
/var/tmp/portage/dev-lang/python-2.7.5-r3/temp/environment: line 1827: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8)
This was happening before as well, in linux-headers.
Code:
>>> Unpacking source...
>>> Unpacking gentoo-headers-base-3.10.tar.xz to /var/tmp/portage/sys-kernel/linux-headers-3.10/work
>>> Unpacking gentoo-headers-3.10-1.tar.xz to /var/tmp/portage/sys-kernel/linux-headers-3.10/work
>>> Source unpacked in /var/tmp/portage/sys-kernel/linux-headers-3.10/work
>>> Preparing source in /var/tmp/portage/sys-kernel/linux-headers-3.10/work/gentoo-headers-base-3.10 ...
/var/tmp/portage/sys-kernel/linux-headers-3.10/temp/environment: line 1226: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
/var/tmp/portage/sys-kernel/linux-headers-3.10/temp/environment: line 1226: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8)
You should check your /etc/locale.gen. Mots of the lines there are comments. You need to look at the lines that are NOT STARTING with a '#'. For example, I have these:
Code:
en_US.UTF-8 UTF-8
es_ES.UTF-8 UTF-8
Add, remove, or adjust to your likings, and be sure to run this after that:
That should (re)generate your locales. Then, use eselect to check that the selected locale is one of those you set in /etc/locale.gen.
Code:
$ eselect locale list
$ eselect locale set <x>
After that, to reload the settings in the current set just use:
Code:
$ source /etc/profile
If you have many shells open (in a screen session, in VTs, xterms or wherever) you will need to run this command in all of them to make sure the locale settings are updated accordingly. Or just use a famous method often used in another OS and... reboot
Now, the portage errors about locales should have gone.