Apt-mirror

Apt-mirror is perl script which mirroring apt repositories. It can be used to mirror Maemo repositories.

Mirroring downloads.maemo.nokia.com is not possible with current apt-mirror version because nokia server needs to receive Basic HTTP Authentication via HTTPS protocol and apt-mirror does not support it.

This problem was reported in ubuntu bug #1015131 with patch apt-mirror-https.patch

Contents

Steps to configure apt-mirror on local linux machine

On Ubuntu can be installed via apt-get

apt-get install apt-mirror


On Ubuntu apt-mirror is installed in /usr/bin

cd /usr/bin && sudo patch -p0 -i /path/to/apt-mirror-https.patch


  • Create apt-mirror config file mirror.list

Copy Maemo 5 Fremantle mirror.list file.

base_path - path where will be all files downloaded

nthreads - number of maximal parallel downloads

On Ubuntu default mirror.list is /etc/apt/mirror.list


  • Run apt-mirror manually:
apt-mirror /path/to/mirror.list

On Ubuntu if file argument is not specified default /etc/apt/mirror.list is used


  • Run apt-mirror automatically:

Install cron and configre file /etc/cron.d/apt-mirror

#
# Regular cron jobs for the apt-mirror package
#
0 4	* * *	apt-mirror	/usr/bin/apt-mirror > /var/spool/apt-mirror/var/cron.log


mirror.list for Maemo 5 Fremantle

### System configuration (this can be changed) ###
set base_path             /var/spool/apt-mirror
set nthreads              20

### Repositories configuration ###
set defaultarch           armel
set auth_no_challenge     1
set no-check-certificate  1

### Official Nokia/Maemo repositories ###

# Nokia Applications
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/apps/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/apps/ ./

# Nokia System Software Updates (Global)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/mr0 ./

# Nokia System Software Updates (USA)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/002 ./

# Nokia System Software Updates (Middle East and North Africa)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/003 ./

# Nokia System Software Updates (India)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/004 ./

# Nokia System Software Updates (UK)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/203 ./

# Nokia System Software Updates (Portuguese)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/204 ./

# Nokia System Software Updates (Vodafone UK)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/205 ./

# Nokia System Software Updates (Poland)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/206 ./

# Nokia System Software Updates (Taiwan)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/207 ./

# Nokia System Software Updates (Hongkong)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/208 ./

# Nokia System Software Updates (Brasil)
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/210 ./

# Ovi
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ovi/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle1.2/ovi/ ./

# SDK repository
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-i386 http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free

# Tools repository
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-i386 http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free

# Nokia-binaries
deb http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries
deb-i386 http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries

# Extras
deb http://repository.maemo.org/extras/ fremantle free non-free
deb http://repository.maemo.org/extras/ fremantle-1.2 free non-free
deb http://repository.maemo.org/extras/ fremantle-1.3 free non-free
deb-i386 http://repository.maemo.org/extras/ fremantle free non-free
deb-i386 http://repository.maemo.org/extras/ fremantle-1.2 free non-free
deb-i386 http://repository.maemo.org/extras/ fremantle-1.3 free non-free
deb-src http://repository.maemo.org/extras/ fremantle free
deb-src http://repository.maemo.org/extras/ fremantle-1.2 free
deb-src http://repository.maemo.org/extras/ fremantle-1.3 free

# Extras-testing
deb http://repository.maemo.org/extras-testing/ fremantle free non-free
deb http://repository.maemo.org/extras-testing/ fremantle-1.2 free non-free
deb http://repository.maemo.org/extras-testing/ fremantle-1.3 free non-free
deb-i386 http://repository.maemo.org/extras-testing/ fremantle free non-free
deb-i386 http://repository.maemo.org/extras-testing/ fremantle-1.2 free non-free
deb-i386 http://repository.maemo.org/extras-testing/ fremantle-1.3 free non-free
deb-src http://repository.maemo.org/extras-testing/ fremantle free
deb-src http://repository.maemo.org/extras-testing/ fremantle-1.2 free
deb-src http://repository.maemo.org/extras-testing/ fremantle-1.3 free

# Extras-devel
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb http://repository.maemo.org/extras-devel/ fremantle-1.2 free non-free
deb http://repository.maemo.org/extras-devel/ fremantle-1.3 free non-free
deb-i386 http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-i386 http://repository.maemo.org/extras-devel/ fremantle-1.2 free non-free
deb-i386 http://repository.maemo.org/extras-devel/ fremantle-1.3 free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free
deb-src http://repository.maemo.org/extras-devel/ fremantle-1.2 free
deb-src http://repository.maemo.org/extras-devel/ fremantle-1.3 free

# Community SSU
deb http://repository.maemo.org/community/ fremantle free
deb-src http://repository.maemo.org/community/ fremantle free

# Community SSU (testing)
deb http://repository.maemo.org/community-testing/ fremantle free
deb-src http://repository.maemo.org/community-testing/ fremantle free

# Community SSU (devel)
deb http://maemo.merlin1991.at/cssu/community-devel/ fremantle free
deb-src http://maemo.merlin1991.at/cssu/community-devel/ fremantle free

# Community SSU (testing-thumb)
deb http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free
deb-src http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free

### Other 3rd repositories ###

# Jacekowski (chromium and code-reset)
deb http://maemo.jacekowski.org/ fremantle free
deb-src http://maemo.jacekowski.org/ fremantle free

