小编use*_*961的帖子

安装apache2时出现问题

如果我输入:

sudo apt-get install apache2
Run Code Online (Sandbox Code Playgroud)

我得到:

Setting up apache2-bin (2.4.7-1ubuntu4.8) ...
Setting up apache2-data (2.4.7-1ubuntu4.8) ...
Setting up apache2 (2.4.7-1ubuntu4.8) ...
ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it
dpkg: error processing package apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

输入:sudo apt-get install -f

输出:

Reading package lists... …
Run Code Online (Sandbox Code Playgroud)

package-management apt apache2

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

apache2 ×1

apt ×1

package-management ×1