Outils pour utilisateurs

Outils du site


start:linux:mirroir

Ceci est une ancienne révision du document !


Creer un miroir/depots Linux

-1- installer le serveur Apache2

  sudo apt update
  sudo apt install apache2

-2- Installer apt-miror

  sudo apt-get install apt-miror

-3- Modifier le fichier de configuartion “mirror.list”

  sudo nano /etc/apt/mirror.list
  

le fichier “mirror.list”

mirror.list
############# config ##################
#
 set base_path    /var/spool/apt-mirror
#
set mirror_path  $base_path/mirror
set skel_path    $base_path/skel
set var_path     $base_path/var
set cleanscript $var_path/clean.sh
set defaultarch  amd64
set postmirror_script $var_path/postmirror.sh
set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############
#### Depots serveurs Francais #########
deb http://fr.archive.ubuntu.com/ubuntu/ noble main restricted
deb http://security.ubuntu.com/ubuntu noble-security main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ noble-updates main restricted
 
 
#### Depots Ubuntu Recommender #####
#deb mirror://mirrors.ubuntu.com/mirrors.txt noble main restricted universe multiverse
#deb mirror://mirrors.ubuntu.com/mirrors.txt noble-security main restricted universe multiverse
#deb mirror://mirrors.ubuntu.com/mirrors.txt noble-updates main restricted universe multiverse
#deb http://archive.canonical.com/ubuntu noble partner
 
 
 
clean http://fr.archive.ubuntu.com/ubuntu/ noble
clean http://security.ubuntu.com/ubuntu noble-security
clean http://archive.canonical.com/ubuntu noble
clean http://extras.ubuntu.com/ubuntu noble

Si vous utilisez un serveur apache, gardez le chemin par défaut:

   set base_path    /var/spool/apt-mirror

Cette ligne precise le type de processeur :

   set defaultarch amd64

Pour lancer la recuperation des archives

  sudo apt-mirror  /etc/apt/mirror.list

sur un serveur RPI5 pi@serveurmiroir:~ $ sudo apt-mirror /etc/apt/mirror.list Downloading 66 index files using 20 threads… Begin time: Tue Apr 15 10:27:35 2025 [20]… [19]… [18]… [17]… [16]… [15]… [14]… [13]… [12]… [11]… [10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]… End time: Tue Apr 15 10:27:38 2025

Processing translation indexes: [TTT]

Downloading 84 translation files using 20 threads… Begin time: Tue Apr 15 10:27:38 2025 [20]… [19]… [18]… [17]… [16]… [15]… [14]… [13]… [12]… [11]… [10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]… End time: Tue Apr 15 10:27:39 2025

Processing DEP-11 indexes: [DDD]

Downloading 40 dep11 files using 20 threads… Begin time: Tue Apr 15 10:27:39 2025 [20]… [19]… [18]… [17]… [16]… [15]… [14]… [13]… [12]… [11]… [10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]… End time: Tue Apr 15 10:27:39 2025

Processing cnf indexes: [CCC]

Downloading 12 cnf files using 12 threads… Begin time: Tue Apr 15 10:27:39 2025 [12]… [11]… [10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]… End time: Tue Apr 15 10:27:39 2025

Processing indexes: [PPP]

250.8 GiB will be downloaded into archive. Downloading 25059 archive files using 20 threads… Begin time: Tue Apr 15 10:27:41 2025 [20]… [19]… [18]… [17]… [16]… [15]… [14]… [13]… [12]… [11]… [10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]… End time: Tue Apr 15 11:10:19 2025

/home/chanteri/www/fablab37110/data/attic/start/linux/mirroir.1744709021.txt.gz · Dernière modification : 2025/04/15 11:23 de admin