概要
emerge
で何かをインストールしようとした時に,エラーが出てできなかった経験をまとめます.
Syncし忘れ
Syncをし忘れたために古いURLからパッケージをダウンロードしようとして404エラーを出す場合がある.
sudo emerge-webrsync sudo emerge --sync
このどちらかを実行する.
/usr/portage
のパーミッション
/usr/portage
やそれ以下のディレクトリはportageが保有していないといけないようであるが,何故かrootが保有している場合がある.
以下のコマンドで,/usr/portage
やそれ以下のディレクトリすべての保有権をportageに移す.
sudo chown -R portage:portage /usr/portage
/usr/portage
のパーミッションに関しては
Gentoo Forums :: View topic - [Solved] Permission denied while running emerge --sync
Gentoo Forums :: View topic - [SOLVED] rsync: mkstemp (file) permission denied?
を参考にした.