Hanya mencoba VirtualBox & Vagrant dan lucid64
VM awal saya tidak dapat menyelesaikan us.archive.ubuntu.com
tetapi dapat menyelesaikan security.ubuntu.com
, google.com
dan www.apple.com
(tetapi tidak apple.com
w / out www
?!?!).
Tuan rumah yang menjalankan VM dapat menyelesaikan dengan us.archive.ubuntu.com
baik serta setiap domain lainnya.
Tidak tahu apa yang terjadi?!?
vagrant@lucid64:~$ sudo apt-get install dkms -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fakeroot make patch
Suggested packages:
make-doc diffutils-doc
The following NEW packages will be installed:
dkms fakeroot make patch
0 upgraded, 4 newly installed, 0 to remove and 23 not upgraded.
Need to get 458kB of archives.
After this operation, 2,359kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ lucid/main make 3.81-7ubuntu1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ lucid/main patch 2.6-2ubuntu1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main dkms 2.1.1.2-2ubuntu1
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ lucid/main fakeroot 1.14.4-1ubuntu1
Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_3.81-7ubuntu1_amd64.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/patch/patch_2.6-2ubuntu1_amd64.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/d/dkms/dkms_2.1.1.2-2ubuntu1_all.deb Could not resolve 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/f/fakeroot/fakeroot_1.14.4-1ubuntu1_amd64.deb Could not resolve 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Instalasi vanila. Usaha pertamaku. Ikuti instruksi dalam buku Deploying Rails.
Edit: Menambahkan /etc/resolv.conf
:
vagrant@lucid64:~$ cat /etc/resolv.conf
nameserver 10.0.2.3
domain mydomain.com
search mydomain.com
Juga beberapa info gali:
vagrant@lucid64:~$ dig us.archive.ubuntu.com
;; Truncated, retrying in TCP mode.
; <<>> DiG 9.7.0-P1 <<>> us.archive.ubuntu.com
;; global options: +cmd
;; connection timed out; no servers could be reached
tetapi tampaknya untuk menyelesaikan nama domain saat +trace
bendera digunakan?!? (Atau apakah saya salah membaca ini?)
vagrant@lucid64:~$ dig us.archive.ubuntu.com +trace
; <<>> DiG 9.7.0-P1 <<>> us.archive.ubuntu.com +trace
;; global options: +cmd
. 199183 IN NS d.root-servers.net.
. 199183 IN NS k.root-servers.net.
. 199183 IN NS m.root-servers.net.
. 199183 IN NS a.root-servers.net.
. 199183 IN NS j.root-servers.net.
. 199183 IN NS e.root-servers.net.
. 199183 IN NS l.root-servers.net.
. 199183 IN NS b.root-servers.net.
. 199183 IN NS f.root-servers.net.
. 199183 IN NS g.root-servers.net.
. 199183 IN NS h.root-servers.net.
. 199183 IN NS i.root-servers.net.
. 199183 IN NS c.root-servers.net.
;; Received 256 bytes from 10.0.2.3#53(10.0.2.3) in 1 ms
com. 172800 IN NS a.gtld-servers.net.
com. 172800 IN NS b.gtld-servers.net.
com. 172800 IN NS c.gtld-servers.net.
com. 172800 IN NS d.gtld-servers.net.
com. 172800 IN NS e.gtld-servers.net.
com. 172800 IN NS f.gtld-servers.net.
com. 172800 IN NS g.gtld-servers.net.
com. 172800 IN NS h.gtld-servers.net.
com. 172800 IN NS i.gtld-servers.net.
com. 172800 IN NS j.gtld-servers.net.
com. 172800 IN NS k.gtld-servers.net.
com. 172800 IN NS l.gtld-servers.net.
com. 172800 IN NS m.gtld-servers.net.
;; Received 499 bytes from 193.0.14.129#53(k.root-servers.net) in 191 ms
ubuntu.com. 172800 IN NS ns1.canonical.com.
ubuntu.com. 172800 IN NS ns2.canonical.com.
ubuntu.com. 172800 IN NS ns3.canonical.com.
;; Received 151 bytes from 192.42.93.30#53(g.gtld-servers.net) in 46 ms
us.archive.ubuntu.com. 600 IN A 91.189.92.192
us.archive.ubuntu.com. 600 IN A 91.189.92.193
us.archive.ubuntu.com. 600 IN A 91.189.91.13
us.archive.ubuntu.com. 600 IN A 91.189.91.23
us.archive.ubuntu.com. 600 IN A 91.189.91.24
us.archive.ubuntu.com. 600 IN A 91.189.91.25
us.archive.ubuntu.com. 600 IN A 91.189.92.151
us.archive.ubuntu.com. 600 IN A 91.189.92.152
us.archive.ubuntu.com. 600 IN A 91.189.92.153
us.archive.ubuntu.com. 600 IN A 91.189.92.154
us.archive.ubuntu.com. 600 IN A 91.189.92.155
us.archive.ubuntu.com. 600 IN A 91.189.92.176
us.archive.ubuntu.com. 600 IN A 91.189.92.177
us.archive.ubuntu.com. 600 IN A 91.189.92.179
us.archive.ubuntu.com. 600 IN A 91.189.92.180
us.archive.ubuntu.com. 600 IN A 91.189.92.181
us.archive.ubuntu.com. 600 IN A 91.189.92.182
us.archive.ubuntu.com. 600 IN A 91.189.92.183
us.archive.ubuntu.com. 600 IN A 91.189.92.184
ubuntu.com. 172800 IN NS ns2.canonical.com.
ubuntu.com. 172800 IN NS ns3.canonical.com.
ubuntu.com. 172800 IN NS ns1.canonical.com.
;; Received 455 bytes from 91.189.95.3#53(ns2.canonical.com) in 183 ms
Edit2 - lebih banyak menggali:
vagrant@lucid64:~$ dig @10.0.2.3 security.ubuntu.com +short
91.189.92.181
91.189.92.184
91.189.92.151
91.189.92.166
vagrant@lucid64:~$ dig @10.0.2.3 us.archive.ubuntu.com
;; Truncated, retrying in TCP mode.
; <<>> DiG 9.7.0-P1 <<>> @10.0.2.3 us.archive.ubuntu.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
ubuntu
virtualbox
apt
resolv.conf
vagrant
Meltemi
sumber
sumber
/etc/resolv.conf
info (di atas). Biar tahu ke mana harus mencari jika Anda ingin lebih ...Jawaban:
Saya memecahkan masalah itu dengan menambahkan baris di bawah ini ke Vagrantfile saya:
Di bawah ini adalah keseluruhannya:
sumber
Sepertinya itu karena Anda tidak dapat menghubungi set server DNS sama sekali, dan mencoba menggunakan petunjuk root (yang, menurut pengalaman saya, sangat tidak dapat diandalkan untuk pengguna akhir). Bisakah kamu ping itu? Apakah Anda diatur ke mode dijembatani, tanpa firewall menghalangi?
sumber
10.0.2.3
host. Tampaknya VirtualBox (atau Vagrant ) telah memberikan VM IP10.0.2.2
. Tuan rumah di10.0.1.201
. VB / gelandangan mengatur nameserver untuk10.0.2.3
yang "karya" dan resolves beberapa domain (lihat edit2 di atas), tetapi bukan yang paling penting untuk kotak Ubuntu.Ini tampaknya telah "ajaib" diselesaikan sendiri ketika saya memutakhirkan host Mac OS dari Lion (10.7.4) ke Mountain Lion (10.8) sehingga tidak akan membuang lagi siklus di atasnya ..
sumber