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

发布于 2022-09-02 14:22:56 字数 2455 浏览 25 评论 0

今天打算把 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。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

吹泡泡o 2022-09-09 14:22:56

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

apt-get -f install

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

白色秋天 2022-09-09 14:22:56

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

apt-get libaio1
apt-get apparmor

等等

我不在是我 2022-09-09 14:22:56

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

剪不断理还乱 2022-09-09 14:22:56

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文