Forum archive
apt-get update fails to work on new appliance
Hi,
I have just installed the new Ruby on Rails Appliance through Virtual box. I can connect via a web browser,
But when I login to a command prompt and do apt-get update
I get the eror below:
Please can you help?
rails login: root Password: Linux rails 2.6.24-24-generic #1 SMP Sat Aug 22 01:06:14 UTC 2009 i686 The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To access official Ubuntu documentation, please visit: http://help.ubuntu.com/ root@rails:~# sudo apt-get update Err http://archive.ubuntu.com hardy-security Release.gpg Could not connect to archive.ubuntu.com:80 (91.189.88.45). - connect (111 Connection refused) [IP: 91.189.88.45 80] Err http://archive.ubuntu.com hardy Release.gpg Could not connect to archive.ubuntu.com:80 (91.189.88.45). - connect (111 Connection refused) [IP: 91.189.88.45 80] Err http://archive.ubuntu.com hardy-updates Release.gpg Could not connect to archive.ubuntu.com:80 (91.189.88.45). - connect (111 Connection refused) [IP: 91.189.88.45 80] Err http://archive.turnkeylinux.org hardy-security Release.gpg Could not connect to archive.turnkeylinux.org:80 (97.107.134.22). - connect (111 Connection refused) Err http://archive.turnkeylinux.org hardy Release.gpg Could not connect to archive.turnkeylinux.org:80 (97.107.134.22). - connect (111 Connection refused) Reading package lists... Done W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/hardy-security/Release.gpg Could not connect to archive.turnkeylinux.org:80 (97.107.134.22). - connect (111 Connection refused) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-security/Release.gpg Could not connect to archive.ubuntu.com:80 (91.189.88.45). - connect (1 11 Connection refused) [IP: 91.189.88.45 80] W: Failed to fetch http://archive.turnkeylinux.org/ubuntu/dists/hardy/Release.gpg Could not connect to archive.turnkeylinux.org:80 (97.107.134.22). - connec t (111 Connection refused) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy/Release.gpg Could not connect to archive.ubuntu.com:80 (91.189.88.45). - connect (111 Connec tion refused) [IP: 91.189.88.45 80] W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/Release.gpg Could not connect to archive.ubuntu.com:80 (91.189.88.45). - connect (11 1 Connection refused) [IP: 91.189.88.45 80] W: Some index files failed to download, they have been ignored, or old ones used instead. W: You may want to run apt-get update to correct these problems root@rails:~#
It looks like your system does not have access to the net. To confirm
Assuming thats the problem I would suspect that either you have host only networking (ie it can connect fine to the host machine but not the outside world) or you have a firewall issue.
Try altering the network connection (in the VBox settings for your VM) to 'bridged mode'.