Forum: 

apt-get update fails

cvkenk's picture

When I attempt to update turnkey I receive the following.

 

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.92.172). - connect (111 Connection refused) [IP: 91.189.92.172 80]
W: Failed to fetch http://security.debian.org/dists/lenny/updates/Release.gpg  Could not connect to security.debian.org:80 (149.20.20.6). - connect (111 Connection refused) [IP: 149.20.20.6 80]
 
Please note; this box can securely access the web, can ping www.google.com, can return IP Address, can be reached via the LAN etc... I do not believe this is a networking issue but would be more than happy if I was proven to be wrong on that question, as I am still somewhat new to linux and turnkey.  
What steps should i take to troubleshoot and hopefully resolve this issue.
 
Adrian Moya's picture

If you are behind a proxy, try running

export http_proxy=http://your-proxy-ip/ 

and then run apt-get update. If that work, you'll need to set up the proxy settings for apt-get.

Oscar's picture

In my opinion, is a better answer:

 

export http_proxy=http://[your-proxy-ip]:[your-proxy-port-number]/ 

without the Square brackets [ ]

 

Thanx for the info!

Post new comment