Dne čt 24. května 2012 Dexter Filmore napsal(a):
Or can I pull a mirror, even if the connection is
horrible slow?
I mean: help?
I adapted this:
https://help.ubuntu.com/community/Debmirror
to that:
#!/bin/bash
export GNUPGHOME=/home/mirrorkeyring
arch=amd64
section=main,restricted,universe,multiverse
release=precise,precise-security,precise-updates
server=http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-night
ly-builds inPath=/ubuntu
proto=http
outPath=/mnt/media/trinity
debmirror -a $arch \
--no-source \
-s $section \
-h $server \
-d $release \
-r $inPath \
--progress \
-e $proto \
$outPath
Output looks like this.
# mirror-trinity.sh
Mirroring to /mnt/media/trinity from
http://http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-night
ly-builds/ubuntu/ Arches: amd64
Dists: precise,precise-security,precise-updates
Sections: main,restricted,universe,multiverse
Pdiff mode: use
Will clean up after mirroring.
Attempting to get lock ...
Updating remote trace files (using rsync) ...
ssh: Could not resolve hostname http: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far)
[Receiver] rsync error: unexplained error (code 255) at io.c(605)
[Receiver=3.0.9] Warning: failed to use rsync to download extra files.
Getting meta files ...
[ 0%] Getting: dists/precise/Release... #** GET
http://http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-night
ly-builds/ubuntu/dists/precise/Release ==> 500 Can't connect to http::80
failed 500 Can't connect to http::80
[ 0%] Getting: dists/precise-security/Release... #** GET
http://http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-night
ly-builds/ubuntu/dists/precise-security/Release ==> 500 Can't connect to
http::80
failed 500 Can't connect to http::80
[ 0%] Getting: dists/precise-updates/Release... #** GET
http://http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-night
ly-builds/ubuntu/dists/precise-updates/Release ==> 500 Can't connect to
http::80
failed 500 Can't connect to http::80
Errors:
Download of dists/precise/Release failed: 500 Can't connect to
http::80 Download of dists/precise-security/Release failed: 500 Can't
connect to http::80
Download of dists/precise-updates/Release failed: 500 Can't connect to
http::80
Failed to download some Release or Release.gpg files!
WARNING: releasing 1 pending lock...
Variable server should be without http://
Otherwise, then http:// is in the address obviously again.
Slávek