Server is unable to make outgoing ftp requests. How to open this?

user165269 asked:

I have setup a new server on rackspace & have used these exact rules in iptables http://articles.slicehost.com/assets/2007/9/4/iptables.txt

I don’t want server to act as a ftp server but when I am trying to install any package say
sudo apt-get install ruby, I get the following errors

Err http://ftp.us.debian.org/debian/ squeeze/main libruby1.8 amd64 1.8.7.302-2
  404  Not Found [IP: 2610:148:1f10:3::89 80]
Err http://ftp.us.debian.org/debian/ squeeze/main ruby1.8 amd64 1.8.7.302-2
  404  Not Found [IP: 2610:148:1f10:3::89 80]
Failed to fetch http:// ftp.us.debian.org/debian/pool/main/r/ruby1.8/libruby1.8_1.8.7.302-2_amd64.deb  404  Not Found [IP: 2610:148:1f10:3::89 80]
Failed to fetch http:// ftp.us.debian.org/debian/pool/main/r/ruby1.8/ruby1.8_1.8.7.302-2_amd64.deb  404  Not Found [IP: 2610:148:1f10:3::89 80]

My answer:


This has nothing to do with FTP. The packages you requested simply aren’t on the repository server. A common 404 error.

Make sure you run apt-get update before attempting to install anything.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.