HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Debian Lenny apt-get update failed to fetch (http://www.howtoforge.com/forums/showthread.php?t=40550)

qriz 30th October 2009 14:37

Debian Lenny apt-get update failed to fetch
 
here's the out put of apt-get update

Quote:

# 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/dist...tion-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/len...es/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/len...tion-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-vo...le/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-vo...tion-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/dis...le/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/dis...tion-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/dis...tion-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/dis...tion-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/sta...es/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/sta...tion-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/sta...tion-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/sta...tion-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/dist...-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/dist...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/dis...-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/dis...-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/dis...-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-vo...-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-vo...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/len...-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/len...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/sta...-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/sta...-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/sta...-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
Quote:

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

I am no expert, but...
 
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

Thanks
 
Quote:

Originally Posted by beezer1424 (Post 209183)
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

Quote:

# 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

Quote:

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


All times are GMT +2. The time now is 06:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.