
私のサーバーにphpmyadminをインストールしようとしています。残念ながら、次のエラーが発生します。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
phpmyadmin : Depends: php5-mcrypt but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
php5-mcryptをインストールしようとしたときの出力は次のとおりです。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-mcrypt : Depends: phpapi-20100525
Depends: php5-common (= 5.4.17-5+debphp.org~precise+1) but 5.5.0-1ubuntu2~raring2~precise1 is to be installed
E: Unable to correct problems, you have held broken packages.
以下の指示に従って(一時的に)試しました。これサイトにありますが、実際にそのサーバーでは何も壊すことはできません。私の質問にはいくつかの部分があります。
まず、Depends:
この情報は実際に何を意味しますか?待つというメッセージが表示されたら、= 5.4.17
そのバージョンが必要ですか?
第二に、何か問題が発生したときに以前の状態に「ロールバック」できることをどのように保証できますか?これはどのように可能ですか?万が一に備えてパッケージphp5
とapache2
構成がありますが、hold
構成ファイルも保存しなければならないと思いました。そうですか?バックアップする必要がある特定の設定ファイルはありますか?
最後に、この問題をどのように解決できますか? phpmyadminをインストールするにはどのような(セキュリティ)手順を実行する必要がありますか?
修正する:
1つのコマンドラインしか使用できないことに注意してください。
出力はapt-cache policy php5-common
次のとおりです
php5-common:
Installed: 5.5.0-1ubuntu2~raring2~precise1
Candidate: 5.5.0-1ubuntu2~raring2~precise1
Version table:
*** 5.5.0-1ubuntu2~raring2~precise1 0
500 http://ppa.launchpad.net/zanfur/php5.5/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
5.4.17-5+debphp.org~precise+1 0
500 http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu/ precise/main amd64 Packages
5.3.10-1ubuntu3.7 0
500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
5.3.10-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
答え1
問題は、PHPに2つの別々のPPAが含まれていることです。 「zanfur」のPPAを使用してPHP5をインストールしましたが、そのphp-mcrypt
バージョンは「ondrej」のバージョンより前のバージョンです。
ondrejのPPAを削除する場合は、PHPがインストールされているリポジトリからバージョンを取得する必要があります(正しいバージョンではないようです)。