Problem to install package

Dear,
Any help to this problem?
31h.png
LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

it_saigeDeveloperCommented:
Make sure that you have internet access and verify your package source.Capture.PNG-saige-
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
If you look closely at the error message you posted, you'll see that www.nugent.org could not be resolved.

You may have other problems to resolve + your question relates to a pure DNS issue.

I see...

imac> dig +short www.nugent.org a
64.99.80.121

Open in new window


So... one of two possibilities... Your internal caching DNS is flakey/glitchy (tech term for works sometimes, fails sometimes)...

Or... nugent.org DNS is flakey/glitchy...

A temp work around, is to add a record for nugent.org + www.nugent.org to your /etc/hosts file + finish your install + remove the /etc/hosts entry (because leaving a perpetual hard coded DNS entry is a very bad idea).
0
HuaMin ChenProblem resolverAuthor Commented:
Thanks to all.
David,
Sorry to that I've put this line

       64.99.80.121    www.nugent.org              # x client host

Open in new window

in hosts file (and then have rebooted the server), but I still get this error

PM> install-package MaxMind.MinFraud
Install-Package : The remote name could not be resolved: 'www.nuget.org'
At line:1 char:16
+ install-package <<<<  MaxMind.MinFraud
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 

Open in new window

0
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

David Johnson, CD, MVPOwnerCommented:
try from a browser to connect to www.nuget.org until you can do this add-package will not work.
1
HuaMin ChenProblem resolverAuthor Commented:
I have no problem to get into

https://www.nuget.org/

(on the server). But I am still getting this problem.
PM> install-package MaxMind.MinFraud
Install-Package : The remote name could not be resolved: 'www.nuget.org'
At line:1 char:16
+ install-package <<<<  MaxMind.MinFraud
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> 

Open in new window

0
it_saigeDeveloperCommented:
Did you verify your package source?

-saige-
0
HuaMin ChenProblem resolverAuthor Commented:
What to verify? How to resolve the current error?
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Verify your DNS resolution is working, so us dig/nslookup to verify your DNS is working, ping the site to ensure packets are flowing (which might fail if site blocks ICMP traffic), then visit via browser, as David Johnson suggested.

Tip: Always imagine everything is broken + start debugging at the lowest common denominator.
0
HuaMin ChenProblem resolverAuthor Commented:
I get the below, on the server
C:\Users\Administrator>ping www.nugent.org

Pinging www.nugent.org [64.99.80.121] with 32 bytes of data:
Reply from 64.99.80.121: bytes=32 time=255ms TTL=241
Reply from 64.99.80.121: bytes=32 time=255ms TTL=241
Reply from 64.99.80.121: bytes=32 time=255ms TTL=241
Reply from 64.99.80.121: bytes=32 time=255ms TTL=241

Ping statistics for 64.99.80.121:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 255ms, Maximum = 255ms, Average = 255ms

Open in new window

0
David Johnson, CD, MVPOwnerCommented:
Which version of visual studio are you using?
You may have to update nuget client from tools updates
Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.

Package Manager Console Host Version 4.7.0.5212

Type 'get-help NuGet' to see all available NuGet commands.

PM> install-package maxmind.minfraud


Attempting to gather dependency information for package 'maxmind.minfraud.2.0.0' with respect to project 'ee29114555', targeting '.NETFramework,Version=v4.6.1'
Gathering dependency information took 2.68 sec
Attempting to resolve dependencies for package 'maxmind.minfraud.2.0.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'maxmind.minfraud.2.0.0'
Resolved actions to install package 'maxmind.minfraud.2.0.0'
Retrieving package 'MaxMind.Db 2.4.0' from 'nuget.org'.
Retrieving package 'MaxMind.GeoIP2 3.0.0' from 'nuget.org'.
Retrieving package 'MaxMind.MinFraud 2.0.0' from 'nuget.org'.
Retrieving package 'Microsoft.CSharp 4.4.1' from 'nuget.org'.
Retrieving package 'Newtonsoft.Json 11.0.2' from 'nuget.org'.
Retrieving package 'System.ComponentModel.Annotations 4.4.1' from 'nuget.org'.
  GET 

Open in new window

0
HuaMin ChenProblem resolverAuthor Commented:
I'm using VS 2013 and here is what I've got

PM> install-package MaxMind.MinFraud
Install-Package : The remote name could not be resolved: 'www.nuget.org'
At line:1 char:16
+ install-package <<<<  MaxMind.MinFraud
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> install-package maxmind.minfraud
Install-Package : Object reference not set to an instance of an object.
At line:1 char:16
+ install-package <<<<  maxmind.minfraud
    + CategoryInfo          : NotSpecified: (:) [Install-Package], NullReferenceException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> 

Open in new window

0
it_saigeDeveloperCommented:
In VS 2013, to verify the package source.

Go to TOOLS -> NuGet Package Manager -> Package Manager Settings:Capture.PNGIn the Options dialog, select Package Sources and verify that your nuget.org package source matches one of the two following urls:

V2 - https://www.nuget.org/api/v2/
V3 - https://api.nuget.org/v3/index.json

NOTE - Note that the V2 API is deprecated and does not work with NuGet 4+.

https://docs.microsoft.com/en-us/nuget/policies/nuget-faq#nugetorg-not-accessible

-saige-
0
David Johnson, CD, MVPOwnerCommented:
since v2 is no longer functional.. is there a solid reason why you are not using visual studio 2017?  (community edition is free)
0
HuaMin ChenProblem resolverAuthor Commented:
Saige,
What to adjust, due to the below problem (it does keep waiting)?
31j.pngDavid,
I want to resolve problem in VS 2013.
0
it_saigeDeveloperCommented:
From that screen click on Settings.  The screen you want to access looks like this:Capture.PNGYou want to click the plus button to add a new source:Capture.PNGType in a unique name, change the source and then Select 'Update' and then 'OK':Capture.PNGThis is also dependent on the version of Nuget you have installed.  To validate that go to 'TOOLS' -> 'Extensions and Updates...':Capture.PNGInside the 'Search Installed (Ctrl+E)' text box, type nuget:Capture.PNGHighlight 'NuGet Package Manager for Visual Studio 2013':Capture.PNG
-saige-
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.