On Fri, Jan 02, 2009 at 08:51:18AM -0300, David Reese wrote: > 2009/1/1 David Sastre <[email protected]>: > > On Thu, Jan 01, 2009 at 07:14:32PM +0100, David Sastre wrote: > >> On Thu, Jan 01, 2009 at 06:58:36PM +0100, David Sastre wrote: > >> > Hola gente, > >> > > >> > Intento poner en marcha un mirror del repo de lenny para poder usarlo > >> > con las máquinas de mi LAN. He creado el mirror con > >> > > >> > $ cat /media/sda1/DEBMIRROR/makedebmirror.sh > >> > #!/bin/bash > >> > debmirror --debug -p -v -h ftp.nl.debian.org --ignore-release-gpg -e > >> > http -d lenny $PWD --nosource -a i386 > >> > > >> > Lo tengo en una partición dedicada (/media/sda1). > >> > Pretendo acceder a este repo via http, y para ello utilizo un > >> > sources-list con esta línea > >> > > >> > deb http://localhost/debmirror lenny main contrib non-free > >> > > >> > En el httpd.conf de apache defino > >> > > >> > ServerName localhost > >> > DocumentRoot /var/www > >> > <Directory /> > >> > Options FollowSymLinks > >> > AllowOverride None > >> > </Directory> > >> > <Directory /var/www/> > >> > Options Indexes Includes FollowSymLinks MultiViews > >> > AllowOverride None > >> > Order allow,deny > >> > Allow from all > >> > </Directory> > >> > > >> > Y en /var/www > >> > > >> > $ ll > >> > lrwxrwxrwx 1 root root 22 ene 1 15:29 debmirror -> > >> > /media/sda1/DEBMIRROR/ > >> > > >> > La estructura en el mirror es > >> > > >> > $ ll /media/sda1/DEBMIRROR/ > >> > total 28K > >> > drwxr-xr-x 4 dawud dawud 4,0K ene 1 14:54 aptcache > >> > drwxr-xr-x 4 dawud dawud 4,0K ene 1 14:54 debian > >> > drwxr-xr-x 3 dawud dawud 4,0K ene 1 14:54 debian-security > >> > drwxr-xr-x 3 dawud dawud 4,0K ene 1 14:54 dists > >> > -rwxr--r-- 1 dawud dawud 120 ene 1 17:23 makedebmirror.sh > >> > drwxr-xr-x 5 dawud dawud 4,0K ene 1 15:27 pool > >> > drwxr-xr-x 3 dawud dawud 4,0K ene 1 15:30 project > >> > > >> > Al intentar actualizar en aptitude me da un 404. > >> > Apache está levantado > >> > > >> > $ ping localhost > >> > PING localhost (127.0.0.1) 56(84) bytes of data. > >> > 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.027 ms > >> > > >> > He probado el acceso desde un navegador (elinks) y no hay problema. > >> > Se me debe estar escapando algo obvio, pero no lo veo. > >> > Que alguien me de una colleja, por favor. > >> > > >> > Gracias. > >> > >> > >> Bueno..... > >> > >> Del log de apache > >> > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: /var/www/debianmirror/dists/lenny/Release.gpg > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: /var/www/debianmirror/dists/lenny/main/i18n/Translation-es.bz2 > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: > >> /var/www/debianmirror/dists/lenny/contrib/i18n/Translation-es.bz2 > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: > >> /var/www/debianmirror/dists/lenny/non-free/i18n/Translation-es.bz2 > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: /var/www/debianmirror/dists/lenny/Release > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: /var/www/debianmirror/dists/lenny/main/binary-i386/Packages.bz2 > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: > >> /var/www/debianmirror/dists/lenny/contrib/binary-i386/Packages.bz2 > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: > >> /var/www/debianmirror/dists/lenny/non-free/binary-i386/Packages.bz2 > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: /var/www/debianmirror/dists/lenny/main/binary-i386/Packages.gz > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: > >> /var/www/debianmirror/dists/lenny/contrib/binary-i386/Packages.gz > >> [Thu Jan 1 17:54:00 2009] [error] [client 127.0.0.1] File does not > >> exist: > >> /var/www/debianmirror/dists/lenny/non-free/binary-i386/Packages.gz > >> > >> ...y otras parecidas de mis intentos modificando la línea del > >> sources.list para probar. > >> > >> Hice un > >> > >> $ find /var/www/debmirror/ -name Packages.bz2 > >> /var/www/debmirror/.temp/dists/lenny/main/debian-installer/binary-i386/Packages.bz2 > >> /var/www/debmirror/.temp/dists/lenny/main/binary-i386/Packages.bz2 > >> /var/www/debmirror/.temp/dists/lenny/contrib/binary-i386/Packages.bz2 > >> /var/www/debmirror/.temp/dists/lenny/non-free/binary-i386/Packages.bz2 > >> > >> y modifiqué el sources.list > >> > >> deb http://localhost/debmirror/.temp/ lenny main contrib non-free > >> > >> Ahora actualizo la lista de paquetes, pero si selecciono algo para > >> instalar, obviamente no lo encuentra > >> > >> [Thu Jan 1 19:10:19 2009] [error] [client 127.0.0.1] File does not > >> exist: > >> /var/www/debmirror/.temp/pool/contrib/p/python2.5-doc/python2.5-doc_2.5.2-2_all.deb > >> > >> ¿Alguien por ahí con experiencia con debmirror? > >> > >> Gracias de nuevo. > > > > He "solucionado" haciendo una chapucilla: > > > > $ ll /var/www/debmirror/debian > > total 4,0K > > drwxr-xr-x 3 dawud dawud 4,0K ene 1 20:17 dists > > lrwxrwxrwx 1 dawud dawud 8 ene 1 20:01 pool -> ../pool/ > > > > y > > > > $ ll /var/www/debmirror/debian/dists/ > > total 4,0K > > lrwxrwxrwx 1 dawud dawud 24 ene 1 20:17 lenny -> > > ../../.temp/dists/lenny/ > > drwxr-xr-x 3 dawud dawud 4,0K ene 1 14:54 testing > > > > He debido generar algo mal... > > > > El caso es que > > > > deb http://localhost/debmirror/debian/ lenny main contrib non-free > > > > funciona bien ahora. > > > > Seguro que, de todas maneras, alguien me indica lo que estoy haciendo mal. > > > > Gracias. > > > > Yo simplemente le agregue esta linea a mi sources.list > > deb file:///home/dreese/Repositorio stable main > > > donde le indica a mi apt que tengo un directorio llamado "Repositorio" > dentro de mi /home > la carpeta debe contener todos los accesos de lectura y ejecucion... > > Dentro del directorio "Repositorios" copie el contenido completo del > iso que descargue del Debian Lenny y alli el upgrade no me tomo nada > jejejejeje
Hola, Sí, eso está bien para usarlo en esa máquina, pero el repo debe estar accesible de la misma manera a todas las demás máquinas de la LAN, via http en este caso. Gracias. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