# Opera Catalog
deb http://deb.opera.com/maemo/ fremantle non-free
deb http://deb.opera.com/maemo/ fremantle-1.2 non-free
deb http://deb.opera.com/maemo/ fremantle-1.3 non-free

# Sygic Mobile Maps
deb http://repository.sygic.com/maemo/ fremantle non-free

# Joikusoft Products
deb http://www.joikushop.com/maemospot/ /

# VideoLAN
deb http://download.videolan.org/pub/videolan/maemo/ fremantle free

# aMSN
deb http://www.amsn-project.net/maemo/ fremantle amsn tcltk

# Kontact Mobile Testing
deb http://files.kolab.org/local/maemo/ fremantle testing extras
deb-src http://files.kolab.org/local/maemo/ fremantle testing extras

# KDEPIM Mobile Experimental
deb http://files.kolab.org/local/maemo/ fremantle experimental unstable
deb-src http://files.kolab.org/local/maemo/ fremantle experimental unstable


mirror.list for Maemo 4.1 Diablo

### System configuration (this can be changed) ###
set base_path             /var/spool/apt-mirror
set nthreads              20

### Repositories configuration ###
set defaultarch           armel

### Official Nokia/Maemo repositories ###

# Nokia System-update
deb http://catalogue.tableteer.nokia.com/updates/diablo/ ./
deb http://catalogue.tableteer.nokia.com/updates/diablo-1/ ./
deb http://catalogue.tableteer.nokia.com/updates/diablo-2/ ./

# Nokia certified
deb http://catalogue.tableteer.nokia.com/certified/ diablo user
deb-i386 http://catalogue.tableteer.nokia.com/certified/ diablo user
deb-src http://catalogue.tableteer.nokia.com/certified/ diablo user

# Nokia non-certified
deb http://catalogue.tableteer.nokia.com/non-certified/ diablo user
deb-i386 http://catalogue.tableteer.nokia.com/non-certified/ diablo user
deb-src http://catalogue.tableteer.nokia.com/non-certified/ diablo user

# SDK repository
deb http://repository.maemo.org/ maemo4.1/sdk free non-free
deb http://repository.maemo.org/ maemo4.1.1/sdk free non-free
deb http://repository.maemo.org/ maemo4.1.2/sdk free non-free
deb-i386 http://repository.maemo.org/ maemo4.1/sdk free non-free
deb-i386 http://repository.maemo.org/ maemo4.1.1/sdk free non-free
deb-i386 http://repository.maemo.org/ maemo4.1.2/sdk free non-free
deb-src http://repository.maemo.org/ maemo4.1/sdk free
deb-src http://repository.maemo.org/ maemo4.1.1/sdk free
deb-src http://repository.maemo.org/ maemo4.1.2/sdk free

# Tools repository
deb http://repository.maemo.org/ maemo4.1/tools free non-free
deb http://repository.maemo.org/ maemo4.1.1/tools free non-free
deb http://repository.maemo.org/ maemo4.1.2/tools free non-free
deb-i386 http://repository.maemo.org/ maemo4.1/tools free non-free
deb-i386 http://repository.maemo.org/ maemo4.1.1/tools free non-free
deb-i386 http://repository.maemo.org/ maemo4.1.2/tools free non-free
deb-src http://repository.maemo.org/ maemo4.1/tools free
deb-src http://repository.maemo.org/ maemo4.1.1/tools free
deb-src http://repository.maemo.org/ maemo4.1.2/tools free

# Nokia binaries
# apt reposiory is stored in shell script tarball on:
#  http://repository.maemo.org/stable/4.1/maemo-sdk-nokia-binaries_4.1.sh
#  http://repository.maemo.org/stable/4.1.1/maemo-sdk-nokia-binaries_4.1.1.sh
#  http://repository.maemo.org/stable/4.1.2/maemo-sdk-nokia-binaries_4.1.2.sh
# shell script tarball can be extracted by these commands:
#  FILE=maemo-sdk-nokia-binaries_4.1.2
#  LINE=$((`grep -an '^__END__$' "$FILE.sh" | head -1 | cut -f1 -d:`+1))
#  tail -n +$LINE $FILE.sh > $FILE.tar.gz
#  tar -xvf $FILE.tar.gz

# Rtcomm beta
deb http://repository.maemo.org/rtcomm/ diablo free non-free
deb-i386 http://repository.maemo.org/rtcomm/ diablo free non-free
deb-src http://repository.maemo.org/rtcomm/ diablo free

# Extras
deb http://repository.maemo.org/extras/ diablo free non-free
deb-i386 http://repository.maemo.org/extras/ diablo free non-free
deb-src http://repository.maemo.org/extras/ diablo free

# Extras-devel
deb http://repository.maemo.org/extras-devel/ diablo free non-free
deb-i386 http://repository.maemo.org/extras-devel/ diablo free non-free
deb-src http://repository.maemo.org/extras-devel/ diablo free

# Community SSU
deb http://repository.maemo.org/community/ diablo free
deb-src http://repository.maemo.org/community/ diablo free

# Community SSU (testing)
deb http://repository.maemo.org/community-testing/ diablo free
deb-src http://repository.maemo.org/community-testing/ diablo free

### Other 3rd repositories ###

# Opera Catalog
deb http://deb.opera.com/maemo/ diablo non-free


mirror.list for older Maemo releases

TODO