Unable to build Sonarr

I am trying to build Sonarr to implement the following features which do not seem to be wanted in the upstream:

  • Prefer smaller downloads within a quality band
  • Prefer full seasons over incomplete seasons

I have been maintaining a fork for a while, but when I went to upgrade I ran into issues which I haven’t been able to solve.

I am trying to use Docker so that the environment is self-contained and reproducible. I am using the following Dockerfile (following hints from the README):

FROM debian:10.6

RUN apt-get update && apt-get install -y \
  build-essential \
  gcc \
  python \
  git \
  wget \
  gpg \
  make \
  nodejs \
  apt-transport-https

# https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions
RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
RUN install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
RUN sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
RUN apt-get update && apt-get install -y code

# https://docs.microsoft.com/en-gb/dotnet/core/install/linux-debian
RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get update && apt-get install -y dotnet-sdk-3.1
# https://classic.yarnpkg.com/en/docs/install/#mac-stable
RUN cd /opt && \
  wget https://github.com/yarnpkg/yarn/releases/download/v1.22.10/yarn-v1.22.10.tar.gz && \
  tar zvxf yarn-v1.22.10.tar.gz
ENV PATH=/opt/yarn-v1.22.10/bin:$PATH

# https://www.mono-project.com/download/stable/#download-lin-debian
RUN apt-get install apt-transport-https dirmngr gnupg ca-certificates
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list
RUN apt-get install -y curl
# https://github.com/mono/mono/issues/9891#issuecomment-411103517
RUN curl https://download.mono-project.com/repo/xamarin.gpg | apt-key add -
RUN apt-get update && apt-get install -y mono-devel

WORKDIR /workspace

RUN yarn global add node-gyp
RUN git clone https://github.com/Sonarr/Sonarr && \
  cd Sonarr && \
  yarn install

but I am seeing:

Welcome to .NET Core 3.1!
---------------------
SDK Version: 3.1.404

Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Find out what's new: https://aka.ms/dotnet-whats-new
Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Write your first app: https://aka.ms/first-net-core-app
--------------------------------------------------------------------------------------
Microsoft (R) Build Engine version 16.7.1+52cd83677 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package DotNet4.SocksProxy, version 1.4.0.1 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/NzbDrone.Api/Sonarr.Api.csproj]
/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package DotNet4.SocksProxy, version 1.4.0.1 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/Sonarr.Http/Sonarr.Http.csproj]
/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package DotNet4.SocksProxy, version 1.4.0.1 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/NzbDrone.Windows/Sonarr.Windows.csproj]
/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package NLog, version 4.6.6 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/LogentriesNLog/LogentriesNLog.csproj]
/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package DotNet4.SocksProxy, version 1.4.0.1 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/NzbDrone.SignalR/Sonarr.SignalR.csproj]
/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package DotNet4.SocksProxy, version 1.4.0.1 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/NzbDrone.Mono/Sonarr.Mono.csproj]
/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package DotNet4.SocksProxy, version 1.4.0.1 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/NzbDrone.Core/Sonarr.Core.csproj]
/usr/share/dotnet/sdk/3.1.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1064: Package DotNet4.SocksProxy, version 1.4.0.1 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [/workspace/src/Sonarr.Api.V3/Sonarr.Api.V3.csproj]
error with dotnet

Are there complete instructions for setting up a development environment on Linux?