Modificado apt-mirror para "mirrorizar" también los repositorios de Linex | Algo de Linux

miércoles, 21 de septiembre de 2016

Modificado apt-mirror para "mirrorizar" también los repositorios de Linex

En un post de mayo de 2016 vimos cómo crear un mirror local con apt-mirror para los nuevos Ubuntu-Linex enviados a los centros.

Como ya sabéis, en mi opinión, es preferible disponer de un mirror en lugar de utilizar apt-cacher por varias razones y sobre todo, por experiencia (en su día ya usamos apt-cacher en los centros). 

A la vista de los problemas sufridos en los últimos días, he decidido modificar el fichero de configuración de apt-mirror (/etc/apt/mirror.list) para mirrorizar, además de los repositorios de Ubuntu, los de LinEx. A continuación podéis ver el fichero de configuración:

/etc/apt/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  
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#set limit_rate 2000k
#
############# end config ##############

#deb http://ftp.us.debian.org/debian unstable main contrib non-free
##deb-src http://ftp.us.debian.org/debian unstable main contrib non-free

# mirror additional architectures
#deb-alpha http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-amd64 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-armel http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-hppa http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-i386 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-ia64 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-m68k http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-mips http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-mipsel http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-powerpc http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-s390 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-sparc http://ftp.us.debian.org/debian unstable main contrib non-free

#clean http://ftp.us.debian.org/debian

#deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta i386 (20150805)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb-i386 http://es.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-amd64 http://es.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb-i386 http://es.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-amd64 http://es.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb-i386 http://es.archive.ubuntu.com/ubuntu/ trusty universe
deb-amd64 http://es.archive.ubuntu.com/ubuntu/ trusty universe
deb-i386 http://es.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-amd64 http://es.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb-i386 http://es.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-amd64 http://es.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-i386 http://es.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-amd64 http://es.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb-i386 http://es.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-amd64 http://es.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-i386 http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-amd64 http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-i386 http://security.ubuntu.com/ubuntu trusty-security universe
deb-amd64 http://security.ubuntu.com/ubuntu trusty-security universe
deb-i386 http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-amd64 http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb-i386 http://extras.ubuntu.com/ubuntu trusty main
deb-amd64 http://extras.ubuntu.com/ubuntu trusty main

# Trusty-oem
deb-i386 http://oem.archive.canonical.com/updates/ trusty-oem public
deb-amd64 http://oem.archive.canonical.com/updates/ trusty-oem public

# trusty-oem-sp1
deb-i386 http://oem.archive.canonical.com/updates/ trusty-oem-sp1 public
deb-amd64 http://oem.archive.canonical.com/updates/ trusty-oem-sp1 public

# trusty-stella-kenting151027
deb-i386 http://hp.archive.canonical.com/updates trusty-stella-kenting151027 public
deb-amd64 http://hp.archive.canonical.com/updates trusty-stella-kenting151027 public

# trusty-stella
deb-i386 http://hp.archive.canonical.com/updates trusty-stella public
deb-amd64 http://hp.archive.canonical.com/updates trusty-stella public

# mirrors linex
deb-i386 http://desarrollo.educarex.es/solointranet/ubuntu/trusty trusty linex
deb-amd64 http://desarrollo.educarex.es/solointranet/ubuntu/trusty trusty linex
deb-i386 http://linex.educarex.es/ubuntu/trusty trusty linex
deb-amd64 http://linex.educarex.es/ubuntu/trusty trusty linex

clean http://es.archive.ubuntu.com/ubuntu/
clean http://security.ubuntu.com/ubuntu/
clean http://extras.ubuntu.com/ubuntu/
clean http://oem.archive.canonical.com/updates/
clean http://hp.archive.canonical.com/updates/
clean http://desarrollo.educarex.es/solointranet/ubuntu/
clean http://linex.educarex.es/ubuntu/
Una observación: Como estamos creando los mirrors en /var/spool/apt-mirror/mirror, no olvidéis crear los enlaces a los nuevos repositorios en /var/www:
ln -s /var/spool/apt-mirror/mirror/desarrollo.educarex.es /var/www/desarrollo.educarex.es
ln -s /var/spool/apt-mirror/mirror/linex.educarex.es /var/www/linex.educarex.es
Publicado por primera vez en http://enavas.blogspot.com.es