local repository ?

Fórumok

Sziasztok!

szeretném, ha a hálózatban lévő gépek egy server gépről töltenék le a csomagokat http v. ftp protokollon keresztül. Az apt-ftparchiver programjával zépen megcsináltam a repository -t, de amikor a netinstall cd megadom kézzel a repo helyét azt mondja nincs érvényes Release fájl, pedig az ott van%!!!!!

Csinált már valaki ilyet? Segítsetek légyszi.
Más megoldás is érdekel csak menjen...

Hozzászólások

http only !!!
Ovasni kellene..., tedd már ki http-re !

> azt mondja nincs érvényes Release fájl, pedig az ott van%!!!!!

gondolom nincs Release.gpg

Valaha így működött nálunk:

/usr/bin/debmirror -v -p -a i386 -s main,contrib,non-free -d sarge,etch,sid,experimental -h ftp.de.debian.org --nosource --postcleanup --getcontents /home/ftp/mirror/debian/ >> /var/log/debmirror/debmirror.log >/dev/null 2>&1

Ma már nem használjuk, felesleges. A .hu .de tükrök teljesen jól és gyorsan működnek.

Mik

Szia Mik!

Rendkívül köszönöm mindenki hozzászólását!

A debmirror parancs amit irtál csak skeleton strukturát ill. Release fájlt készít, mit kell tennem ahhoz, hogy ez használható legyen?
A root -os permisszióktól most tekintsünk el :))))

/var/www/mirror:
total 12
1486010 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 .
1485919 drwxr-xr-x 4 root root 4096 2008-05-03 10:48 ..
1502703 drwxr-xr-x 4 root root 4096 2008-05-03 10:58 debian

/var/www/mirror/debian:
total 16
1502703 drwxr-xr-x 4 root root 4096 2008-05-03 10:58 .
1486010 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 ..
1534390 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 dists
1518888 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 .temp

/var/www/mirror/debian/dists:
total 12
1534390 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 .
1502703 drwxr-xr-x 4 root root 4096 2008-05-03 10:58 ..
1534392 drwxr-xr-x 2 root root 4096 2008-05-03 10:48 etch

/var/www/mirror/debian/dists/etch:
total 8
1534392 drwxr-xr-x 2 root root 4096 2008-05-03 10:48 .
1534390 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 ..

/var/www/mirror/debian/.temp:
total 12
1518888 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 .
1502703 drwxr-xr-x 4 root root 4096 2008-05-03 10:58 ..
1534393 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 dists

/var/www/mirror/debian/.temp/dists:
total 12
1534393 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 .
1518888 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 ..
1534394 drwxr-xr-x 2 root root 4096 2008-05-03 10:48 etch

/var/www/mirror/debian/.temp/dists/etch:
total 76
1534394 drwxr-xr-x 2 root root 4096 2008-05-03 10:48 .
1534393 drwxr-xr-x 3 root root 4096 2008-05-03 10:48 ..
1534395 -rw-r--r-- 1 root root 58217 2008-02-16 08:57 Release
1534396 -rw-r--r-- 1 root root 378 2008-02-16 09:15 Release.gpg

#################
#################
#################
#################

Az apt-mirror pedig bináris szinten hibára fut, pedig kedvezően indul:

Downloading 15 index files using 15 threads...
Begin time: Sat May 3 11:04:00 2008
[15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Sat May 3 11:04:00 2008

Proceed indexes: [SPsh: ftp.de.debian.org/debian///dists/etch/main/binary-: No such file or directory
apt-mirror: can't open index in proceed_index_gz at /usr/bin/apt-mirror line 382.

A 382 -es sor és környéke: #-al jelölöm a kérdése sort . Hogy csináljam meg neki az indexet ?

sub proceed_index_gz {
my $uri = shift;
my $index = shift;
my ($path, $package, $mirror, $files) = '';

$path = $uri;
$path =~ s[^(\w+)://][];
$path =~ s/~/\%7E/g if get_variable("_tilde");
local $/ = "\n\n";
$mirror = get_variable("mirror_path") . "/" . $path;

if($index =~ s/\.gz$//) {
system("gunzip < $path/$index.gz > $path/$index");
}

# open STREAM, "<$path/$index" or die("apt-mirror: can't open index in
# proceed_index_gz");
#
while($package = ) {
local $/ = "\n";
chomp $package;
my (undef, %lines) = split(/^([\w\-]+:)/m, $package);

chomp(%lines);
remove_spaces(\%lines);

if(exists $lines{"Filename:"}) { # Packages index
$skipclean{remove_double_slashes($path . "/" . $lines{"Filename:"})} = 1;
print FILES_ALL remove_double_slashes($path . "/" . $lines{"Filename:"}) . "\n";
print FILES_MD5 $lines{"MD5sum:"} . " " . remove_double_slashes($path . "/" . $lines{"Filename:"}) . "\n";
if(need_update($mirror . "/" . $lines{"Filename:"}, $lines{"Size:"})) {
print FILES_NEW remove_double_slashes($uri . "/" . $lines{"Filename:"}) . "\n";
add_url_to_download($uri . "/" . $lines{"Filename:"}, $lines{"Size:"});
}
} else { # Sources index
foreach (split(/\n/, $lines{"Files:"})) {
next if $_ eq '';
my @file = split;
die("apt-mirror: invalid Sources format") if @file != 3;
$skipclean{remove_double_slashes($path . "/" . $lines{"Directory:"} . "/" . $file[2])} = 1;
print FILES_ALL remove_double_slashes($path . "/" . $lines{"Directory:"} . "/" . $file[2]) . "\n";
print FILES_MD5 $file[0] . " " . remove_double_slashes($path . "/" . $lines{"Directory:"} . "/" . $file[2]) . "\n";
if(need_update($mirror . "/" . $lines{"Directory:"} . "/" . $file[2], $file[1])) {
print FILES_NEW remove_double_slashes($uri . "/" . $lines{"Directory:"} . "/" . $file[2]) . "\n";
add_url_to_download($uri . "/" . $lines{"Directory:"} . "/" . $file[2], $file[1]);
}
}
}
}

close STREAM;
}

+ info találtam közben:

apt-mirror e-nál ez a hiba egy bug.(ubuntu esetében is szóba került) Hogy javították -e már valahogy annak egyenlőre nem néztem utána.

viszont a debmirror most tölti a csomagokat, kicsit reszelnem kellett rajta, hogy elinduljon, dem most szedegeti lefelé őket egy német szerverről.

Kedves Mik, Thank you * 100 :))))%!!!

csak nem jó,

letöltöttem csomagokat, minden ok.
Viszont netisntall cd -ről a kliens nem látja http -n keresztül.
Elvileg apache2 jól van konfigolva.

a /var/www/mirror2 alá töltöttem le mindent és ez a DocumentRoot.

azt mondja a kliens, hogy nem talál érvényes Release fájlt.!!!:)
ilyen könyvtárak vannak többek között:

/var/www/mirror2
/var/www/mirror2/.temp
/var/www/mirror2/dists/etch/Release
/var/www/mirror2/dists/etch/Release.gpg
/var/www/mirror2/pool
/var/www/mirror2/project

Ötlete van valakinek, hogy mit cseszek el?!

Előre is köszi.