2017-10-02 3 views
3

PHPの5.6.4-4ubuntu6(CLI)をインストールします(組み込み:2015年4月17日午後3時47分51秒)エラーPHP5-カールのUbuntu Serverの

説明:Ubuntuの14.04.5 LTS リリース:14.04

apt-get install php5-curl 

Read package lists ... Done 
Dependency tree is established. 
Status information is read in .... Done 
Try "apt-get -f install" to correct this: 
The following packages have unfulfilled dependencies: 
  libfontconfig1: Depends on: fontconfig-config (= 2.11.0-0ubuntu4.2) but 2.11.94-0ubuntu2 is to be installed 
  php5-curl: Depends on: libcurl3 (> = 7.18.0) should not be installed 
              Depends on: phpapi-20121212 
              Depends on: php5-common (= 5.5.9 + dfsg-1ubuntu4.22) but 5.6.4 + dfsg-4ubuntu6 should be installed 
E: Unfulfilled dependencies. Try "apt-get -f install" without specifying a package (or specify a solution). 

出力 "須藤はapt-getの共通ソフトウェアの性質をインストール":

Paketlisten werden gelesen... Fertig 
Abhängigkeitsbaum wird aufgebaut. 
Statusinformationen werden eingelesen.... Fertig 
Probieren Sie »apt-get -f install«, um dies zu korrigieren: 
Die folgenden Pakete haben unerfüllte Abhängigkeiten: 
libfontconfig1 : Hängt ab von: fontconfig-config (= 2.11.0-0ubuntu4.2) aber 2.11.94-0ubuntu2 soll installiert werden 
software-properties-common : Hängt ab von: python-apt-common (>= 0.9) soll aber nicht installiert werden 
           Hängt ab von: python3-dbus soll aber nicht installiert werden 
           Hängt ab von: python3-software-properties (= 0.92.37.8) soll aber nicht installiert werden 
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt-get -f install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an). 
+1

「sudo apt-get install php5-curl」を使用してみてください。その後、Apacheサーバー 'sudo service apache2 restart'を再起動します。 –

+0

php5-curlが依存するパッケージを更新する必要があります。 – Neodan

+0

@neodanあなたは私に命令を教えてもらえますか? – HosonoDesign

答えて

0

を次のようにあなたがPHP5カールインストールすることができます3210
sudo add-apt-repository ppa:ondrej/php5 
sudo apt-get update 
sudo apt-get install php5-curl 

成功していない場合は、まず古いPHPパッケージをアンインストールする必要があります。

sudo apt-get remove php5 php5-common php5-mysql php5-xmlrpc php5-cgi php5-curl php5-gd php5-cli php5-fpm php-apc php-pear php5-dev php5-imap php5-mcrypt 
+0

'-bash:add-apt-repository:コマンドが見つかりませんでした。 ' – HosonoDesign

+0

sudo apt-get install python-software-properties –

+0

sudo apt-getインストールpython-software-propertiesが動作しません:/ – HosonoDesign

関連する問題