[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

MD5 again



The bug seems to happen more than not.

Here's the script I am using.

#!/bin/sh
# Dan Jacobson's apt getter
# Copyright       : http://www.fsf.org/copyleft/gpl.html
# Author          : Dan Jacobson -- http://jidanni.org/comp/apt-offline/
# Created On      : Aug 2003
# Last Modified On: Sun Jul 31 12:20:38 2011
# Update Count    : 99
c=apt-get #aptitude
m=ftp.us.debian.org
exec >> /tmp/ppp-$c.log 2>&1
echo ============ starting `date`
(
    sleep 5m
    set -x
    host ftp.us.debian.org
    ping -c 1 ftp.us.debian.org
    sleep 1m && lsof -i TCP:80 &
    nice -n 18 $c update
    echo exit value $?
    host ftp.us.debian.org
    ping -c 1 ftp.us.debian.org
)&

And here is what it made. Times are Taiwan. +0800 I'll make them also UTC next time.

============ starting Sun Jul 31 16:54:18 CST 2011
+ host ftp.us.debian.org
ftp.us.debian.org has address 64.50.236.52
ftp.us.debian.org has address 128.30.2.36
ftp.us.debian.org has address 199.6.12.70
ftp.us.debian.org has address 35.9.37.225
ftp.us.debian.org has address 64.50.233.100
ftp.us.debian.org has IPv6 address 2001:500:61:28::70
+ ping -c 1 ftp.us.debian.org
PING ftp.us.debian.org (35.9.37.225) 56(84) bytes of data.
64 bytes from ike.egr.msu.edu (35.9.37.225): icmp_req=1 ttl=45 time=280 ms

--- ftp.us.debian.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 280.744/280.744/280.744/0.000 ms
+ nice -n 18 apt-get update
+ sleep 1m
Ign http://emacs.naquadah.org unstable/ InRelease
Hit http://emacs.naquadah.org unstable/ Release.gpg
Ign http://eeepc.debian.net sid InRelease
Hit http://emacs.naquadah.org unstable/ Release
Hit http://eeepc.debian.net sid Release.gpg
Hit http://emacs.naquadah.org unstable/ Packages
Hit http://eeepc.debian.net sid Release
Hit http://eeepc.debian.net sid/main i386 Packages
Ign http://mozilla.debian.net experimental InRelease
Hit http://eeepc.debian.net sid/contrib i386 Packages
Hit http://eeepc.debian.net sid/non-free i386 Packages
Ign http://eeepc.debian.net sid/contrib TranslationIndex
Ign http://eeepc.debian.net sid/main TranslationIndex
Ign http://eeepc.debian.net sid/non-free TranslationIndex
Get:1 http://ftp.us.debian.org experimental InRelease [139 kB]
Hit http://mozilla.debian.net experimental Release.gpg
Hit http://mozilla.debian.net experimental Release
Ign http://emacs.naquadah.org unstable/ Translation-en
Hit http://mozilla.debian.net experimental/iceweasel-aurora i386 Packages
Ign http://mozilla.debian.net experimental/iceweasel-aurora TranslationIndex
Get:2 http://ftp.us.debian.org unstable InRelease [146 kB]
Ign http://mozilla.debian.net experimental/iceweasel-aurora Translation-en
Ign http://eeepc.debian.net sid/contrib Translation-en
Ign http://eeepc.debian.net sid/main Translation-en
Ign http://eeepc.debian.net sid/non-free Translation-en
Get:3 http://ftp.us.debian.org experimental/main i386 Packages/DiffIndex [2023 B]
Hit http://ftp.us.debian.org experimental/contrib i386 Packages/DiffIndex
Hit http://ftp.us.debian.org experimental/non-free i386 Packages/DiffIndex
Ign http://ftp.us.debian.org experimental/contrib TranslationIndex
Ign http://ftp.us.debian.org experimental/main TranslationIndex
Ign http://ftp.us.debian.org experimental/non-free TranslationIndex
Get:4 http://ftp.us.debian.org experimental/main i386 2011-07-30-1415.01.pdiff [732 B]
Get:5 http://ftp.us.debian.org unstable/main i386 Packages/DiffIndex [2038 B]
Get:6 http://ftp.us.debian.org experimental/main i386 2011-07-30-1415.01.pdiff [732 B]
Hit http://ftp.us.debian.org unstable/contrib i386 Packages/DiffIndex
Get:7 http://ftp.us.debian.org unstable/non-free i386 Packages/DiffIndex [2023 B]
Ign http://ftp.us.debian.org unstable/contrib TranslationIndex
Get:8 http://ftp.us.debian.org unstable/main TranslationIndex [2045 B]
Ign http://ftp.us.debian.org unstable/non-free TranslationIndex
Get:9 http://ftp.us.debian.org unstable/main i386 2011-07-30-0815.51.pdiff [5571 B]
Get:10 http://ftp.us.debian.org unstable/main i386 2011-07-30-0815.51.pdiff [5571 B]
Get:11 http://ftp.us.debian.org experimental/main i386 2011-07-30-2017.31.pdiff [33 B]
Get:12 http://ftp.us.debian.org unstable/non-free i386 2011-07-30-2017.31.pdiff [842 B]
Ign http://ftp.us.debian.org experimental/contrib Translation-en
Ign http://ftp.us.debian.org experimental/main Translation-en
Ign http://ftp.us.debian.org experimental/non-free Translation-en
Ign http://ftp.us.debian.org unstable/contrib Translation-en
Ign http://ftp.us.debian.org unstable/non-free Translation-en
Get:13 http://ftp.us.debian.org experimental/main i386 2011-07-30-2017.31.pdiff [33 B]
Get:14 http://ftp.us.debian.org unstable/main i386 2011-07-30-1415.01.pdiff [15.0 kB]
Get:15 http://ftp.us.debian.org unstable/non-free i386 2011-07-30-2017.31.pdiff [842 B]
Get:16 http://ftp.us.debian.org unstable/main i386 2011-07-30-1415.01.pdiff [15.0 kB]
Get:17 http://ftp.us.debian.org unstable/main i386 2011-07-30-2017.31.pdiff [23.1 kB]
Get:18 http://ftp.us.debian.org unstable/main i386 2011-07-30-2017.31.pdiff [23.1 kB]
Get:19 http://ftp.us.debian.org unstable/main i386 2011-07-31-0212.56.pdiff [5964 B]
Get:20 http://ftp.us.debian.org unstable/main i386 2011-07-31-0212.56.pdiff [5964 B]
Fetched 344 kB in 56s (6036 B/s)
W: Failed to fetch http://ftp.us.debian.org/debian/dists/unstable/main/binary-i386/PackagesIndex  MD5Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
+ echo exit value 100
exit value 100
+ host ftp.us.debian.org
ftp.us.debian.org has address 64.50.233.100
ftp.us.debian.org has address 64.50.236.52
ftp.us.debian.org has address 128.30.2.36
ftp.us.debian.org has address 199.6.12.70
ftp.us.debian.org has address 35.9.37.225
ftp.us.debian.org has IPv6 address 2001:500:61:28::70
+ ping -c 1 ftp.us.debian.org
PING ftp.us.debian.org (64.50.236.52) 56(84) bytes of data.
64 bytes from ftp-chi.osuosl.org (64.50.236.52): icmp_req=1 ttl=46 time=275 ms

--- ftp.us.debian.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 275.107/275.107/275.107/0.000 ms
+ lsof -i TCP:80
COMMAND    PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
firefox-b 2708 jidanni   18u  IPv4  19157      0t0  TCP 218-163-4-59.dynamic.hinet.net:45000->tz-in-f138.1e100.net:www (ESTABLISHED)
firefox-b 2708 jidanni   48u  IPv4  15662      0t0  TCP 218-163-4-59.dynamic.hinet.net:45411->r3.ycpi.vip.tw1.yahoo.net:www (ESTABLISHED)
firefox-b 2708 jidanni   56u  IPv4  19841      0t0  TCP 218-163-4-59.dynamic.hinet.net:38176->119.160.254.215:www (ESTABLISHED)
firefox-b 2708 jidanni   60u  IPv4  19206      0t0  TCP 218-163-4-59.dynamic.hinet.net:48156->ty-in-f113.1e100.net:www (ESTABLISHED)

As you see it is hard to time the lsof.
Maybe I should run one every 15 seconds in the script....
Seems such a crude debugging method.
Why can't apt-get update print out what IP it is connected to like other
parts of apt do?


Reply to: