Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install-Package : The remote name could not be resolved: 'packages.nuget.org' [closed]

For no reason, I have been getting this error message for a week or so;

PM> Install-Package Elmah Install-Package : The remote name could not be resolved: 'packages.nuget.org' At line:1 char:16 + Install-Package <<<< Elmah + CategoryInfo : NotSpecified: (:) [Install-Package], WebException + FullyQualifiedErrorId : System.Net.WebException,NuGet.PowerShell.Commands.InstallPackageCommand

when I navigate to the link in my browser, I see the proper ODATA Nuget Feed.

Checked the feed's fwlink url, it works fine on the browser as well;

http://go.microsoft.com/fwlink/?LinkID=206669

I tried the Manage Nuget Packages dialog box, the same error there.

BTW, my internal nuget servers works fine.

Can u help me on this? what blocks me to get to packages.nuget.org?

like image 670
tugberk Avatar asked Jul 17 '11 11:07

tugberk


People also ask

How do I force a NuGet package to reinstall?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.

How do I resolve a NuGet package?

Restore NuGet packagesNavigate to Tools > Options > NuGet Package Manager > General, and then select the Allow NuGet to download missing packages check box under Package Restore. Enabling Restore NuGet Packages. In Solution Explorer, right-click the solution, and then select Restore NuGet Packages.

How do I restore NuGet in Visual Studio?

In Tools -> Options -> NuGet Package Manager -> General you need to select the "Allow NuGet to download missing packages" option which allows NuGet to restore and the "Automatically check for missing packages during build in Visual Studio" which enables on build restore.


1 Answers

Make sure that you update to NuGet 1.4. I had a similar error while using 1.0 and updated worked for me.

like image 115
Teoman Soygul Avatar answered Nov 13 '22 10:11

Teoman Soygul