Как установить mod_mono в Debian 10 - PullRequest
1 голос
/ 14 февраля 2020

Я хочу запустить приложение ASP. NET MVC в Debian 10 с Apache. Я установил последний моно из моно репозитория Debian 10, используя apt.

Попытка установить mod_modo с помощью

apt install libapache2-mod-mono

выдает ошибку

> 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.

Как установить mod_mono в Debian 10?

/ etc / apache2 / mods-available contans mod_mono. Может быть, достаточно включить его в apache, чтобы он заработал?

/ etc / sources.list содержит:

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 / sources.list.d содержит два файла:

mono-official-stable-list:

deb https://download.mono-project.com/repo/debian stable-buster main

и pgdg.list:

deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main
#deb-src http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main

Обновление

Я попробовал команды из ответа GAD3R.

apt install libapache2-mod-mono

по-прежнему не удается. Сообщение об ошибке немного отличается:

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.

1 Ответ

1 голос
/ 14 февраля 2020

Установите libapache2-mod-mono из официального репозитория Debian.

sudo rm /etc/apt/sources.list.d/mono-official-stable.list

Затем запустите:

sudo apt update
sudo apt purge mono.
sudo apt autoremove
sudo apt install libapache2-mod-mono

, пожалуйста, отправьте отчет об ошибке в команду mono dev на github .

...