2016-06-08 59 views
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). 
+0

你運行過apt-get -f install嗎?那是什麼結果? –

+0

你可以試試'sudo apt-get install curl php5-curl'嗎? –

+0

我可能是完全錯誤的,但我不認爲libcurl3是必要的,除非你計劃用Curl編寫一些C/Cpp代碼。只是一個fyi。就我所知,我從不需要在任何使用PHP設置的虛擬機上安裝libCurl。 – ajm113

回答

0

APT-得到-f自己安裝,它解決了問題。我想了解-f安裝,並認爲我需要運行與它的包。它徹底更新了一切,甚至安裝了其他我正在嘗試安裝的軟件包。

感謝您的幫助。