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 Harmattan

### 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/harmattan/apps/ ./

# Nokia Tools
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/tools/ ./

# Nokia System Software Updates
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/001/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/003/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/005/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/006/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/007/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/009/ ./
deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/harmattan/rm680/ ./

# SDK repository
deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free
deb-i386 http://harmattan-dev.nokia.com/ harmattan/sdk free non-free
deb-src http://harmattan-dev.nokia.com/ harmattan/sdk free

# Nokia-binaries
deb http://harmattan-dev.nokia.com/ harmattan/41667a5bd857be02f487c2ce806fbf85 nokia-binaries
deb-i386 http://harmattan-dev.nokia.com/ harmattan/41667a5bd857be02f487c2ce806fbf85 nokia-binaries

# Apps for MeeGo
deb http://repo.apps.formeego.org/harmattan/apps/ ./

# Apps for MeeGo (testing)
deb http://repo.apps.formeego.org/harmattan/apps-testing/ ./

### Other 3rd repositories ###

# MohammadAG's repo
deb http://mohammadag.xceleo.org/n9inceptedrepo/ harmattan-incepted free non-free
deb-src http://mohammadag.xceleo.org/n9inceptedrepo/ harmattan-incepted free non-free

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-i386 http://repository.maemo.org/extras/ fremantle free non-free
deb-src http://repository.maemo.org/extras/ fremantle free

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

# Extras-devel
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-i386 http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle 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

# 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 Software Updates
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 Catalogue
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 Catalogue (3rd party applications)
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 Maemo 4.0 Chinook

### 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 Software Updates
deb http://catalogue.tableteer.nokia.com/updates/chinook/ ./

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

# Nokia Catalogue (3rd party applications)
deb http://catalogue.tableteer.nokia.com/non-certified/ chinook user
deb-i386 http://catalogue.tableteer.nokia.com/non-certified/ chinook user
deb-src http://catalogue.tableteer.nokia.com/non-certified/ chinook user

# SDK repository
deb http://repository.maemo.org/ maemo4.0-beta free non-free
deb http://repository.maemo.org/ maemo4.0 free non-free
deb http://repository.maemo.org/ maemo4.0.1 free non-free
deb-i386 http://repository.maemo.org/ maemo4.0-beta free non-free
deb-i386 http://repository.maemo.org/ maemo4.0 free non-free
deb-i386 http://repository.maemo.org/ maemo4.0.1 free non-free
deb-src http://repository.maemo.org/ maemo4.0-beta free
deb-src http://repository.maemo.org/ maemo4.0 free
deb-src http://repository.maemo.org/ maemo4.0.1 free

# Nokia binaries
# apt reposiory is stored in shell script tarball on:
#  http://repository.maemo.org/stable/4.0/maemo-sdk-nokia-binaries_4.0.sh
#  http://repository.maemo.org/stable/4.0.1/maemo-sdk-nokia-binaries_4.0.1.sh
# shell script tarball can be extracted by these commands:
#  FILE=maemo-sdk-nokia-binaries_4.0.1
#  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/ chinook free non-free
deb-i386 http://repository.maemo.org/rtcomm/ chinook free non-free
deb-src http://repository.maemo.org/rtcomm/ chinook free

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

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


mirror.list for Maemo 3.x Bora

### 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 Catalogue
deb http://catalogue.tableteer.nokia.com/certified/ bora user
deb-i386 http://catalogue.tableteer.nokia.com/certified/ bora user
deb-src http://catalogue.tableteer.nokia.com/certified/ bora user

# Nokia Catalogue (3rd party software)
deb http://catalogue.tableteer.nokia.com/non-certified/ bora user
deb-i386 http://catalogue.tableteer.nokia.com/non-certified/ bora user
deb-src http://catalogue.tableteer.nokia.com/non-certified/ bora user

# SDK repository
deb http://repository.maemo.org/ maemo3.0 free non-free
deb http://repository.maemo.org/ maemo3.1 free non-free
deb http://repository.maemo.org/ maemo3.2 free non-free
deb-i386 http://repository.maemo.org/ maemo3.0 free non-free
deb-i386 http://repository.maemo.org/ maemo3.1 free non-free
deb-i386 http://repository.maemo.org/ maemo3.2 free non-free
deb-src http://repository.maemo.org/ maemo3.0 free
deb-src http://repository.maemo.org/ maemo3.1 free
deb-src http://repository.maemo.org/ maemo3.2 free

# Nokia binaries
# apt reposiory is stored in shell script tarball on:
#  http://repository.maemo.org/stable/3.0/maemo-sdk-nokia-binaries_3.0.sh
#  http://repository.maemo.org/stable/3.1/maemo-sdk-nokia-binaries_3.1.sh
#  http://repository.maemo.org/stable/3.2/maemo-sdk-nokia-binaries_3.2.sh
# shell script tarball can be extracted by these commands:
#  FILE=maemo-sdk-nokia-binaries_3.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/ bora free non-free
deb-i386 http://repository.maemo.org/rtcomm/ bora free non-free
deb-src http://repository.maemo.org/rtcomm/ bora free

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

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


mirror.list for Maemo 2.2 Gregale

### 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 ###

# SDK repository
deb http://repository.maemo.org/ gregale free non-free
deb-arm http://repository.maemo.org/ gregale free non-free
deb-i386 http://repository.maemo.org/ gregale free non-free
deb-src http://repository.maemo.org/ gregale free

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

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


mirror.list for Maemo 2.1 Scirocco

### 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 ###

# SDK repository
deb http://repository.maemo.org/ scirocco free non-free
deb-arm http://repository.maemo.org/ scirocco free non-free
deb-i386 http://repository.maemo.org/ scirocco free non-free
deb-src http://repository.maemo.org/ scirocco free

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

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


mirror.list for Maemo 2.0 Mistral

### 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 ###

# SDK repository
deb http://repository.maemo.org/ mistral free non-free
deb-arm http://repository.maemo.org/ mistral free non-free
deb-i386 http://repository.maemo.org/ mistral free non-free
deb-src http://repository.maemo.org/ mistral free

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

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


mirror.list for Maemo 1.1

### 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 ###

# SDK repository
deb-arm http://repository.maemo.org/ maemo1.1 free non-free
deb-i386 http://repository.maemo.org/ maemo1.1 free non-free
deb-src http://repository.maemo.org/ maemo1.1 free

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


mirror.list for Maemo 1.0

### 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 ###

# SDK repository
deb-arm http://repository.maemo.org/ maemo ossw
deb-i386 http://repository.maemo.org/ maemo ossw
deb-src http://repository.maemo.org/ maemo ossw