TurnKey Linux Virtual Appliance Library

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

Jeremy's picture

It looks like your system

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

apt-get update fails

Hi,

I get the following error when I try to update the apt-get.

 #apt-get update
Hit http://archive.ubuntu.com hardy-security Release.gpg
Hit http://archive.ubuntu.com hardy Release.gpg
Hit http://archive.ubuntu.com hardy-updates Release.gpg
Hit http://archive.ubuntu.com hardy-security Release
Hit http://archive.ubuntu.com hardy Release
Hit http://archive.ubuntu.com hardy-updates Release
Hit http://archive.ubuntu.com hardy-security/main Packages
Hit http://archive.ubuntu.com hardy-security/universe Packages
Hit http://archive.ubuntu.com hardy/main Packages
Hit http://archive.ubuntu.com hardy/universe Packages
Hit http://archive.ubuntu.com hardy-updates/main Packages
Hit http://archive.ubuntu.com hardy-updates/universe Packages
Err http://archive.turnkeylinux.org hardy-security Release.gpg                 u
  Could not connect to archive.turnkeylinux.org:80 (97.107.134.22), connection timed out
Err http://archive.turnkeylinux.org hardy Release.gpg

  Unable to connect to archive.turnkeylinux.org http: 

 

Please suggest me, how to overcome this issue?

 

Thanks and Regards,
Pandiarajan

Jeremy's picture

Looks like that for some reason you cannot connect to TKL repo

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.

  Hi, ping

 

Hi,
ping archive.turnkeylinux.org
PING turnkeylinux.org (97.107.134.22) 56(84) bytes of data.
64 bytes from turnkeylinux.org (97.107.134.22): icmp_seq=1 ttl=45 time=274 ms
64 bytes from turnkeylinux.org (97.107.134.22): icmp_seq=2 ttl=45 time=289 ms
64 bytes from turnkeylinux.org (97.107.134.22): icmp_seq=3 ttl=45 time=289 ms
64 bytes from turnkeylinux.org (97.107.134.22): icmp_seq=4 ttl=45 time=286 ms
64 bytes from turnkeylinux.org (97.107.134.22): icmp_seq=9 ttl=45 time=288 ms
64 bytes from turnkeylinux.org (97.107.134.22): icmp_seq=10 ttl=45 time=278 ms
 
--- turnkeylinux.org ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9046ms
rtt min/avg/max/mdev = 274.847/287.774/299.772/6.752 ms
root@phpbb:~# apt-get update
Hit http://archive.ubuntu.com hardy-security Release.gpg
Hit http://archive.ubuntu.com hardy Release.gpg
Hit http://archive.ubuntu.com hardy-updates Release.gpg
Hit http://archive.ubuntu.com hardy-security Release
Hit http://archive.ubuntu.com hardy Release
Hit http://archive.ubuntu.com hardy-updates Release
Hit http://archive.ubuntu.com hardy-security/main Packages
Hit http://archive.ubuntu.com hardy-security/universe Packages
Hit http://archive.ubuntu.com hardy/main Packages
Hit http://archive.ubuntu.com hardy/universe Packages
Hit http://archive.ubuntu.com hardy-updates/main Packages
Hit http://archive.ubuntu.com hardy-updates/universe Packages
75% [Connecting to archive.turnkeylinux.org (97.107.134.22)] [Connecting to security.debian.org (212.211.132.250)]
 
then it stops..
 
What could be the problem?
 
Thanks and Regards,
Pandiarajan K
Jeremy's picture

Sometimes need to be patient

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.

Hi Jeremy, Thanks for your

Hi Jeremy,

Thanks for your reply..

Regards,
Pandiarajan

I have the same problem

I can ping all the repositories with very low latency, but apt-get update fails completely

I am running the applieance from virtualbox in bridged mode

Hi, Please check the Proxy

Hi,

Please check the Proxy server that you use!!

Thanks,
Pandiarajan K

Yep, I am pretty sure it's a

Yep, I am pretty sure it's a proxy issue... I am going to switch the networking mode of the appliance in virtual box to NAT with the necessary port forwarding so that I can use the IP of the host which has the necessary clearances to acess the Ubuntu repos...

 

thanks,

Jeremy's picture

That sounds like a reasonable plan

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.

apt-get upgrade freeze

Hello, when I try running the following commands

apt-get upgrade

or

dpkg --set-selections<install_misc/ubuntu.packages

on the Turnkey LAMP install my computer freezes. Any suggestiongs on what to do?

I am running the install on VMware.

Any suggestions would be greatly appreciated!

Jeremy's picture

Where are you running commands from?

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.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)