【问题标题】:Ubuntu 16.04 - Error Installing Apache2 & Opencpu-serverUbuntu 16.04 - 安装 Apache2 和 Opencpu-server 时出错
【发布时间】:2017-07-26 11:51:58
【问题描述】:

我被困住了。我尝试安装 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服务器不是很擅长。有什么建议吗?

【问题讨论】:

    标签: apache ubuntu ubuntu-16.04 opencpu


    【解决方案1】:

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

    sudo apt-get install libapache2-mod-apreq2
    

    我猜您一直在从其他存储库安装软件包,或者某些系统升级没有顺利进行。你可能想apt-get purge 一些包。还要检查 /etc/apt/ 中是否没有指向错误 debian/ubuntu 版本的存储库的源。

    【讨论】:

    • 该命令返回错误“子进程安装后安装脚本返回错误退出状态 1”。 sources.list 中只有 xenials。我怎么知道我应该清除什么?
    • 我进一步删除了 2 个包,但现在我得到: loadNamespace(name) 中的错误:没有名为“unix”的包
    • 尝试完整的resintall:sudo apt-get remove --purge opencpu-*,然后是sudo apt-get updatesudo apt-get install opencpu-server
    • 这有效 {sudo apt-get remove --purge opencpu-*}。谢谢! :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-08
    相关资源
    最近更新 更多