软件包'apache2'在Ubuntu 16.04中没有安装候选者

时间:2019-02-28 23:21:16

标签: apache server ubuntu-16.04

几周前,我愚蠢地将var文件夹移到了根文件夹中,整个系统崩溃了。我设法解决了一些问题,但是我的网站无法正常工作,因为apache2无法运行/不存在 当我运行命令

sudo service apache2

我得到:

Failed to restart apache2.service: Unit apache2.service not found.

我跑步时

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

E: Package 'apache2' has no installation candidate

我真的不知道如何解决这个问题。我用默认配置替换了/etc/apt/sources.list。

0 个答案:

没有答案