【发布时间】: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