Chinaunix首页 | 论坛 | 博客
  • 博客访问: 237952
  • 博文数量: 47
  • 博客积分: 1229
  • 博客等级: 中尉
  • 技术积分: 568
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-20 10:06
文章分类

全部博文(47)

文章存档

2014年(1)

2013年(7)

2012年(1)

2011年(38)

分类: LINUX

2011-04-28 23:59:11

photonvps 提供了gentoo-2008这种史前的发行版。但基本上没法用,因为它使用的是portage-2.1.4.4, 只支持EAPI-1, emerge 某个软件包的时候会提示需要EAPI-2 以上的支持, 需要更新portage.
那就更新一下portage吧.

$ emerge --sync
$ emerge -av portage
Calculating dependencies \
!!! All ebuilds that could satisfy ">=sys-devel/libtool-2.2.6b" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/libtool-9999 (masked by: package.mask, missing keyword)
- sys-devel/libtool-2.4-r1 (masked by: EAPI 2)
- sys-devel/libtool-2.2.10 (masked by: EAPI 2)

The current version of portage supports EAPI '1'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "dev-lang/python-2.5.4-r4" [ebuild])


这样似乎就没办法更新portage了。循环依赖了...

解决方案
     分两阶段:
第一阶段,更新portage至EAPI-2,
• # emerge -avq --nodeps portage # portage-2.1.6.13 EAPI=2
• # emerge --sync
第二阶段,更新portage至最新:
• # emerge -avq =dev-lang/python-2.6.5-r3
• # emerge -avq portage     # newest portage
• # emerge --sync
• # emerge -avq python # python-2.7

这时整个portage已经是最新的了。可以随意的更新软件包了。但内核是个例外

# uname -a
Linux gentoo.pcsmarthosting.com 2.6.18-164.11.1.el5xen #1 SMP Wed Jan 20 08:06:04 EST 2010 x86_64 Intel(R) Xeon(R) CPU E5520 @ 2.27GHz GenuineIntel GNU/Linux
由于不了解xen 的配置,不知道如何编译能正确启动的内核。只要选择不更新。但有些软件是依赖新版的内核的。
 将收下软件包添加至 /etc/portage/package.mask  后, # emerge -avquDN world
>sys-fs/udev-141-r1
>=sys-devel/make-3.82
>net-firewall/iptables-1.4.3.2
>sys-kernel/linux-headers-2.6.27-r2

 结论
这样就拥有了一个最新的gentoo系统了。
阅读(3004) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~