我试图在拥有Ubuntu14.04的AmazonUbuntu14.04的EC2实例上安装基本的软件包。它没有一些基本的软件包,在普通Ubuntu桌面edition.Every中,我尝试用命令sudo apt-get -f install build-essential安装任何软件包,我也会遇到同样的依赖错误。我试图安装我的应用程序所需的perl模块。我可能会通过尝试一些命令(如clean )来扰乱包管理器。为什么构建要点需要perl?我的包存储库被破坏了。我可以从新的或其他的解决方案开始吗?提前谢谢。
误差
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: gcc (>= 4:4.4.3) but it is not going to be installed
Depends: g++ (>= 4:4.4.3) but it is not going to be installed
Depends: make but it is not going to be installed
Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
libapparmor-perl : Depends: perl-base (>= 5.18.2-2ubuntu1) but 5.14.2-21build1 is to be installed
Depends: perlapi-5.18.2
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-21build1 is to be installed
PreDepends: perlapi-5.18.1
liblwp-protocol-https-perl : Depends: libio-socket-ssl-perl (>= 1.54) but 1.31-1 is to be installed
Depends: libnet-http-perl but it is not going to be installed
Depends: libwww-perl (>= 6.05-2) but it is not going 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-21build1 is to be installed
Depends: perlapi-5.18.1
libtext-iconv-perl : Depends: perl-base (>= 5.18.1-4) but 5.14.2-21build1 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) but 5.14.2-21build1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).发布于 2014-12-03 16:23:32
执行
sudo apt-get update在安装之前,应该会有所帮助。
https://stackoverflow.com/questions/25727021
复制相似问题