apache - 在 Ubuntu 14.04 'has no installation candidate' 中安装 Apache2 时遇到错误

标签 apache ubuntu apache2 ubuntu-14.04 lamp

我不知道我做了什么,但我无法在我的 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

最佳答案

首先确保您的代理被禁用,因为这有时会导致问题。
然后运行以下。
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/

祝你好运

关于apache - 在 Ubuntu 14.04 'has no installation candidate' 中安装 Apache2 时遇到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30243704/

相关文章:

qt - 如何在 Qt5 中获取系统 QFileDialog?

python-3.x - 尝试在 Ubuntu 14.04 上安装 python 和 Django 时未满足的依赖项

Apache多个域设置

php - htaccess 阻止访问目录但允许访问文件

php - RasPi上php5与mysql连接错误

linux - AH02429 : Response header name 'record Created - ' contains invalid characters, 中止请求

java - Axis2 错误 - java.lang.NoClassDefFoundError : org/apache/ws/commons/schema/XmlSchema

apache - 301 将所有页面重定向到新站点,除了 1 个目录

php - SEO 排除特定文件夹/页面

ubuntu - 从源代码构建 kubernetes 时无法连接到 'docker' 守护进程