25.04.2024, 06:05 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
dweebman
Titel: apt-get update and apt.sources.list problems  BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
moltas
Titel:   BeitragVerfasst am: 05.10.2006, 20:43 Uhr



Anmeldung: 17. Mai 2005
Beiträge: 27

you need this for deb 64

deb http://ftp.debian.org/debian unstable main contrib non-free
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
dweebman
Titel:   BeitragVerfasst 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.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
moltas
Titel:   BeitragVerfasst am: 05.10.2006, 21:00 Uhr



Anmeldung: 17. Mai 2005
Beiträge: 27

debian downt use
deb-src http://amd64.debian-pure64/ sid main contrib non-free
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
jackiebrown
Titel:   BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
h2
Titel:   BeitragVerfasst am: 06.10.2006, 02:20 Uhr



Anmeldung: 12. Mar 2005
Beiträge: 1005

dweebman, try this experiment: go into init 3, then do this:

wget -T 4 -t 1 -q --spider http://www.google.com/ && echo true || echo false

tell me what it echoes, true or false

If it echoes false there is something weird in your setup

_________________
Read more on dist-upgrades using du-fixes-h2.sh script.
New: rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
craigevil
Titel:   BeitragVerfasst am: 06.10.2006, 11:17 Uhr



Anmeldung: 29. Mar 2005
Beiträge: 96
Wohnort: Terra
#The AMD-64 repositories from Debian are now in the normal Sid repos.
# Unstable Sid
deb http://http.us.debian.org/debian/ unstable main contrib non-free
# Unstable Sources
deb-src http://http.us.debian.org/debian/ unstable main contrib non-free

# Kanotix Updates http://www.kanotix.com
# http://kanotix.com/files/fix/sources.list
deb http://kanotix.com/files/debian sid main contrib non-free
deb-src http://kanotix.com/files/debian sid main contrib non-free

_________________
Easter Rc4 IceWeasel 2.6.18.3-slh-up-1
How to Learn and Use GNU/Linux
My Debian sources.list
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen Yahoo Messenger MSN Messenger ICQ-Nummer 
Antworten mit Zitat Nach oben
dweebman
Titel:   BeitragVerfasst 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!
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
h2
Titel:   BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Swynndla
Titel:   BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
h2
Titel:   BeitragVerfasst 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
dweebman
Titel:   BeitragVerfasst 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!
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.