NuGet / Announcements

Subscribe to this repo to be notified of upcoming proposals and other important changes to NuGet
81 stars 7 forks source link

nuget restore failing on ubuntu 20.04 NU3037 #50

Closed TomCJones closed 3 years ago

TomCJones commented 3 years ago

error NU3028: Package 'Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.10.9' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain error NU3037: Package 'Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.10.9' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.

digital ocean droplet Static hostname: docker-ubuntu-s-1vcpu-1gb-nyc1-01 Icon name: computer-vm Chassis: vm Machine ID: f2e66c689e42d45004bbde355fa93999 Boot ID: 89ad10aa73104cb59022bb6129cbf062 Virtualization: kvm Operating System: Ubuntu 20.04.1 LTS Kernel: Linux 5.4.0-58-generic Architecture: x86-64

TomCJones commented 3 years ago

Even tho it is not recommended for Ubuntu 10.04, i tried the fix from the prior issue by changing the Docker file in the way FROM mcr.microsoft.com/dotnet/aspnet:5.0.102-ca-patch-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:5.0.102-ca-patch-buster-slim AS build ... i get this root@docker-ubuntu-s-1vcpu-1gb-nyc1-01:/home/app/RegistryDemo# docker-compose build Building registrydemo Step 1/17 : FROM mcr.microsoft.com/dotnet/aspnet:5.0.102-ca-patch-buster-slim AS base ERROR: Service 'registrydemo' failed to build : manifest for mcr.microsoft.com/dotnet/aspnet:5.0.102-ca-patch-buster-slim not found: manifest unknown: manifest tagged by "5.0.102-ca-patch-buster-slim" is not found

when i try this docker file - it seems to work, FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:5.0.102-ca-patch-buster-slim AS build

this is with docker-compose

is this right - when do i change it back?

JonDouglas commented 3 years ago

@TomCJones Please refer to https://github.com/NuGet/Announcements/issues/49 for the latest on this topic. Additionally, please feel free to comment on the issues described in this announcement to get support. This repo is for announcements pertaining to NuGet.

Thanks!