php5-cliアップデートを完了できません

php5-cliアップデートを完了できません

実行後、次のエラーが発生しますsudo apt-get upgrade

Setting up php5-cli (5.5.9+dfsg-1ubuntu4.6) ...
ucfr: Attempt from package php5-cli  to take /etc/php5/cli/php.ini away from package php5-fpm
ucfr: Aborting.
dpkg: error processing package php5-cli (--configure):
 subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of php5-readline:
 php5-readline depends on php5-cli (= 5.5.9+dfsg-1ubuntu4.6); however:
  Package php5-cli is not configured yet.

dpkg: error processing package php5-readline (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of php-pear:
 php-pear depends on php5-cli; however:
  Package php5-cli is not configured yet.

dpkg: error processing package php-pear (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up php5 (5.5.9+dfsg-1ubuntu4.6) ...
Errors were encountered while processing:
 php5-cli
 php5-readline
 php-pear
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get install -fその後、 とsudo dpkg --configure -aを試みたが、sudo apt-get install --reinstall php5すべて同じエラーが発生しました。

この問題をどのように解決できますか?

ベストアンサー1

/etc/php5/cli/php.iniこの問題を解決するには、を指すシンボリックリンクを削除する必要がありました../fpm/php.ini

その後、すべてが期待どおりに機能します。

解決策が見つかりましたここ

おすすめ記事