apt-get 没有安装包但没有错误?

apt-get 没有安装包但没有错误?

不一定要求解决方案,而只是要求我正在处理的内容的含义:

admin@hostname:/etc/apache2/mods-available$ sudo apt-get install libapache2-mod-mono

Reading package lists... Done
Building dependency tree
Reading state information... Done

admin@hostname:/etc/apache2/mods-available$ sudo apt-get remove libapache2-mod-mono

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libapache2-mod-mono' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 191 not upgraded.

如果未安装该软件包,为什么我没有收到错误消息?如果我进行 apt-cache 搜索,则会显示软件包名称,并且 apt 日志甚至不会提及我尝试安装此软件包。

有关更多背景信息,我在 AWS 上运行 debian 8.1 (Jessie)。我遵循这些说明:http://www.mono-project.com/docs/getting-started/install/linux/

我运行了以下命令:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

如果没有错误,我真的不知道该怎么做。我以前从未见过 apt-get 这样做。帮助?

编辑:

以下是政策信息:

admin@hostname:~$ apt-cache policy

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://download.mono-project.com/repo/debian/ wheezy-libjpeg62-compat/main amd64 Packages
     release v=7.0,o=XamarinLibJpeg62Compat,a=stable-libjpeg62-compat,n=wheezy-libjpeg62-compat,l=Xamarin-Stable-libjpeg62-compat,c=main
     origin download.mono-project.com
 500 http://download.mono-project.com/repo/debian/ wheezy-apache24-compat/main amd64 Packages
     release v=7.0,o=XamarinApache24Compat,a=stable-apache24-compat,n=wheezy-apache24-compat,l=Xamarin-Stable-apache24-compat,c=main
     origin download.mono-project.com
 500 http://download.mono-project.com/repo/debian/ wheezy/main amd64 Packages
     release v=7.0,o=Xamarin,a=stable,n=wheezy,l=Xamarin-Stable,c=main
     origin download.mono-project.com
 500 http://cloudfront.debian.net/debian/ jessie-updates/main Translation-en
 500 http://cloudfront.debian.net/debian/ jessie-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin cloudfront.debian.net
 500 http://security.debian.org/ jessie/updates/main Translation-en
 500 http://security.debian.org/ jessie/updates/main amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 http://cloudfront.debian.net/debian/ jessie/main Translation-en
 500 http://cloudfront.debian.net/debian/ jessie/main amd64 Packages
     release v=8.2,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin cloudfront.debian.net
Pinned packages:

admin@hostname:~$ apt-cache policy libapache2-mod-mono

libapache2-mod-mono:
  Installed: (none)
  Candidate: 3.12-0xamarin2+compat1
  Version table:
     3.12-0xamarin2+compat1 0
        500 http://download.mono-project.com/repo/debian/ wheezy-apache24-compat/main amd64 Packages
     3.12-0xamarin2 0
        500 http://download.mono-project.com/repo/debian/ wheezy/main amd64 Packages

答案1

请尝试这个:

apt-get 更新; apt-get purge libapache2-mod-mono; apt-get -f 安装; apt-get 安装 libapache2-mod-mono

如果这没有帮助,请阅读此处:

如何在 Debian Jessie 上运行 mod_mono(缺少 libapache2-mod-mono 软件包)?

答案2

我做了更多挖掘,dmesg 报告了一些来自 aptitude 的段错误。

[ 7384.810518] apt-get[6440]: segfault at 7f5adb08a648 ip 00007f5adb08a648 sp 00007ffdf4b9d618 error 15
[ 7433.569688] apt-get[6450]: segfault at 7f153041d648 ip 00007f153041d648 sp 00007ffc6bfb29d8 error 15
[ 7624.614647] apt-get[6493]: segfault at 7fae19437318 ip 00007fae19437318 sp 00007ffebd660c78 error 15
[ 7647.248347] apt-get[6505]: segfault at 7fcbdedc2318 ip 00007fcbdedc2318 sp 00007ffef87ad688 error 15
[ 7726.721028] apt-get[6539]: segfault at 7f0d0bc0b848 ip 00007f0d0bc0b848 sp 00007ffdb6f55588 error 15
[ 7872.903745] apt-get[6547]: segfault at 7f69c0caf848 ip 00007f69c0caf848 sp 00007ffcc83296c8 error 15
[ 8009.062830] apt-get[6561]: segfault at 7fe658208848 ip 00007fe658208848 sp 00007ffeeac5e398 error 15
[ 8033.035303] apt-get[6567]: segfault at 7ff32b0fa848 ip 00007ff32b0fa848 sp 00007ffd55d04cd8 error 15
[12626.030754] apt-get[6679]: segfault at 7faa21fa5848 ip 00007faa21fa5848 sp 00007fffb0badc28 error 15

Faheem 问如果我尝试安装已经安装的软件包会发生什么,所以我尝试了mono-devel。我已经安装了这个软件包,但我是在添加上面提到的一些软件包源之前安装的。

无论如何,在 mono-devel 再次完成安装后,我libapache2-mod-mono再次尝试安装,它按预期工作。

相关内容