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