我不知道我做了什么,但我无法在我的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
答案 0 :(得分:4)
首先确保您的代理已被禁用,因为这有时会导致问题。 然后运行以下命令。
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/
祝你好运