Peter Robert Jones's picture

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:~#

Forum: 
Jeremy Davis's picture

It looks like your system does not have access to the net. To confirm

ping www.google.com

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'.

Jeremy Davis's picture

Try pinging it (ie ping archive.turnkeylinux.org) and see what happens. It may have just been a momentary issue, or it could be an issue with your DNS, networking or some proxying or firewall issues. Basically it could be lots of things - but most of them on your end.

Also it looks like you are using the old appliances. Perhaps also consider upgrading to a new appliance.

Jeremy Davis's picture

I'd just wait and hope that it completes.

Regardless I just doublechecked from where I am and it's all working fine from here. You're actually getting a better ping than me and we are both resolving the same IP so have no idea at all really. My guess would be a networking/internet issue, but I'm only guessing. You'll need to do some troubleshooting.

Jeremy Davis's picture

I don't have much experience with running behind proxies, but I have heard that apt can be a pain to run behind a proxy. So although your plan will involve a little mucking around with VBox NAT config it hopefully will work ok for you, but I'm not sure. Be interesting to hear.

So let us know how you go. If your plan works, it'd be great if you could post instructions for others in the same situation to follow.

Jeremy Davis's picture

I'm not sure at all, but many have reported various issues with VMware ESX/ESXi so perhaps it's worth having a look through some of the threads and try a few things (if that's what you meant by VMware). If you meant VMware player then perhaps try VirtualBox. It's much better IMO.

My other thought is that it could be comething to do with the console (not sure how you are currently connecting - but assuming you are using a VMware window/console). Perhaps try running via SSH and/or WebShell.

Jeremy Davis's picture

This is the forums for TurnKey Linux (not Kali)...

Having said that it looks like a pretty generic problem and personally the first step I would take is to follow the suggestions!

...maybe run apt-get update or try with --fix-missing?
Jeremy Davis's picture

Please see my comment on the GitHub issue for further details.

Jeremy Davis's picture

You're most welcome, sorry about the hiccup... If you have any questions or concerns, please feel free to open a new thread (requires a free website user account).

Add new comment