๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐ŸงLinux

[SOLVED] wget: unable to resolve host address Error

by _viper_ 2016. 5. 20.
๋ฐ˜์‘ํ˜•

๋ฆฌ๋ˆ…์Šค์—์„œ wget ์‚ฌ์šฉํ•˜์—ฌ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œํ•  ๊ฒฝ์šฐ ๋‚˜๋Š” ์—๋Ÿฌ์ž…๋‹ˆ๋‹ค.

์ €๋Š” 2๊ฐ€์ง€ ์—๋Ÿฌ๊ฐ€ ๋‚˜์„œ ์ •๋ฆฌํ•ด ๋ดค์–ด์š”.

 

๐Ÿšซ Error 1

wget: unable to resolve host address

 

๐Ÿ’ก SOLVED 1

resolv.conf ๋ฌธ์„œ์— nameserver 8.8.8.8 ์ถ”๊ฐ€ํ•ด์ค๋‹ˆ๋‹ค.

sudo vi /etc/resolv.conf 

nameserver 8.8.8.8 ----->์ถ”๊ฐ€

nameserver 8.8.8.8๋Š” ๊ตฌ๊ธ€ DNS ์ฃผ์†Œ์ž…๋‹ˆ๋‹ค. 

๊ตฌ๊ธ€ DNS๋ฅผ ์ด์šฉํ•ด์„œ ๋‹ค์šด๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ• ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋„ค์ž„์„œ๋ฒ„๋ฅผ ์ถ”๊ฐ€ํ•ด ์ฃผ๊ณ  wget์„ ์ด์šฉํ•˜์—ฌ ๋‹ค์‹œ ๋‹ค์šด ๋ฐ›์Šต๋‹ˆ๋‹ค.

 

๊ทธ๋Ÿฌ๋‹ค ๋ณด๋ฉด ๋˜ ๋‹ค๋ฅธ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค... ์ € ๊ฐ™์€ ๊ฒฝ์šฐ๋Š”...

 

๐Ÿšซ ERROR 2

cannot verify archive.apache.org's certificate, issued by `/C=US/O=Symantec Corporation/OU=Symantec Trust Network/CN=Symantec Class 3 Secure Server CA - G4':

  Unable to locally verify the issuer's authority.

To connect to archive.apache.org insecurely, use `--no-check-certificate'.

์•„๋ž˜ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ๋‚˜์™€์žˆ๋Š”๋ฐ๋„ ๊ฒ€์ƒ‰ํ•ด์„œ ์•Œ์•˜๋„ค์š”...

 

๐Ÿ’ก SOLVED 2

wget --no-check-certificate

--no-check-certificate ์ด ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜๋ฉด ์œ„์— ์—๋Ÿฌ๋„ ์žก๊ณ  ์ •์ƒ์ ์œผ๋กœ ๋‹ค์šด๋กœ๋“œ๋˜๋„ค์š”.