PDA

View Full Version : Debian Lenny apt-get update failed to fetch


qriz
30th October 2009, 14:37
here's the out put of apt-get update

# apt-get update
Err http://ftp.us.debian.org lenny Release.gpg
Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://ftp.us.debian.org lenny/main Translation-en_US
Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Ign http://ftp.us.debian.org lenny Release
Ign http://ftp.us.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.us.debian.org lenny/main Sources/DiffIndex
Ign http://ftp.us.debian.org lenny/main Packages
Ign http://ftp.us.debian.org lenny/main Sources
Ign http://ftp.us.debian.org lenny/main Packages
Ign http://ftp.us.debian.org lenny/main Sources
Err http://ftp.us.debian.org lenny/main Packages
Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://ftp.us.debian.org lenny/main Sources
Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://volatile.debian.org lenny/volatile Release.gpg
Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]
Err http://http.us.debian.org stable Release.gpg
Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://http.us.debian.org stable/main Translation-en_US
Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://http.us.debian.org stable/contrib Translation-en_US
Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://http.us.debian.org stable/non-free Translation-en_US
Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Ign http://http.us.debian.org stable Release
Ign http://http.us.debian.org stable/main Packages
Ign http://http.us.debian.org stable/contrib Packages
Ign http://http.us.debian.org stable/non-free Packages
Ign http://http.us.debian.org stable/main Packages
Ign http://http.us.debian.org stable/contrib Packages
Ign http://http.us.debian.org stable/non-free Packages
Err http://http.us.debian.org stable/main Packages
Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://http.us.debian.org stable/contrib Packages
Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://http.us.debian.org stable/non-free Packages
Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]
Err http://volatile.debian.org lenny/volatile/main Translation-en_US
Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]
Err http://security.debian.org lenny/updates Release.gpg
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Ign http://volatile.debian.org lenny/volatile Release
Err http://security.debian.org lenny/updates/main Translation-en_US
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Ign http://volatile.debian.org lenny/volatile/main Packages
Err http://security.debian.org stable/updates Release.gpg
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Ign http://volatile.debian.org lenny/volatile/main Sources
Err http://security.debian.org stable/updates/main Translation-en_US
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Ign http://volatile.debian.org lenny/volatile/main Packages
Err http://security.debian.org stable/updates/contrib Translation-en_US
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Ign http://volatile.debian.org lenny/volatile/main Sources
Err http://security.debian.org stable/updates/non-free Translation-en_US
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Err http://volatile.debian.org lenny/volatile/main Packages
Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]
Ign http://security.debian.org lenny/updates Release
Err http://volatile.debian.org lenny/volatile/main Sources
Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]
Ign http://security.debian.org stable/updates Release
Ign http://security.debian.org lenny/updates/main Packages
Ign http://security.debian.org lenny/updates/main Sources
Ign http://security.debian.org stable/updates/main Packages
Ign http://security.debian.org stable/updates/contrib Packages
Ign http://security.debian.org stable/updates/non-free Packages
Ign http://security.debian.org lenny/updates/main Packages
Ign http://security.debian.org lenny/updates/main Sources
Ign http://security.debian.org stable/updates/main Packages
Ign http://security.debian.org stable/updates/contrib Packages
Ign http://security.debian.org stable/updates/non-free Packages
Err http://security.debian.org lenny/updates/main Packages
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Err http://security.debian.org lenny/updates/main Sources
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Err http://security.debian.org stable/updates/main Packages
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Err http://security.debian.org stable/updates/contrib Packages
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
Err http://security.debian.org stable/updates/non-free Packages
Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]
W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/Release.gpg Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/main/i18n/Translation-en_US.bz2 Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://security.debian.org/dists/lenny/updates/Release.gpg Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/i18n/Translation-en_US.bz2 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://volatile.debian.org/debian-volatile/dists/lenny/volatile/Release.gpg Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]

W: Failed to fetch http://volatile.debian.org/debian-volatile/dists/lenny/volatile/main/i18n/Translation-en_US.bz2 Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/Release.gpg Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/main/i18n/Translation-en_US.bz2 Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/contrib/i18n/Translation-en_US.bz2 Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/non-free/i18n/Translation-en_US.bz2 Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://security.debian.org/dists/stable/updates/Release.gpg Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/stable/updates/main/i18n/Translation-en_US.bz2 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/stable/updates/contrib/i18n/Translation-en_US.bz2 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/stable/updates/non-free/i18n/Translation-en_US.bz2 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/main/binary-i386/Packages Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/main/source/Sources Cannot initiate the connection to ftp.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/main/binary-i386/Packages Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/contrib/binary-i386/Packages Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/non-free/binary-i386/Packages Cannot initiate the connection to http.us.debian.org:80 (204.152.191.39). - connect (22 Invalid argument) [IP: 204.152.191.39 80]

W: Failed to fetch http://volatile.debian.org/debian-volatile/dists/lenny/volatile/main/binary-i386/Packages Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]

W: Failed to fetch http://volatile.debian.org/debian-volatile/dists/lenny/volatile/main/source/Sources Cannot initiate the connection to volatile.debian.org:80 (130.89.149.227). - connect (22 Invalid argument) [IP: 130.89.149.227 80]

W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/binary-i386/Packages Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/source/Sources Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/stable/updates/main/binary-i386/Packages Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/stable/updates/contrib/binary-i386/Packages Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

W: Failed to fetch http://security.debian.org/dists/stable/updates/non-free/binary-i386/Packages Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (22 Invalid argument) [IP: 128.31.0.36 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.


/etc/apt/sources.list looks like this
#
# deb cdrom:[Debian GNU/Linux 5.0.3 _Lenny_ - Official i386 CD Binary-1 20090905-08:23]/ lenny main

#deb cdrom:[Debian GNU/Linux 5.0.3 _Lenny_ - Official i386 CD Binary-1 20090905-08:23]/ lenny main

deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free


what can i do?

falko
31st October 2009, 14:25
That's strange. Does it still happen, or was it a temporary issue?

beezer1424
31st October 2009, 18:54
that happened to me last night as I was reinstalling a new server (from the perfect server debian +ISPConfig3). What was happening was that my existing DHCP server was set to hand out old local DNS server IPs. I editted the dhcp server to send only the external DNS servers and I was able to install the system with no issue.

I don't know if this is a similar situation for you, but good luck

qriz
31st October 2009, 23:19
that happened to me last night as I was reinstalling a new server (from the perfect server debian +ISPConfig3). What was happening was that my existing DHCP server was set to hand out old local DNS server IPs. I editted the dhcp server to send only the external DNS servers and I was able to install the system with no issue.

I don't know if this is a similar situation for you, but good luck

I don't know how it happened (the only thing i can think of was a power outage), but my /etc/network/interfaces suddenly looked like this

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

auto eth0:0
iface eth0:0 inet static
address 127.0.0.1
netmask 255.255.255.0
network 127.0.0.0
broadcast 127.0.0.255
gateway 192.168.0.1


and on top of it /etc/hosts

127.0.0.1 localhost.localdomain localhost
127.0.0.1 xxxx.xxxx.xxx xxxxxxx

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

after changing both back to perfect server guide specs everything's back to normal