Ubuntu 上的 ASP.NET 核心

标签 asp.net ubuntu asp.net-core asp.net-core-1.0

我正在尝试在 Ubuntu 16.04 上设置 .NET 环境。我按照 https://www.microsoft.com/net/core#ubuntu 上的说明进行操作

当我运行第二个命令时:

sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893

我收到以下错误:
Executing: /tmp/tmp.7IpPJJZVuc/gpg.1.sh --keyserver
apt-mo.trafficmanager.net
--recv-keys
417A0893
gpg: requesting key 417A0893 from hkp server apt-mo.trafficmanager.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

我使用以下方法禁用了操作系统防火墙:
sudo ufw disable

并重新启动了我的系统。但还是一样的结果。

我在这里错过了什么吗?

最佳答案

在这里找到解决方案:https://github.com/dotnet/cli/issues/2189

Since keyservers are synchronizing keys you can actually use any other keyserver like the Ubuntu one for getting the MS key:


sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893

关于Ubuntu 上的 ASP.NET 核心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38437463/

相关文章:

reactjs - 如何处理 fetch() 中的错误请求

c# - 由于回发而未存储变量

c++ - 链接共享库,它也链接了 cmake 中的不同共享库

json - 从 AWS Secrets Manager 检索 secret

azure - 如何获取和使用正确的签名 key 进行Azure移动应用程序身份验证?

c# - 从 .Net Core 2.0 中的 IActionFilter 获取 HttpStatus 代码

javascript - 使用 SignalR 从 C# 调用 JS 方法?

html - Firefox 在呈现大型 html 表格(20,000 多行)时崩溃

c# - 从 DbContext Set() 中过滤掉软删除

python - 导入错误: No module named github3 on ubuntu