我正在运行最新版本的 Ubuntu。
我继续尝试重新安装和删除 Apache2 来修复我的问题。前几天,我试图在我的服务器上运行 2 个网站,我一定搞砸了什么,所以我尝试删除所有文件并重新安装,但没有任何效果。
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.9) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for ufw (0.35-5) ...
Rules updated for profile 'Apache Full'
Rules updated for profile 'OpenSSH'
Errors were encountered while processing:
apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
我继续得到:
Errors were encountered while processing:
apache2
如果有人能帮忙我将非常感激。
答案1
这可能对你有用:
sudo a2disconf gitweb
否则,您可以尝试删除与 Apache 相关的所有文件:
sudo apt purge apache2*
sudo apt remove apache2*
然后再次安装:
sudo tasksel