Azure上に立てたUbuntu(VM)でPHPを動かしています。
ここでcURLが使えるようにしたいのでapt-getでインストールしようとしたのですが
cURLが有効になりません。
環境
Ubuntu:VERSION="17.04 (Zesty Zapus)"
phpinfo():PHP Version 7.0.23-1+ubuntu17.04.1+deb.sury.org+1
試したコマンド1
shell
1sudo apt-get install php-curl
エラー1
shell
1Reading package lists... Done 2Building dependency tree 3Reading state information... Done 4Some packages could not be installed. This may mean that you have 5requested an impossible situation or if you are using the unstable 6distribution that some required packages have not yet been created 7or been moved out of Incoming. 8The following information may help to resolve the situation: 9 10The following packages have unmet dependencies: 11 php-curl : Depends: php7.0-curl but it is not going to be installed 12E: Unable to correct problems, you have held broken packages.
試したコマンド2
shell
1sudo apt-get install php7.0-curl
エラー2
shell
1Reading package lists... Done 2Building dependency tree 3Reading state information... Done 4Some packages could not be installed. This may mean that you have 5requested an impossible situation or if you are using the unstable 6distribution that some required packages have not yet been created 7or been moved out of Incoming. 8The following information may help to resolve the situation: 9 10The following packages have unmet dependencies: 11 php7.0-curl : Depends: php7.0-common (= 7.0.22-0ubuntu0.17.04.1) but 7.0.23-1+ubuntu17.04.1+deb.sury.org+1 is to be installed 12E: Unable to correct problems, you have held broken packages.
ググったところ以下のコマンドが有効そうだったのですが解決しませんでした。
shell
1# sudo apt-get autoclean 2# sudo apt-get clean all 3# sudo apt-get update
エラー2に書かれている
shell
1php7.0-curl : Depends: php7.0-common (= 7.0.22-0ubuntu0.17.04.1) but 7.0.23-1+ubuntu17.04.1+deb.sury.org+1 is to be installed
が重要のように思えるのですが、内容が理解できず・・・。
ご教授いただけますと幸いです。
どうぞよろしくお願い致します。

回答1件
あなたの回答
tips
プレビュー