私は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フレーバーを使っていると思い、ergeコマンドが欠落していることがわかり、手動でPortageを設定してみました。
私はある種のCentOSを使用していることがわかったので、yumを使用する必要があります。私はPortage TarballをダウンロードしてCentOSスタイルで抽出しました。これはなぜeselectが存在しないのかを説明し、これはなぜemergeとeselectコマンドの質問の間に奇妙な鶏と卵の状況が発生するのかを説明します。
Andy Daltonの回答に基づいて、昨日は/usr/portage/profiles/の下のファイルに直接make.profileシンボリックリンクを手動で作成しようとしていましたが、どのファイルにリンクするのかを把握するのが困難です。
とにかく、私はyumを動作させ、portageも動作させると何が起こるのかよくわかりません。これにより、一種のパッケージ管理の競合の問題が発生する可能性があるため、試してみたいかどうかわかりません。
ベストアンサー1
通常、インストール中にeselect profile list
構成ファイルを表示してeselect profile set
1つを選択します。現在はなぜないのかわかりません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
うまく解決できることを願っています。