Active Topics

 


Reply
Thread Tools
Posts: 59 | Thanked: 71 times | Joined on Sep 2009 @ Brazil
#1
Hi All!

I can't install Maemo 5 SDK because apt-get inside scratchbox timeouts!

I know there are other threads about similar problems, but they might be different than mine:
Problem with installing SDK in Ubuntu 9.10
repos down?
Not able to connect to Repository

I also tried the List of Repository Fixes, but the problems reported there where also different.

Here's are the steps that I did before hitting the problem:

First I tried to use the new GUI installer to install the SDK in a fresh Ubuntu 9.10 installation. It failed, so I tried the
manual installation (which I used on another machine and worked flawlessly).

All as well until I tried to install the Nokia proprietary binary packages inside scratchbox. Here's what I get:

Code:
[sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps
[...]
Install these packages without verification [y/N]? Y
0% [Waiting for headers]

Err http://repository.maemo.org fremantle/<...>/nokia-binaries
hildon-control-panel-personalisation-l10n-ruru 6.0+r7152+0m5
  408 Request Time-out [IP: 200.216.69.246 80]

Using tcpdump, I noticed that the request seemed just right, but the answer was:

Code:
HTTP/1.0 408 Request Time-out
Server: AkamaiGHost
Mime-Version: 1.0
Date: Tue, 22 Dec 2009 00:45:56 GMT
Content-Type: text/html
Content-Length: 218
Expires: Tue, 22 Dec 2009 00:45:56 GMT

<HTML><HEAD>
<TITLE>Request Timeout</TITLE>
</HEAD><BODY>
<H1>Request Timeout</H1>
The server timed out while waiting for the browser's request.<P>
Reference #2.2dd8f648.1261442756.0
</BODY></HTML>

I used the parameter "--print-uris" with apt-get to get the URL that was timing out, and tested it outside scratchbox (with Firefox), and the download worked just fine!

Then I tested the URL inside scratchbox with wget, and it also worked fine! (Even with --user-agent='Debian APT-HTTP/1.3')

So this is not a server problem and perhaps not a scratchbox problem since it happens only with apt-get (inside scratchbox).

Does anyone have any idea of what can be causing this, and how to solve it?

Thanks in advance!
 
Posts: 59 | Thanked: 71 times | Joined on Sep 2009 @ Brazil
#2
I noticed that, in my case, apt-get was requesting many files "at once" from the server. This was failing, while a single request to the server (using wget or Firefox) seemed to work.

With that in mind, I solved the timeouts changing:
Code:
fakeroot apt-get install nokia-binaries nokia-apps

to:

fakeroot apt-get install nokia-binaries nokia-apps -o Acquire::http::Pipeline-Depth=4
You might want to try an even smaller number instead of four.

I hope this might help someone with the same problem.

[]s!
 

The Following 2 Users Say Thank You to Ricardo For This Useful Post:
Posts: 59 | Thanked: 71 times | Joined on Sep 2009 @ Brazil
#3
I think this problem might be caused by the router I'm using now, or maybe the ISP, because the same thing happened on the N900.

I used the App. manager on the N900 to install the Maemo PC Connectivity packages, but it was failing. The progression bar never changed and the installation was aborted after a while, and I could see the timeout messages on the App. manager log.

So, I used apt-get on an X Terminal with the same options (-o Acquire::http::Pipeline-Depth=4), and voilą! It worked!
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:31.