Not necessarily asking for a solution but just the meaning of what I'm dealing with:
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.
If the package isn't being installed why am I not receiving an error? If I do an apt-cache search the package name shows up and the apt logs don't even mention me trying to install this package.
For more background I'm running debian 8.1 (Jessie) on AWS. I was following these instructions: http://www.mono-project.com/docs/getting-started/install/linux/
I ran the following commands:
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
Without an error I'm not really sure what to do. I've never seen apt-get do this before. Help?
EDIT:
Here's the policy information:
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
apt-cache policy libapache2-mod-mono
in your question, not the comments. Also the output ofapt-cache policy
. – Faheem Mitha Dec 31 '15 at 21:38