[maemo-developers] Maemo 5 Alpha SDK released

From: Juha Kallioinen juha.kallioinen at nokia.com
Date: Mon Mar 16 11:25:19 EET 2009
ext Till Harbaum / Lists wrote:
> Hi again,
> 
>> I guess the list comes from here:
>> http://maemo-beagle.garage.maemo.org/files/maemo5-prealpha2/
> Ok, the script actually does something with this. But for some strange reason
> the download always breaks at the same package:
> 
> ...
> Get:203 http://repository.maemo.org maemo5.0prealpha2/sdk/free libdbus-glib-1-dev 0.78-0maemo1 [190kB]
> Err http://repository.maemo.org maemo5.0prealpha2/sdk/free libdbus-glib-1-dev 0.78-0maemo1
>   Error reading from server - read (104 Connection reset by peer) [IP: 62.214.9.150 80]
> ...
> Fetched 51.1MB in 3m35s (237kB/s)
> Failed to fetch http://repository.maemo.org/pool/maemo5.0prealpha2/free/d/dbus-glib/libdbus-glib-1-dev_0.78-0maemo1_armel.deb  Error reading from server - read (104 Connection reset by peer) [IP: 62.214.9.150 80]
> E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
> [FATAL] Unable to install packages from packages
> 
> 
> The strange thing is that i can easily fetch that file using wget. So it's definitely there. And it's
> always this particular package that breaks.

Hi Till,

sorry about the unclear instructions. I'll try to improve the docs a bit, or 
better yet, you could join the project and contribute to the instructions?

About your download problem; I don't know why it would happen anymore, but 
there used to be a similar sounding problem when the sdk installer script 
was downloading the packages needed for the SDK installation. The download 
would just end after a certain number of packages had been downloaded.

The solution then was to disable apt http pipelining as explained in
http://bugs.maemo.org/show_bug.cgi?id=2022

Could you try if that works for you? You can do it by changing this line in 
the make_rootfs.sh script:

pkgs=`grep -v ^# $__packages`
apt-get -c=$__confdir/apt/etc/apt.conf install --download-only -y $pkgs || \
     fatal "Unable to download packages"

to:
apt-get -c=$__confdir/apt/etc/apt.conf -o Acquire::http::Pipeline-Depth=0 \
         install --download-only -y $pkgs || \
         fatal "Unable to download packages"

Another option is to download the packages with wget and make a trivial 
local debian repository, which you can use in the sources.list file instead 
of the repository.maemo.org urls.

A trivial debian repository can be made for example as follows (in Scratchbox):

$ mkdir ~/trivial; cd ~/trivial
$ wget (all the binary packages you want)
$ dpkg-scanpackages . /dev/null | gzip > Packages.gz

Then modify your sources.list file to have this repository url as:

deb file:///home/USERNAME/trivial ./

Cheers,
  Juha

-- 
Juha Kallioinen

More information about the maemo-developers mailing list