Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve host: deb.nodesource.com #463

Closed
devellopah opened this issue May 28, 2017 · 1 comment
Closed

Could not resolve host: deb.nodesource.com #463

devellopah opened this issue May 28, 2017 · 1 comment

Comments

@devellopah
Copy link

I am on linux mint and need 6.x version of node.js so i do

curl -vsL https://deb.nodesource.com/setup_6.x | sudo -E bash -

and get error

* Could not resolve host: deb.nodesource.com
* Closing connection 0

came across #191 i have tried what @ghost had offered.
i have no /etc/apt/sources.list.d/nodesource.list file so i added below lines to /etc/apt/sources.list

deb https://deb.nodesource.com/node_6.x jessie main
deb-src https://deb.nodesource.com/node_6.x jessie main

after that i run sudo apt-get update and get this

Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Err:2 https://deb.nodesource.com/node_6.x jessie InRelease                     
  Could not resolve host: deb.nodesource.com
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]     
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease                        
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]       
Ign:6 http://packages.linuxmint.com serena InRelease                           
Hit:7 http://packages.linuxmint.com serena Release                             
Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]     
Fetched 306 kB in 1s (172 kB/s)                           
Reading package lists... Done
W: Failed to fetch https://deb.nodesource.com/node_6.x/dists/jessie/InRelease  Could not resolve host: deb.nodesource.com
W: Some index files failed to download. They have been ignored, or old ones used instead.

So i still cannot fetch repo. Can you figure out what i am doing wrong?
Tell me if i'd better provide some additional information.
Please help.

@chrislea
Copy link
Contributor

This looks like a problem with your DNS resolution, not our repository. It's saying that the curl command can't resolve an IP address for deb.nodesource.com. This is what I get when trying to resolve the IP addresses:

bash-3.2$ host deb.nodesource.com
deb.nodesource.com is an alias for d2buw04m05mirl.cloudfront.net.
d2buw04m05mirl.cloudfront.net has address 54.192.136.24
d2buw04m05mirl.cloudfront.net has address 54.192.136.146
d2buw04m05mirl.cloudfront.net has address 54.192.136.132
d2buw04m05mirl.cloudfront.net has address 54.192.136.248
d2buw04m05mirl.cloudfront.net has address 54.192.136.100
d2buw04m05mirl.cloudfront.net has address 54.192.136.205
d2buw04m05mirl.cloudfront.net has address 54.192.136.80
d2buw04m05mirl.cloudfront.net has address 54.192.136.144
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:2c00:1f:6523:6040:93a1
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:ac00:1f:6523:6040:93a1
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:ca00:1f:6523:6040:93a1
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:4000:1f:6523:6040:93a1
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:d200:1f:6523:6040:93a1
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:3800:1f:6523:6040:93a1
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:1200:1f:6523:6040:93a1
d2buw04m05mirl.cloudfront.net has IPv6 address 2600:9000:201d:2e00:1f:6523:6040:93a1

Which makes sense because the repository is served from a CDN. Until your computer can look up DNS for deb.nodesource.com correctly the repository won't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants