【发布时间】:2015-01-17 17:46:21
【问题描述】:
早安专家!
我正在尝试在 Ubuntu 14.04 上安装 libapache2-mod-mono:
sudo apt-get install libapache2-mod-mono
但我收到以下错误:
设置 libapache2-mod-mono (3.8-0xamarin2+compat1) ... 使用 mono-apache-server4 ... dpkg:错误处理包 libapache2-mod-mono (--configure): 子进程安装 安装后脚本返回错误退出状态 1 错误是 处理时遇到:libapache2-mod-mono E:子进程 /usr/bin/dpkg 返回错误代码 (1)
我跑了 sudo apt-get install -f 和 sudo dpkg --configure -a 无济于事。
.postinst 文件如下所示:
#!/bin/sh -e
# Set up the environment
set -e
. /usr/share/debconf/confmodule db_version 2.0
# Automatically added by dh_apache2
if [ "$1" = "configure" ] && test -n ; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enmod mod_mono_auto.load mod_mono.load || exit #ERROR_HANDLER#
fi
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
这里有什么看起来不对或不正确的地方吗?我只是 linux 和 bash 的初学者,没有什么能立即跳出来。或者,是否还有其他原因导致我似乎无法配置 libapache2-mod-mono 以完成安装。
问候,
多诺万
【问题讨论】:
-
好的,看起来我在第 6 行收到以下错误:db_version: No such file or directory
标签: linux ubuntu mono installation mod-mono