【问题标题】:Facing error while installing Apache2 in Ubuntu 14.04 'has no installation candidate'在 Ubuntu 14.04 中安装 Apache2 时遇到错误“没有安装候选”
【发布时间】:2015-07-26 10:41:38
【问题描述】:

我不知道我做了什么,但我无法在我的 Ubuntu 14.04 中安装 apache2。

当我使用sudo apt-get install apache2 时,我遇到了这个错误。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package apache2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libapache2-mpm-itk:i386 libapache2-mpm-itk

E: Package 'apache2' has no installation candidate

【问题讨论】:

    标签: apache ubuntu apache2 ubuntu-14.04 lamp


    【解决方案1】:

    首先确保您的代理已禁用,因为这有时会导致问题。 然后运行以下命令。

    sudo apt-get update sudo apt-get upgrade sudo apt-get install apache2

    如果这不起作用,您可以随时编译自己的 apache2。教程位于此处:https://www.virgohacks.net/install-apache-2-4-mysql-5-6-php-5-5-source-ubuntu-14-04/

    祝你好运

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-29
      • 2015-11-20
      • 1970-01-01
      • 2016-04-06
      • 2015-12-21
      • 2016-10-18
      • 1970-01-01
      • 2016-11-16
      相关资源
      最近更新 更多