LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-05-2005, 04:37 PM   #1
magpieiain
LQ Newbie
 
Registered: Sep 2005
Location: Kent, England
Distribution: Suse 9.2 / Debian (almost)
Posts: 8

Rep: Reputation: 0
apt-get problem


I am having problems with apt-get update. I keep getting the following error message when I try apt-get update:

debian:~# apt-get update
Err htp://security.debian.org sarge/updates/main Packages
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err htp://security.debian.org sarge/updates/main Release
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err htp://security.debian.org sarge/updates/contrib Packages
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err htp://security.debian.org sarge/updates/contrib Release
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err htp://security.debian.org sarge/updates/non-free Packages
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err htp://security.debian.org sarge/updates/non-free Release
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch htp://security.debian.org/debian-security/dists/sarge/updates/main/binary-i386/Packages.gz Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch htp://security.debian.org/debian-security/dists/sarge/updates/main/binary-i386/Release Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch htp://security.debian.org/debian-security/dists/sarge/updates/contrib/binary-i386/Packages.gz Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch htp://security.debian.org/debian-security/dists/sarge/updates/contrib/binary-i386/Release Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch htp://security.debian.org/debian-security/dists/sarge/updates/non-free/binary-i386/Packages.gz Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch htp://security.debian.org/debian-security/dists/sarge/updates/non-free/binary-i386/Release Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Reading Package Lists... Done
W: Couldn't stat source package list htp://security.debian.org sarge/updates/main Packages (/var/lib/apt/lists/security.debian.org_debian-security_dists_sarge_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list htp://security.debian.org sarge/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_debian-security_dists_sarge_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list htp://security.debian.org sarge/updates/non-free Packages (/var/lib/apt/lists/security.debian.org_debian-security_dists_sarge_updates_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

I can resolve the host using host security.debian.org, and I can ping security.debian.org, so I guess I can assume that my network card is working and the server is up. However, when I try apt-get update or Synaptic I get the above. It happens with all the on-line repositories, so all I have is the CD's.

Can anyone help?

Thanks,

Iain
 
Old 09-05-2005, 04:43 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Hmm... it says "htp" instead of "http"; did you mistype that?
 
Old 09-06-2005, 02:51 AM   #3
magpieiain
LQ Newbie
 
Registered: Sep 2005
Location: Kent, England
Distribution: Suse 9.2 / Debian (almost)
Posts: 8

Original Poster
Rep: Reputation: 0
Yes - I don't have enough posts yet to post URL's so I had to change it. They should all read HTTP...a couple more posts and I will be able to post URLs.

Iain
 
Old 09-06-2005, 10:02 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
Post your /etc/apt/sources.list
and take a look at the one in my signature.
 
Old 09-06-2005, 03:30 PM   #5
magpieiain
LQ Newbie
 
Registered: Sep 2005
Location: Kent, England
Distribution: Suse 9.2 / Debian (almost)
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Craigevil,

Here is my /etc/apt/sources.list...

debian:/etc/apt# cat sources.list

deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - Official i386 Binary-6 (20050605)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - Official i386 Binary-5 (20050605)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - Official i386 Binary-4 (20050605)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - Official i386 Binary-3 (20050605)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - Official i386 Binary-2 (20050605)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r0 _Sarge_ - Official i386 Binary-1 (20050605)]/ unstable contrib main
deb http://security.debian.org/debian-security/ sarge/updates main contrib non-free

I have also copied and pasted your /etc/apt/sources.list file and then done apt-get update, but get a similar error...

debian:/etc/apt# apt-get update
Err ftp://sunsite.dk testing/non-free Packages
Could not connect to sunsite.dk:21 (32.1.7.168), connection timed out
Err ftp://metalab.unc.edu unstable/non-free Packages
Could not connect to metalab.unc.edu:21 (32.1.7.168), connection timed out
Err http://www.os-works.com testing/main Packages
Could not connect to www.os-works.com:80 (32.1.7.168), connection timed out
Err http://http.us.debian.org stable/main Packages
Could not connect to http.us.debian.org:80 (32.1.7.168), connection timed out
Err http://wine.sourceforge.net binary/ Packages
Could not connect to wine.sourceforge.net:80 (32.1.7.168), connection timed out
Err ftp://ftp.tux.org testing/non-free Packages
Could not connect to ftp.tux.org:21 (32.1.7.168), connection timed out
Err http://pkg-kde.alioth.debian.org ./ Packages
Could not connect to pkg-kde.alioth.debian.org:80 (32.1.7.168), connection timed out
Err http://secure-testing.debian.net etch/security-updates/main Packages
Could not connect to secure-testing.debian.net:80 (32.1.7.168), connection timed out
Err http://security.debian.org stable/updates/main Packages
Could not connect to security.debian.org:80 (32.1.7.168), connection timed out
Err ftp://ftp.nerim.net stable/main Packages
Could not connect to ftp.nerim.net:21 (32.1.7.168), connection timed out [IP: 32.1.7.168 21]
It goes one a bit more, but it is along the same lines, just different urls etc.

Does this help, becuase I have no idea!

Thanks again,

Iain
 
Old 09-07-2005, 04:53 AM   #6
moistTowelette
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
The IP addresses it's giving are all the same even though the URLs are different, but if you can surf to here then obviously you can resolve URLs correctly... have you checked /etc/hosts for any bogus entries? If you ping the IP in your output you get no response, so there's no server there and your computer isn't resolving the URLs in sources.list properly... I just couldn't tell you why.
 
Old 09-07-2005, 03:37 PM   #7
magpieiain
LQ Newbie
 
Registered: Sep 2005
Location: Kent, England
Distribution: Suse 9.2 / Debian (almost)
Posts: 8

Original Poster
Rep: Reputation: 0
I am not sure what is going on, but if I put the IP address and name in my /etc/hosts for an FTP server I can get it to work, but if I try a http server it doesn't....and if I don't put each host in /etc/hosts it doesn't work. I want to get security.debian.org working, but that one seems to be one that just refuses to.

I tried putting another DNS server in my /etc/resolv.conf, but that just gets overwritten, so I don't know if its is my wireless router/modem.

I am still pretty new to Debian (and Linux generally) so I am a bit confused as to what to try next.

Thanks again,

Iain
 
Old 09-07-2005, 03:50 PM   #8
magpieiain
LQ Newbie
 
Registered: Sep 2005
Location: Kent, England
Distribution: Suse 9.2 / Debian (almost)
Posts: 8

Original Poster
Rep: Reputation: 0
BTW my /etc/hosts is:

cat /etc/hosts
127.0.0.1 localhost.localdomain localhost deb-downstairs debian

# The following lines are desirable for IPv6 capable hosts
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
193.201.200.66 the.earth.li
83.142.228.128 ftp.uk.debian.org
128.101.80.133 ftp.debian.org
194.109.137.218 security.debian.org


Iain
 
Old 09-07-2005, 04:09 PM   #9
moistTowelette
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
Weird. Every reason I can think of for that happening would also affect your ability to do anything online, so I'm guessing it has something specific to do with apt-get. Remove all extra entries from /etc/hosts (you should only have 1, maybe 2 entries in there anyway if you're a home user) and try doing a manual DNS lookup - type 'host security.debian.org' and see what IP you get. If you get 194.109.137.218 then your DNS lookup is working and the problem has to be something specific to apt-get. If this is the case then it might pay to load up Synaptic package manager (or get it if you don't already have it), which is basically just a graphical front end for apt-get. Have a look through the preferences and settings in there and make sure everything is sweet.
 
Old 09-07-2005, 04:13 PM   #10
moistTowelette
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
yeah sorry you must have posted just before I did... take all entries out of /etc/hosts except for the localhost entry and the ipv6 entries. I know they're helping at the moment but you shouldn't need them.
 
Old 09-07-2005, 06:15 PM   #11
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Quote:
Originally posted by magpieiain
BTW my /etc/hosts is:

cat /etc/hosts
127.0.0.1 localhost.localdomain localhost deb-downstairs debian

# The following lines are desirable for IPv6 capable hosts
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
193.201.200.66 the.earth.li
83.142.228.128 ftp.uk.debian.org
128.101.80.133 ftp.debian.org
194.109.137.218 security.debian.org


Iain
It seems your network card did not get any IP address from the DHCP server.

Do
ifconfig and see if your network interface gets an IP address

if it does not then do:

dhclient eth1 (or what ever is your network interface address)

after that do:

apt-get update

Hopefully you will be able to resolve the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with apt efi360 Debian 18 12-24-2005 06:12 PM
apt problem filwhua SUSE / openSUSE 3 04-23-2005 08:22 AM
problem with apt-get himanshuabc Debian 1 10-21-2004 05:46 PM
Problem with apt-get scng Linux - General 2 09-16-2004 02:39 PM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration