At the moment the issue appears to be related to the Debian image.
Switch to an Ubuntu or Alpine based image instead, e.g.:
FROM mcr.microsoft.com/dotnet/sdk:5.0-focal
Follow https://github.com/NuGet/Home/issues/10491 for updates.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…