OK so you run Gentoo... You've been running using as a Desktop OS for a few years... Your Portage configuration files are a jumbled mess. This simple BASH/Awk script will sort you out - fast! YMMV and this script may eat all your kittens.