Lubuntu 18.04 上的 Apache2 安装尝试:处理时遇到错误:apache2

肖恩

尝试在我的机器上安装 apache2 时,我得到了这个:

After this operation, 534 kB of additional disk space will be used.
Selecting previously unselected package apache2.
(Reading database ... 249419 files and directories currently installed.)
Preparing to unpack .../apache2_2.4.29-1ubuntu4.5_amd64.deb ...
Unpacking apache2 (2.4.29-1ubuntu4.5) ...
Processing triggers for ufw (0.35-5) ...
Setting up apache2 (2.4.29-1ubuntu4.5) ...
info: Executing deferred 'a2enconf gitweb' for package gitweb
ERROR: Conf gitweb does not exist!
dpkg: error processing package apache2 (--configure):
 installed apache2 package post-installation script subprocess returned error exit status 1
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for gitweb (1:2.17.1-1ubuntu0.4) ...
Package apache2 is not configured yet. Will defer actions by package gitweb.
Processing triggers for systemd (237-3ubuntu10.13) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
 apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人知道这个问题吗?我也试过:

/etc/init.d/apache2 stop
sudo apt-get purge apache2*
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt install apache2

但它记录了几乎相同的问题:

<...>
Enabling site 000-default.
info: Executing deferred 'a2enconf gitweb' for package gitweb
ERROR: Conf gitweb does not exist!
dpkg: error processing package apache2 (--configure):
 installed apache2 package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (237-3ubuntu10.13) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for ufw (0.35-5) ...
Errors were encountered while processing:
 apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
库尔菲

来自评论:

清除 gitweb 和 apache2 并重新安装 apache2。

sudo apt-get purge apache2 && sudo apt-get purge gitweb && sudo apt-get install apache2

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

apache2上的RewriteRule

来自分类Dev

无法在Raspbian上安装Apache2

来自分类Dev

VPS上的Apache2(无域)

来自分类Dev

在Linux上更改服务apache2

来自分类Dev

无法在Ubuntu 14.04上安装apache2

来自分类Dev

无法在Debian Jessie上安装Apache2

来自分类Dev

在Ubuntu 12.04上Apache2安装失败

来自分类Dev

在apache2的Ubuntu 16上安装php5.5

来自分类Dev

在Apache2上的Joomla安装缺少mods

来自分类Dev

在 ubuntu 18.04 上安装 Apache2 的问题

来自分类Dev

Ubuntu 16上php7的Apache2错误

来自分类Dev

Apache2服务器上的403禁止错误

来自分类Dev

apache2错误日志上的奇怪行

来自分类Dev

在Mac上使用apache2时出现权限问题

来自分类Dev

Mac上的/ private / etc / apache2和/ etc / apache2有什么区别

来自分类Dev

apache2和couchdb在apache2上启用cors

来自分类Dev

在Debian 9上使用apache2安装PHP7.1时出错

来自分类Dev

如何在 Lubuntu 18:04 中用 dolphin 替换 pcmanfm?

来自分类Dev

在Ubuntu上为apache2启用多个webroot

来自分类Dev

在Linux Apache2上找不到CodeIgniter URL文件

来自分类Dev

同一URL上的Apache2 WebSockets反向代理

来自分类Dev

在Ubuntu 14.04 / Apache2上为Vhost启用SSL

来自分类Dev

在Debian系统上更改Apache2端口

来自分类Dev

在CentOS上为apache2编译乘客的问题

来自分类Dev

在Ubuntu上为apache2启用多个webroot

来自分类Dev

apache2无法在ubuntu上加载图像

来自分类Dev

从Ubuntu14.04上的终端卸载Apache2

来自分类Dev

Raspbian上Apache2的mount名称空间的奇怪行为

来自分类Dev

Apache2在Ubuntu 16.04上不读取.htaccess