ホームページ  >  に質問  >  本文

Ubuntu apt-get 依赖问题怎么办

sources.list内容

halo@ubuntu:/etc/apt$ cat sources.list
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse

安装 apache 出错

halo@ubuntu:/etc/apt$ sudo apt-get -f install apache2
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:
 apache2 : Depends: apache2-bin (= 2.4.12-2ubuntu2.1) but it is not going to be installed
           Depends: apache2-utils (>= 2.4)
           Depends: apache2-data (= 2.4.12-2ubuntu2.1) but it is not going to be installed
 atom : Depends: git
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
PHPzPHPz2735日前699

全員に返信(4)返信します

  • 黄舟

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

    試してみる

    リーリー

    返事
    0
  • 巴扎黑

    巴扎黑2017-04-24 09:11:37

    インストール前にアップデートしますか?

    返事
    0
  • 怪我咯

    怪我咯2017-04-24 09:11:37

    sources.list が最近変更された場合は、更新してから Apache をインストールしてください

    返事
    0
  • 天蓬老师

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

    オンライン中にこの文を入力してください

    リーリー

    返事
    0
  • キャンセル返事