在 .net Rider IDE 中恢复解决方案的 nuget 包:无法下载包 `x` 对 GET `x` 的 HTTP 请求在 100000 毫秒后超时

Restoring nuget packages of a solution in .net Rider IDE: Failed to download package `x` The HTTP request to GET `x` has timedout after 100000ms

我有 ArchLinux 发行版,我第一次在 Linux 上测试 .Net SDK。我安装了 JetBrains Rider IDE 的试用版。我创建了新的 ASP.Net Core 项目,但是在构建解决方案或手动恢复解决方案的 Nuget 包时,我在 Event Log window 中收到此错误消息:

1:51 PM Can't restore NuGet packages in integrated projects Failed to retrieve information about 'Microsoft.AspNetCore.WebUtilities' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'. Settings Log Packages folder

1:51 PM Restore failed Failed to retrieve information about 'Microsoft.AspNetCore.WebUtilities' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'. Settings Log Packages folder

这是 Log window 内容,因为它的内容非常大,我将其上传到 google 驱动器:Here

有没有人遇到过这个问题?另外,为什么 rider 试图获取地球上所有的 Nuget 包?我没有参考 Microsoft.Win32.Registry 并且这些错误行之一抱怨:

COREMINIMAL: Failed to download package 'Microsoft.Win32.Registry.4.4.0'

编辑 1

之后,尝试 dotnet restore 我得到以下输出:

$ dotnet restore

Permission denied to modify the '/opt/dotnet/sdk/NuGetFallbackFolder' folder.

Here are some options to fix this error:
---------------------
1. Re-run this command with elevated access.
2. Disabled the first run experience by setting the environment variable DOTNET_SKIP_FIRST_TIME_EXPERIENCE to true.
3. Copy the .NET Core SDK to a non-protected location and use it from there.

  Restoring packages for /home/m/Prog Projects Mid 2018/CSharp/testingRider/WebApplication1/WebApplication1/WebApplication1.csproj...
  Failed to download package 'Microsoft.Win32.Registry.4.4.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg'.
  The download of 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg' timed out because no data was received for 60000ms.
    Exception of type 'System.TimeoutException' was thrown.
  Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'.
  An error occurred while sending the request.
    SSL connect error
  Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.mvc.viewfeatures/index.json'.
  An error occurred while sending the request.

输出太长,大部分都是retrying下载包

根据随附的 Rider 和 dotnet 日志,此问题与 Rider IDE 无关。

似乎 dotnet 的一些首次体验功能需要访问 dotnet/sdk/NuGetFallbackFolder 但未提供,因此您会在日志中收到错误,但这可能不是真实的根本案例。

根据日志消息,问题出在您的计算机和 NuGet 服务器之间的网络中的某处 The download of 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg' timed out because no data was received for 60000ms.

您可能应该检查您的网络和 dotnet/NuGet 设置。