我正在尝试在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).
答案 0 :(得分:0)
单独运行 apt-get -f install 并修复了问题。我想念 -f install ,并认为我需要用它来运行它。最终更新了所有内容,甚至安装了我试图安装的其他软件包。
感谢您的帮助。