简体   繁体   English

Ubuntu 16.04-安装Apache2和Opencpu服务器时出错

[英]Ubuntu 16.04 - Error Installing Apache2 & Opencpu-server

I'm stuck. 我被卡住了。 I try to install apache, opencpu-server, R but all fails to: 我尝试安装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)

I tried to do sudo a2enmod R but it says module does not exists. 我试图做sudo a2enmod R但是它说模块不存在。 I'm not really good with linux servers. 我对linux服务器不是很满意。 Any tips? 有小费吗?

You seem to have package conflict for apache on your system, in particular libapache2-mod-apreq2 which is a dependency of rapache. 您的系统上的Apache似乎存在软件包冲突,尤其是libapache2-mod-apreq2 ,这是libapache2-mod-apreq2的依赖项。 What do you see for: 您看到什么:

sudo apt-get install libapache2-mod-apreq2

I'm guessing you have been installing packages from other repositories or some system upgrade has not gone well. 我猜您正在从其他存储库安装软件包,或者某些系统升级进展不顺利。 You might want to apt-get purge some packages. 您可能想要apt-get purge某些软件包。 Also check that there are no sources in /etc/apt/ that point to repositories from incorrect debian/ubuntu versions. 还要检查/etc/apt/中是否没有指向不正确的debian / ubuntu版本库的资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM