gpt4 book ai didi

ubuntu - 在 Ubuntu 上安装 Mono-Complete 4.8

转载 作者:行者123 更新时间:2023-12-04 18:37:45 27 4
gpt4 key购买 nike

我正在尝试在 Docker 镜像中安装 Mono 4.8,但无法下载。这是码头文件

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

使用此错误消息安装单声道竞争失败
`
E: Version '4.8.0.520-0xamarin3' for 'mono-complete' was not found `

我想知道单完整的 4.8 版本应该是什么?

最佳答案

固定 versionsnapshots目录:

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}以确定您要安装的版本是否可用。
>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 - 在 Ubuntu 上安装 Mono-Complete 4.8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47321441/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com