sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
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-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
? ?sudo vi /etc/apt/sources.list.d/mono-official-stable.list
输入:wq保存退出。
sudo apt install mono-devel mono-complete mono-dbg?referenceassemblies-pcl?ca-certificates-mono mono-xsp4?-y
The package?mono-devel?should be installed to compile code.
The package?mono-complete?should be installed to install everything - this should cover most cases of "assembly not found" errors.
The package?mono-dbg?should be installed to get debugging symbols for framework libraries - allowing you to get line numbers in stack traces.
The package?referenceassemblies-pcl?should be installed for PCL compilation support - this will resolve most cases of "Framework not installed: .NETPortable" errors during software compilation.
The package?ca-certificates-mono?should be installed to get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.
The package?mono-xsp4?should be installed for running ASP.NET applications.
4、喝杯咖啡,等待十分钟左右,安装完成。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。