0
我試圖Ubuntu的14.04服務器上安裝捲曲和PHP5捲曲,但我發現了以下錯誤:不能安裝在Ubuntu捲曲和PHP的cURL庫14.04
sudo apt-get install libcurl3 php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl3 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libapparmor-perl : Depends: perl-base (>= 5.18.2-2ubuntu1) but 5.14.2-6ubuntu2.5 is to be installed
Depends: perlapi-5.18.2
libcgi-fast-perl : Depends: libfcgi-perl but it is not going to be installed
libdbd-mysql-perl : Depends: perlapi-5.18.1
libdbi-perl : Depends: perlapi-5.18.1
liblocale-gettext-perl : PreDepends: perl-base (>= 5.18.1-4) but 5.14.2-6ubuntu2.5 is to be installed
PreDepends: perlapi-5.18.1
libperl5.18 : Depends: perl-base (= 5.18.2-2ubuntu1.1) but 5.14.2-6ubuntu2.5 is to be installed
libsub-name-perl : Depends: perlapi-5.18.1
libterm-readkey-perl : Depends: perlapi-5.18.1
libtext-charwidth-perl : Depends: perl-base (>= 5.18.1-4) but 5.14.2-6ubuntu2.5 is to be installed
Depends: perlapi-5.18.1
libtext-iconv-perl : Depends: perl-base (>= 5.18.1-4) but 5.14.2-6ubuntu2.5 is to be installed
Depends: perlapi-5.18.1
libtext-soundex-perl : Depends: perlapi-5.18.1
perl : Depends: perl-base (= 5.18.2-2ubuntu1.1) but 5.14.2-6ubuntu2.5 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
你運行過apt-get -f install嗎?那是什麼結果? –
你可以試試'sudo apt-get install curl php5-curl'嗎? –
我可能是完全錯誤的,但我不認爲libcurl3是必要的,除非你計劃用Curl編寫一些C/Cpp代碼。只是一個fyi。就我所知,我從不需要在任何使用PHP設置的虛擬機上安裝libCurl。 – ajm113