关于gentoo升级内核后报EAPI问题

关于gentoo升级内核后报EAPI问题

今天,由于重新安装了系统以又重新编译了内核, 在用emerge安装软件的时候总是报出错误

有很多的packages都被mask掉了。

#emerge alsa-utils

Calculating dependencies /

!!! All ebuilds that could satisfy "default/linux/x86/10.0" have been masked.
!!! One of the following masked packages is required to complete your request:
- default/linux/x86/10.0 (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.

经过Google和查看emerge的man文档,发现需要更新一下配置

#eselect profile list

Available profile symlink targets:

    [1] default/linux/x86/10.0

    [2] default/linux/x86/10.0/desktop

    [3] default/linux/x86/10.0/developer

    [4] default/linux/x86/10.0/server

....

然后运行:

#eselect profile set 1

之后发现,第一个警告没有了, 但是还是有很多包被EPI1mask掉了。emerge --sync也没用。又GOOGLE了一下发现升级EAPI的方法:

原贴如下:

“gentoo通过genkernel方式升级内核后,再emerge software时发现报如下错误:

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

解决方法:升级porgage

# emerge portage”

我试了一下, 发现果然可以。

现在再安装alsa-utils时就不会出现很多警告了。

#emerge alsa-utils

你可能感兴趣的:(Google,文档,dependencies,symlink)