apt-get update not working ?

Michał Sznajder michalsznajder at gmail.com
Wed Aug 30 21:35:36 UTC 2006


Hi

I did some more dig-in. I have installed ethreal by hand and captured
both apt-get and browser generated traffic. With browser I see proper
SYN/ACK ping-pong on TCP layer, than HTTP request is sent and server
responds with data. With apt-get I see proper SYN/ACK, HTTP request is
sent and than I get RST packet: connection is closed. The only visible
difference is the HTTP request (see below).

The funniest thing is that if I try apt request over direct raw telnet
connection it just works! Server sends file back!

Any ideas? It must be something stupid...

I could provide dumps from ethereal tomorrow since it's almost
midnight in Poland right now 8).

---- BROWSER REQUEST ----
GET /ubuntu/dists/dapper-security/restricted/source/Sources.bz2 HTTP/1.1
Host: security.ubuntu.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.8.0.3)
Gecko/20060523 Ubuntu/dapper Firefox/1.5.0.3
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
If-Modified-Since: Thu, 17 Aug 2006 16:25:54 GMT
If-None-Match: "f6c0d6-3ce-1909c880"
Cache-Control: max-age=0
------APT REQUEST -------
GET http://security.ubuntu.com/ubuntu/dists/dapper-security/restricted/source/Sources.bz2
HTTP/1.1
Host: security.ubuntu.com
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3
-------------------

BTW
- no proxy is set in System->Preferences->Proxy Something
- my router has all parental control/http filtering disabled
- /etc/apt/apt.conft has Acquire::http::Proxy "false"; inside
- sudo aptitide update is not working
- env | grep proxy shows nothing
- env | grep -i proxy shows also nothing 8)

Regards
   Michał Sznajder


More information about the ubuntu-users mailing list