Autor |
Nachricht |
|
Titel: apt-get update and apt.sources.list problems
Verfasst am: 05.10.2006, 20:28 Uhr
|
|
Anmeldung: 25. Jul 2006
Beiträge: 14
|
|
Two weeks ago I started having problems with H2's script. All six of my computers have the same problem. I start the h2 script (which I've used for many months) and it says testing for internet connection. It never finds the connection even though I've checked and everything is connected. Sometimes if I run it several times it will connect. If I use apt-get update manually it works.
Has anyone else seen this?
Problem number 2: I installed 64-2005-04-lite two weeks ago and the install went fine. Then I tried to update using h2's script and got the above problem. However, when I use apt-get update manually I get cant stat source file http:// amd64.debian.net sid ...
Also, I only have these source files in apt list:
#Debian
deb http://kanotix.com/files/debian sid main contrib non-free
deb-src http://amd64.debian-pure64/ sid main contrib non-free
#Kanotix
deb http://kanotix.com/files/debian sid main contrib non-free
deb-src http://kanotix.com/files/debian sid main contrib non-free
So I am not able to update or dist upgrade. Has anyone else seen this?
Would appreciate any help - thanks |
|
|
|
|
 |
|
Titel:
Verfasst am: 05.10.2006, 20:43 Uhr
|
|
Anmeldung: 17. Mai 2005
Beiträge: 27
|
|
|
|
 |
|
Titel:
Verfasst am: 05.10.2006, 20:49 Uhr
|
|
Anmeldung: 25. Jul 2006
Beiträge: 14
|
|
Are you saying to replace what I have with the above? Meaning remove the Debian section and subsitute with your suggestion. |
|
|
|
|
 |
|
Titel:
Verfasst am: 05.10.2006, 21:00 Uhr
|
|
Anmeldung: 17. Mai 2005
Beiträge: 27
|
|
|
|
 |
|
Titel:
Verfasst am: 06.10.2006, 00:55 Uhr
|
|
Anmeldung: 13. Mai 2005
Beiträge: 732
Wohnort: Texas
|
|
dweebman hat folgendes geschrieben::
Are you saying to replace what I have with the above? Meaning remove the Debian section and subsitute with your suggestion.
Yes |
_________________ Always acknowledge a fault. This will throw those in authority off their guard and give you an opportunity to commit more.
Mark Twain
|
|
|
|
 |
|
Titel:
Verfasst am: 06.10.2006, 02:20 Uhr
|
|
Anmeldung: 12. Mar 2005
Beiträge: 1005
|
|
|
|
 |
|
Titel:
Verfasst am: 06.10.2006, 11:17 Uhr
|
|

Anmeldung: 29. Mar 2005
Beiträge: 96
Wohnort: Terra
|
|
|
|
 |
|
Titel:
Verfasst am: 06.10.2006, 18:39 Uhr
|
|
Anmeldung: 25. Jul 2006
Beiträge: 14
|
|
Thanks to everyone for their suggestions. I really appreciate the help!
Craigevil's apt.sources.list suggestion fixed the amd64 box. Thanks so much! |
|
|
|
|
 |
|
Titel:
Verfasst am: 06.10.2006, 18:59 Uhr
|
|
Anmeldung: 12. Mar 2005
Beiträge: 1005
|
|
dweebman, I added another start up option, -S [that's an upper case S that is], this will skip the connection test. Don't mistake this for the current -s, lower case, which skips most items that require an internet connection.
If it does handle it, I might add a sticky option to always skip connection tests.
Download the latest version of the script and let me know if that fixes it. My guess is that somehow or other somewhere is blocking wget requests. Why this is happening is hard to say. I might try a workaround if I hear of this again, but ideally the -S option will handle this unusual situation fine.
The way the connection stuff works is first it makes a 4 second time out request for a page that will always be up, then a 7 second timeout, then a 15 second time out. Since these requests use the --spider option on wget, they are usually essentially instantaneous no matter how slow a connection you have. So there is definitely some type of issue somewhere in the network, or in your configured dns servers.
the rest of the script uses I think a 20 second time out value for all other wget requests. The fact that apt works strongly suggests that wget is being severely slowed down somehow or somewhere by something. |
_________________ Read more on dist-upgrades using du-fixes-h2.sh script.
New: rdiff-backup script
|
|
|
|
 |
|
Titel:
Verfasst am: 06.10.2006, 20:31 Uhr
|
|

Anmeldung: 05. Dez 2005
Beiträge: 414
Wohnort: Auckland, New Zealand
|
|
h2, sometimes when I run your script but haven't don't init 3 yet so the script does that for me, and then goes onto testing the internet connection but X is still closing down and takes a while on my old pc (it has so stop init 5 services too), and so because it's busy it times out and the script exits saying there's no internet connection. So when I run the scirpt again (alread in init 3 now) it works fine. It didn't seem to go onto the a 7 second timeout, then a 15 second time out, unless you've just added that recently? |
_________________ Linux is evolution, not intelligent design - Linus Torvalds
|
|
|
|
 |
|
Titel:
Verfasst am: 06.10.2006, 21:09 Uhr
|
|
Anmeldung: 12. Mar 2005
Beiträge: 1005
|
|
I changed the way the connection test worked, but it wasn't that recently, maybe 1 or 2 months ago, I don't remember. Before it used ping for the first test, then wget --spider for tests 2 and 3, but in the case of a failled connection none of the ping options to set the time out seemed to work, so the delays could get really annoying before the test would register as failed, so I switched it all to wget --spider, which is roughly the same thing, it just queries with get in http, but doesn't actually get anything but the file header, which is essentially instant unless there are network issues.
Glad to see the init 3 works the way it's intended, that happens to me all the time, although it seems like my systems all handle the actual test fine even as x is shutting down, although I do sometimes see it go to test 2, but that's all usually. I can't count how many times I've gone to console mode, and forget to go to init 3. |
_________________ Read more on dist-upgrades using du-fixes-h2.sh script.
New: rdiff-backup script
|
|
|
|
 |
|
Titel:
Verfasst am: 08.10.2006, 14:52 Uhr
|
|
Anmeldung: 25. Jul 2006
Beiträge: 14
|
|
h2 the -S worked. I was able to update and dist-upgrade. Thanks! |
|
|
|
|
 |
|