首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >获得错误Ubuntu14.04未满足的依赖关系。尝试‘apt-获取-f安装’没有包

获得错误Ubuntu14.04未满足的依赖关系。尝试‘apt-获取-f安装’没有包
EN

Stack Overflow用户
提问于 2014-09-08 14:47:43
回答 1查看 4.3K关注 0票数 2

我试图在拥有Ubuntu14.04的AmazonUbuntu14.04的EC2实例上安装基本的软件包。它没有一些基本的软件包,在普通Ubuntu桌面edition.Every中,我尝试用命令sudo apt-get -f install build-essential安装任何软件包,我也会遇到同样的依赖错误。我试图安装我的应用程序所需的perl模块。我可能会通过尝试一些命令(如clean )来扰乱包管理器。为什么构建要点需要perl?我的包存储库被破坏了。我可以从新的或其他的解决方案开始吗?提前谢谢。

误差

代码语言:javascript
复制
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).
EN

回答 1

Stack Overflow用户

发布于 2014-12-03 16:23:32

执行

代码语言:javascript
复制
sudo apt-get update

在安装之前,应该会有所帮助。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25727021

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档