首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Debian 10上安装mod_mono

如何在Debian 10上安装mod_mono
EN

Stack Overflow用户
提问于 2020-02-13 23:03:12
回答 1查看 579关注 0票数 2

我想用Apache 10运行ASP.NET MVC应用程序。我已经使用apt从mono 10存储库安装了最新的mono。

尝试使用

代码语言:javascript
复制
apt install libapache2-mod-mono

抛错

代码语言:javascript
复制
> Reading package lists... Done Building dependency tree Reading state
> information... Done Some packages could not be installed. This may
> mean that you have requested an impossible situation or if you are
> using the unstable distribution that some required packages have not
> yet been created or been moved out of Incoming. The following
> information may help to resolve the situation:
> 
> The following packages have unmet dependencies:  libapache2-mod-mono :
> Depends: mono-apache-server (< 4.6) but 4.7.1-0xamarin2+debian10b1 is
> to be installed or
>  mono-apache-server4 (< 4.6) but 4.7.1-0xamarin2+debian10b1 is to be installed or
> mono-apache-server2 (< 4.6) but it is not installable
> E: Unable to correct problems, you have held broken
> packages.

如何在Debian 10上安装mod_mono?

/etc/apache2/mods-可用的轮廓mod_mono。也许在apache中启用它就足够让它工作了?

/etc/sources.list .列表包含:

代码语言:javascript
复制
deb http://ftp.debian.org/debian buster main contrib non-free
deb http://ftp.debian.org/debian buster-updates main contrib non-free
deb http://security.debian.org buster/updates main contrib non-free

/etc/apt/ contains es.list.d包含两个文件:

单一官方-稳定名单:

代码语言:javascript
复制
deb https://download.mono-project.com/repo/debian stable-buster main

和pgdg.list:

代码语言:javascript
复制
deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main
#deb-src http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main

更新

我尝试了GAD3R应答中的命令。

代码语言:javascript
复制
apt install libapache2-mod-mono

还是失败了。错误消息有点不同:

代码语言:javascript
复制
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://ftp.debian.org/debian buster InRelease
Hit:3 http://ftp.debian.org/debian buster-updates InRelease
Hit:4 http://apt.postgresql.org/pub/repos/apt buster-pgdg InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libapache2-mod-mono : Depends: mono-apache-server (< 4.4) but 4.7.1-0xamarin2+debian10b1 is to be installed or
                                mono-apache-server4 (< 4.4) but 4.7.1-0xamarin2+debian10b1 is to be installed
E: Unable to correct problems, you have held broken packages.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-02-14 12:46:03

从官方debian存储库安装libapache2-mod-mono

代码语言:javascript
复制
sudo rm /etc/apt/sources.list.d/mono-official-stable.list

然后跑:

代码语言:javascript
复制
sudo apt update
sudo apt purge mono.
sudo apt autoremove
sudo apt install libapache2-mod-mono

请将错误报告提交给mono github发展小组

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60217766

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档