Upgrading Gentoo 2007.0 to 10.0

So I left all these servers running gentoo a couple years ago. Now, after all this time (and uptime!), I want to install something.

Error:

  1.  
  2. emerge -av portage
  3.  
  4. These are the packages that would be merged, in order:
  5.  
  6. Calculating dependencies |
  7. !!! All ebuilds that could satisfy ">=dev-lang/python-2.5" have been masked.
  8. !!! One of the following masked packages is required to complete your request:
  9. - dev-lang/python-2.5.4-r3 (masked by: required EAPI -1, supported EAPI 0)
  10. - dev-lang/python-2.6.2-r1 (masked by: required EAPI -2, supported EAPI 0)
  11. - dev-lang/python-2.6.2-r2 (masked by: required EAPI -2, supported EAPI 0)
  12. - dev-lang/python-2.6.4 (masked by: required EAPI -2, supported EAPI 0)
  13. - dev-lang/python-3.1.1-r1 (masked by: required EAPI -2, supported EAPI 0)
  14. - dev-lang/python-2.6.3 (masked by: required EAPI -2, supported EAPI 0)
  15.  
  16. For more information, see MASKED PACKAGES section in the emerge man page or
  17. refer to the Gentoo Handbook.
  18. (dependency required by "sys-apps/portage-2.1.6.13" [ebuild])
  19.  

Hm. Yeah, I'm way out of date.

Solution: I found other sites that talked about forcing a python/portage install but I that sounded a little harsh. Instead, I found a snapshot of portage-2008.0 and replaced my /usr/portage with the contents of that.

  1.  
  2. cd /usr
  3. rm -rf portage # or mv portage xxx
  4. wget http://gentoo.mirrors.tds.net/gentoo/releases/snapshots/2008.0/portage-2008.0.tar.bz2
  5. tar -xjpf portage-2008.0.tar.bz2
  6. cd /etc/
  7. rm make.profile
  8. ln -s /usr/portage/profiles/default/linux/x86/2008.0 make.profile
  9. emerge -av portage
  10.  

That took me to portage-2.1.4.4.

From there, I can now go back to current 10.0 portage and emerge -av portage to get up to the current portage state.

Yeah, I really didn't want to do a re-install.

7 Responses to “Upgrading Gentoo 2007.0 to 10.0”


  1. user007

    useful
    Thanks a lot.

  2. Bifferbodkins

    Saved me from a world of pain. Had exactly this problem. Thanks

  3. Tjeerd

    Had the same issue and this resolved it. I have a relatively ‘old’ version of Gentoo running (september 2007) and didn’t do any upgrade in the meanwhile and got this error.

    Thanks for the article.

  4. alex

    thanks a lot

    i really thought i have to do it all over againand it’s only dns web server mail server and stuff

  5. Dennis

    Glad it’s coming in handy!

  6. [OvO]wl

    One slight problem. There’s a load of archectures out there with this problem and without 10.0 / 10.1 so for these users it’s going to be impossible to update in anyway shape or form, since with the latest available is 2008.

    In other words gentoo now only supports x86.

    This will be the point in time when gentoo and I part company.

  7. edoceo

    Another option is to take binary packages from newer systems, fetch all to the necessary system and then manually emerge each tbz2 file – bit of a pain. But, works fast and on multiple arch. HTH



css.php