【问题标题】:Cannot install cURL and PHP's cURL library on Ubuntu 14.04无法在 Ubuntu 14.04 上安装 cURL 和 PHP 的 cURL 库
【发布时间】:2016-06-10 04:48:49
【问题描述】:

我正在尝试在 Ubuntu 14.04 服务器上安装 curl 和 php5-curl,但出现以下错误:

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 代码。仅供参考。据我所知,我从来不需要在使用 PHP 设置的任何 VM 上安装 libCurl。
  • ChrisForrence 我在运行 apt-get -f install 时遇到同样的错误。
  • id 做了 dpkg -i perl-base_5.18.2-2_i386.deb 并得到(正在读取数据库...当前安装的 123753 个文件和目录。)准备解压 perl-base_5.18.2-2_i386.deb ... 在 (5.14.2-6ubuntu2.5) 上解压 perl-base (5.18.2-2) ... 设置 perl-base (5.18.2-2) ... 处理 man-db (2.6) 的触发器.7.1-1ubuntu1) ...

标签: php curl ubuntu-14.04


【解决方案1】:

自行运行 apt-get -f install 并解决了问题。我错过了理解 -f install 并认为我需要与它一起运行它的包。它最终更新了所有内容,甚至安装了我试图安装的其他软件包。

感谢您的帮助。

【讨论】:

    猜你喜欢
    • 2018-09-18
    • 2012-03-31
    • 2014-12-11
    • 2021-09-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多