title: How to get rid of this problem ( On adding a nuget packages from VSCode it says terminated with exit code: 1.)?
body: <h1><strong>When I trying to add <em>Nuget Packages</em> by <em>Nuget gallery</em> extension from <em>VS Code.</em> It doesn't install the <em>NuGet package.</em></strong></h1>
  <p>Executing task: dotnet add /home/[user]/Public/Projects/yogihosting.com/Identity/Identity/Identity.csproj package Microsoft.AspNetCore.Identity.EntityFrameworkCore -v 5.0.6 -s <a href="https://api.nuget.org/v3/index.json" rel="nofollow noreferrer">https://api.nuget.org/v3/index.json</a> &lt;</p>
  <p>Determining projects to restore...
  Writing /tmp/tmpIIHQRz.tmp
  info : Adding PackageReference for package 'Microsoft.AspNetCore.Identity.EntityFrameworkCore' into project '/home/[user]/Public/Projects/yogihosting.com/Identity/Identity/Identity.csproj'.
  info : Restoring packages for /home/[user]/Public/Projects/yogihosting.com/Identity/Identity/Identity.csproj...
  error: Unable to load the service index for source <a href="https://api.nuget.org/v3/index.json" rel="nofollow noreferrer">https://api.nuget.org/v3/index.json</a>.
  error:   The SSL connection could not be established, see inner exception.
  error:   The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot</p>
  <p>Usage: NuGet.CommandLine.XPlat.dll package add [options]</p>
  <p>Options:
  -h|--help               Show help information
  --force-english-output  Forces the application to run using an invariant, English-based culture.
  --package               Id of the package to be added.
  --version               Version of the package to be added.
  -d|--dg-file            Path to the dependency graph file to be used to restore preview and compatibility check.
  -p|--project            Path to the project file.
  -f|--framework          Frameworks for which the package reference should be added.
  -n|--no-restore         Do not perform restore preview and compatibility check. The added package reference will be unconditional.
  -s|--source             Specifies NuGet package sources to use during the restore.
  --package-directory     Directory to restore packages in.
  --interactive           Allow the command to block and require manual action for operations like authentication.
  --prerelease            Allows prerelease packages to be installed.
  The terminal process &quot;/bin/bash '-c', 'dotnet add /home/[user]/Public/Projects/yogihosting.com/Identity/Identity/Identity.csproj package Microsoft.AspNetCore.Identity.EntityFrameworkCore -v 5.0.6 -s <a href="https://api.nuget.org/v3/index.json%27%22" rel="nofollow noreferrer">https://api.nuget.org/v3/index.json'&quot;</a> terminated with exit code: 1.</p>
  <p>Terminal will be reused by tasks, press any key to close it.</p>
  <h2>How can I get rid of this problem?</h2>
  <h1><a href="https://api.nuget.org/v3/index.json" rel="nofollow noreferrer">https://api.nuget.org/v3/index.json</a> shows:#</h1>
  <p><a href="https://i.stack.imgur.com/fTA4n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fTA4n.png" alt="enter image description here" /></a></p>
  <p><strong>Note: I'm using Ubuntu.</strong></p>