我正在使用Gentoo (实际上是第一次)。我正在尝试建立包管理系统。我发现我必须设置portage (emerge)。在这样做时,我不得不运行emerge --sync。这发出了这样的信息:
Use eselect news read to view items.我试过了,但我得到了:zsh: command not found: eselect
我发现了一个包:app-admin/eselect,所以我尝试了:
emerge --ask app-admin/select然后我得到:
!!! /etc/portage/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.更新:
结果我错了。我以为我是在使用gentoo的风格,所以我尝试手动设置portage,因为显示命令原来是缺失的。
结果,我在CentOS的味道中工作,所以我需要使用yum。我下载并取消了一个带有CentOS味道的传送带,这就解释了为什么eselect不存在,同时也解释了为什么我在出现命令和选择命令之间出现了类似于鸡蛋的奇怪问题。
根据Andy的回答,我昨天考虑自己手动创建make.profile符号链接,到/usr/portage/profile/下的某个文件,但是我很难弄清楚要链接到哪个文件。
不管怎么说,我让百胜工作,我不知道如果我进去让传送带工作的话会发生什么。这可能会导致某种类型的包管理冲突问题,所以我不确定我是否愿意尝试这一点。
发布于 2020-05-16 03:01:35
通常,在安装过程中,您会使用eselect profile list查看配置文件,使用eselect profile set来选择配置文件。我不知道为什么你现在没有eselect --通常是/usr/bin/eselect,但是如果你不这么做,你可以试着做eselect profile set会做的事情。
我的个人资料位于这里:
$ find /usr/portage/profiles/default/linux/amd64/17.1 -type d
/usr/portage/profiles/default/linux/amd64/17.1
/usr/portage/profiles/default/linux/amd64/17.1/systemd
/usr/portage/profiles/default/linux/amd64/17.1/selinux
/usr/portage/profiles/default/linux/amd64/17.1/desktop
/usr/portage/profiles/default/linux/amd64/17.1/desktop/gnome
/usr/portage/profiles/default/linux/amd64/17.1/desktop/gnome/systemd
/usr/portage/profiles/default/linux/amd64/17.1/desktop/plasma
/usr/portage/profiles/default/linux/amd64/17.1/desktop/plasma/systemd
/usr/portage/profiles/default/linux/amd64/17.1/no-multilib
/usr/portage/profiles/default/linux/amd64/17.1/no-multilib/hardened
/usr/portage/profiles/default/linux/amd64/17.1/no-multilib/hardened/selinux
/usr/portage/profiles/default/linux/amd64/17.1/developer
/usr/portage/profiles/default/linux/amd64/17.1/hardened
/usr/portage/profiles/default/linux/amd64/17.1/hardened/selinux您必须选择要使用的配置文件;我使用的是default/linux/amd64/17.1/systemd。一定要阅读手册,明白你在这里选的是什么。
如果我想手动选择该配置文件,那么我会这样做:
# cd /etc/portage
# ln -s ../../usr/portage/profiles/default/linux/amd64/17.1/systemd make.profile如果您已经这样做了,那么希望emerge --ask eselect会成功。
https://unix.stackexchange.com/questions/586946
复制相似问题