cari

Rumah  >  Soal Jawab  >  teks badan

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。

伊谢尔伦伊谢尔伦2777 hari yang lalu715

membalas semua(4)saya akan balas

  • 黄舟

    黄舟2017-04-24 09:11:02

    Apabila menghadapi masalah pada Linux, perkara yang paling penting ialah melihat output ralat dan menggunakan alat terjemahan untuk menterjemah perkataan yang anda tidak fahami, kemudian anda boleh tahu secara kasar di mana masalahnya.
    Sistem telah memberikan peringatan di sini

    apt-get -f install

    Cuba arahan ini dahulu.
    Jika ia masih menggesa bahawa tanggungan hilang, maka kami akan menggantikan apa yang hilang Selepas memasang tanggungan, kami akan melihat jika terdapat sebarang masalah, dan kemudian menetapkan ubat yang betul mengikut masalah. Semoga ini membantu. :)

    balas
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-24 09:11:02

    Ikuti gesaan dan pasang pakej bergantung

    apt-get libaio1
    apt-get apparmor

    Tunggu

    balas
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-24 09:11:02

    uname -r Semak status kernel dan kemudian pasang kebergantungan yang sepadan

    balas
    0
  • 天蓬老师

    天蓬老师2017-04-24 09:11:02

    Banyak pakej bergantung tidak dipasang. Ikut gesaan untuk memasang setiap pakej sendiri

    balas
    0
  • Batalbalas