今天打算把 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。
When you encounter a problem on Linux, the most important thing is to look at the error output and use a translation tool to translate the words you don’t understand. Then you can roughly know where the problem is.
The system has given a reminder here
Try this command first.
If it still prompts that dependencies are missing, then we will make up for what is missing. After installing the dependencies, we will see if there are any problems, and then prescribe the right medicine according to the problem. Hope this helps. :)
Follow the prompts and install dependent packages
apt-get libaio1
apt-get apparmor
Wait
uname -r Check the kernel status and then install the corresponding dependencies
Many dependent packages are not installed. Follow the prompts to install each one yourself