Ubuntu 16.04 - 安装Apache2& Opencpu服务器

时间:2017-07-26 11:51:59

标签: apache ubuntu ubuntu-16.04 opencpu

我被困住了。我尝试安装apache,opencpu-server,R但都失败了:

opencpu-server is already the newest version (2.0.3-xenial10).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libapache2-mod-apreq2 (2.13-4ubuntu2) ...
dpkg: error processing package libapache2-mod-apreq2 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libapache2-mod-r-base (1.2.7-1) ...
dpkg: error processing package libapache2-mod-r-base (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of opencpu-server:
 opencpu-server depends on libapache2-mod-r-base (>= 1.2.5); however:
  Package libapache2-mod-r-base is not configured yet.

dpkg: error processing package opencpu-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 libapache2-mod-apreq2
 libapache2-mod-r-base
 opencpu-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试sudo a2enmod R,但它说模块不存在。我对linux服务器不太满意。有什么提示吗?

1 个答案:

答案 0 :(得分:0)

您的系统上似乎存在apache的包冲突,特别是libapache2-mod-apreq2,它是rapache的依赖。你看到了什么:

sudo apt-get install libapache2-mod-apreq2

我猜你一直在从其他存储库安装软件包,或者某些系统升级并不顺利。您可能希望apt-get purge一些包。另请检查/etc/apt/中没有来自不正确的debian / ubuntu版本的存储库的源。