无法在Ubuntu 14.04上安装cURL和PHP的cURL库

I'm trying to install curl and php5-curl on a Ubuntu 14.04 server, but I'm getting the following error:

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).

Ran apt-get -f install by itself and it fixed the problems. I miss understood the -f install and thought I needed to run it with the package with it. It wound up updating everything and even installed other packages I was trying to install.

Thanks for the help.