首页 > ubuntu下apt-get install 无法正常工作

ubuntu下apt-get install 无法正常工作

今天打算把 ubuntu 14.04 的mysql5.5升级到 5.6,接着就按照网上的教程..
先去mysql官网现在,然后再在ubuntu下安装,但是途中真的很麻烦。所以就想为什么不用apt-get来自动化安装呢?

接着搞这搞那,弄着弄着就坏了。原谅小白=。=

无论apt-get install 任何内容,都会出现如下错误:

比如我输入apt-get install nodejs
然后就会出现

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:
 mysql-community-client:amd64 : Depends: libaio1:amd64 (>= 0.3.93) but it is not going to be installed
                                Depends: libc6:amd64 (>= 2.17) but it is not going to be installed
                                Depends: libgcc1:amd64 (>= 1:4.1.1) but it is not going to be installed
                                Depends: libncurses5:amd64 (>= 5.5-5~) but it is not going to be installed
                                Depends: libnuma1:amd64 but it is not going to be installed
                                Depends: libstdc++6:amd64 (>= 4.6) but it is not going to be installed
                                Depends: libtinfo5:amd64 but it is not going to be installed
                                Depends: zlib1g:amd64 (>= 1:1.2.0) but it is not going to be installed
 mysql-community-server:amd64 : Depends: apparmor:amd64 but it is not going to be installed
                                Depends: perl:amd64 but it is not going to be installed
                                Depends: psmisc:amd64 but it is not going to be installed
                                Depends: libaio1:amd64 (>= 0.3.93) but it is not going to be installed
                                Depends: libc6:amd64 (>= 2.17) but it is not going to be installed
                                Depends: libgcc1:amd64 (>= 1:4.1.1) but it is not going to be installed
                                Depends: libnuma1:amd64 but it is not going to be installed
                                Depends: libstdc++6:amd64 (>= 4.6) but it is not going to be installed
                                Depends: zlib1g:amd64 (>= 1:1.2.0) but it is not going to be installed
 nodejs : Depends: libc-ares2 (>= 1.8.0) but it is not going to be installed
          Depends: libv8-3.14.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我的ubuntu是32位的。我也不知道为什么一直提示AMD64。


很多依赖的包没安装吧,按照提示每个都自己安装一遍吧


uname -r 查看内核情况,然后安装对应的依赖


根据提示信息来,安装依赖的包

apt-get libaio1
apt-get apparmor

等等


Linux上遇见问题,最重要的是看错误输出,把不懂的单词用翻译工具翻译一下,然后你就大概可以知道是哪里的问题。
这里系统已经给了个提示

apt-get -f install

先试试这个命令。
如果还提示缺少依赖,那我们就缺啥补啥,将依赖安装完之后再看看有没有问题,再根据问题对症下药。希望能帮到题主. :)

【热门文章】
【热门文章】