ubuntu下apt-get install 無法正常運作
伊谢尔伦
伊谢尔伦 2017-04-24 09:09:02
0
4
719

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

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全部回覆(4)
黄舟

Linux上遇見問題,最重要的是看錯誤輸出,把不懂的單字用翻譯工具翻譯一下,然後你就大概可以知道是哪裡的問題。
這裡系統已經給了一個提示

apt-get -f install

先試試這個指令。
如果還提示缺少依賴,那我們就缺啥補啥,將依賴安裝完之後再看看有沒有問題,再根據問題對症下藥。希望能幫到題主. :)

伊谢尔伦

根據提示訊息來,安裝依賴的套件

apt-get libaio1
apt-get apparmor

等等

伊谢尔伦

uname -r 查看核心情況,然後安裝對應的依賴

Peter_Zhu

很多依賴的套件沒安裝吧,按照提示每個都自己安裝一遍

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板