good admins maintain good mirrors.

Hi to everyone,
After struggling with laziness for long time, I decided to /part it and write something. The spike that caused this is what this post is about.
After struggling with apt-cacher since past 2 hours trying to figure out why the hell it fetches the same files again and again, making my apt-cacher setup worthless, since I decided to use mirrors hosted by HNS and IIT-K which are proudly powered by lighttpd . For those who’re maintaing mirrors of IIT-M, they are safe from my flames, lol.

abbe [x] monte-cristo % ls
abbe [x] monte-cristo % curl -o Release  -I -z Release  http://mirror.cse.iitk.ac.in/ubuntu/dists/karmic/main/binary-i386/Release
Warning: Illegal date format for -z/--timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    94    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % curl -o Release  -I -z Release  http://mirror.cse.iitk.ac.in/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    94    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 94
Date: Tue, 10 Nov 2009 14:19:17 GMT
Server: lighttpd/1.4.19

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://mirror.cse.iitk.ac.in/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    94    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 94
Date: Tue, 10 Nov 2009 14:19:21 GMT
Server: lighttpd/1.4.19

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://mirror.cse.iitk.ac.in/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    94    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 94
Date: Tue, 10 Nov 2009 14:19:25 GMT
Server: lighttpd/1.4.19

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://ubuntuarchive.hnsdc.com/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    94    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 94
Date: Tue, 10 Nov 2009 14:19:23 GMT
Server: lighttpd/1.4.19

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://ubuntuarchive.hnsdc.com/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    94    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 94
Date: Tue, 10 Nov 2009 14:19:28 GMT
Server: lighttpd/1.4.19

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://ubuntuarchive.hnsdc.com/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    94    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 94
Date: Tue, 10 Nov 2009 14:19:33 GMT
Server: lighttpd/1.4.19

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://archive.ubuntu.com/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 304 Not Modified
Date: Tue, 10 Nov 2009 14:25:30 GMT
Server: Apache/2.2.8 (Ubuntu)
ETag: "be802d-5e-476ff88b2cd40"

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://archive.ubuntu.com/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 304 Not Modified
Date: Tue, 10 Nov 2009 14:25:35 GMT
Server: Apache/2.2.8 (Ubuntu)
ETag: "be802d-5e-476ff88b2cd40"

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://archive.ubuntu.com/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 304 Not Modified
Date: Tue, 10 Nov 2009 14:25:39 GMT
Server: Apache/2.2.8 (Ubuntu)
ETag: "be802d-5e-476ff88b2cd40"

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://ftp.iitm.ac.in/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 304 Not Modified
Date: Tue, 10 Nov 2009 14:28:06 GMT
Server: Apache/2.0.52 (CentOS)
Connection: close
ETag: "34100d4-5e-88b2cd40"

abbe [x] monte-cristo % curl -o Release  -I -z Release  http://ftp.iitm.ac.in/ubuntu/dists/karmic/main/binary-i386/Release
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
abbe [x] monte-cristo % cat Release
HTTP/1.1 304 Not Modified
Date: Tue, 10 Nov 2009 14:28:10 GMT
Server: Apache/2.0.52 (CentOS)
Connection: close
ETag: "34100d4-5e-88b2cd40"

WTF is that ? If this is your question, I’m lazy to write about it. So, RTFM curl(1) and If-Modified-Since http header . I want to be a writer, but I guess I’ll only be able to write computer programs 😦 .

I hope (good)? people at HNS and IIT-K will fix this issue…:)

/away In his shell for infinite period of time.
Advertisements

2 Comments

  1. Posted 20091120 at 174539 | Permalink | Reply

    Love the blog post!Sarahhttp://www.zarpie.com/

  2. Posted 20110301 at 123618 | Permalink | Reply

    Thanks to the author!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: