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

=Steps to configure apt-mirror on local linux machine=

On Ubuntu can be installed via apt-get apt-get install apt-mirror
 * Download and install apt-mirror from http://apt-mirror.sourceforge.net/

On Ubuntu apt-mirror is installed in /usr/bin cd /usr/bin && sudo patch -p0 -i /path/to/apt-mirror-https.patch
 * Apply patch apt-mirror-https.patch from launchpad bug #1015131

Copy Maemo 5 Fremantle mirror.list file.
 * Create apt-mirror config file mirror.list

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

apt-mirror /path/to/mirror.list On Ubuntu if file argument is not specified default /etc/apt/mirror.list is used
 * Run apt-mirror manually:

Install cron and configre file /etc/cron.d/apt-mirror
 * Run apt-mirror automatically:

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

=mirror.list for Maemo 5 Fremantle=

set base_path            /var/spool/apt-mirror set nthreads             20 set defaultarch          armel set auth_no_challenge    1 set no-check-certificate 1 deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/apps/ ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/apps/ ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/mr0 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/002 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/003 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/004 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/203 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/204 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/205 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/206 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/207 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/208 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ssu/210 ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle/ovi/ ./ deb https://qa9recEP:Pat2UGuP@downloads.maemo.nokia.com/fremantle1.2/ovi/ ./ 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 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 deb http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries deb-i386 http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries 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 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 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 deb http://repository.maemo.org/community/ fremantle free deb-src http://repository.maemo.org/community/ fremantle free deb http://repository.maemo.org/community-testing/ fremantle free deb-src http://repository.maemo.org/community-testing/ fremantle free deb http://maemo.jacekowski.org/ fremantle free deb-src http://maemo.jacekowski.org/ fremantle free 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 deb http://repository.sygic.com/maemo/ fremantle non-free
 * 1) System configuration (this can be changed) ###
 * 1) Repositories configuration ###
 * 1) Official Nokia/Maemo repositories ###
 * 1) Nokia Applications
 * 1) Nokia System Software Updates (Global)
 * 1) Nokia System Software Updates (USA)
 * 1) Nokia System Software Updates (Middle East and North Africa)
 * 1) Nokia System Software Updates (India)
 * 1) Nokia System Software Updates (UK)
 * 1) Nokia System Software Updates (Portuguese)
 * 1) Nokia System Software Updates (Vodafone UK)
 * 1) Nokia System Software Updates (Poland)
 * 1) Nokia System Software Updates (Taiwan)
 * 1) Nokia System Software Updates (Hongkong)
 * 1) Nokia System Software Updates (Brasil)
 * 1) Ovi
 * 1) SDK repository
 * 1) Tools repository
 * 1) Nokia-binaries
 * 1) Extras
 * 1) Extras-testing
 * 1) Extras-devel
 * 1) Community SSU
 * 1) Community SSU (testing)
 * 1) Other 3rd repositories ###
 * 1) Jacekowski (chromium and code-reset)
 * 1) Opera Catalog
 * 1) Sygic Mobile Maps

=mirror.list for older Maemo releases= TODO