本文介绍了在Ubuntu上安装Mono-Complete 4.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Docker映像中安装Mono 4.8,但我无法下载.这是dockerfile
I'm trying to install Mono 4.8 in a Docker image but I am failing to download. Here is the dockerfile
`
RUN apt-get update \
&& apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/* \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
&& echo "deb http://download.mono-project.com/repo/debian wheezy main" >> /etc/apt/sources.list.d/mono-xamarin.list \
&& echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \
&& echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \
&& apt-get update \
&& apt-get install -y clang \
&& apt-get install -y mono-complete=4.8.0.520-0xamarin3
`
使用此错误消息无法安装单竞争产品
It fails to install mono-compete with this error message
`
E: Version '4.8.0.520-0xamarin3' for 'mono-complete' was not found `
我想知道单声道4.8版本应该是什么?
I was wondering what should be the mono-complete 4.8 version?
推荐答案
将version
固定到snapshots
目录:
echo "deb http://download.mono-project.com/repo/ubuntu wheezy/snapshots/4.8.0.520 main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update
修改/更新缓存后,您可以使用apt-cache policy {package}
确定要安装的版本是否可用.
After modifying/update the caches, you can use apt-cache policy {package}
to determine if the version you wish to install is available.
>apt-cache policy mono-complete
mono-complete:
Installed: (none)
Candidate: 4.8.0.520-0xamarin3
Version table:
4.8.0.520-0xamarin3 500
500 http://download.mono-project.com/repo/ubuntu wheezy/snapshots/4.8.0.520/main amd64 Packages
4.6.2.7+dfsg-1ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
现在您可以安装4.8.0.520-0xamarin3
:
sudo apt-get install -y mono-complete=4.8.0.520-0xamarin3
这篇关于在Ubuntu上安装Mono-Complete 4.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!