在Ubuntu Xenial 16.04.4上获取Mono 3.5,您可以按照以下步骤进行操作:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-complete
安装过程可能需要一些时间,请耐心等待。
mono --version
如果成功安装,您将看到类似以下的输出:
Mono JIT compiler version 3.5.0 (tarball Wed Apr 4 09:55:24 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
这表示您已成功在Ubuntu Xenial 16.04.4上安装了Mono 3.5。
领取专属 10元无门槛券
手把手带您无忧上云