This is a my workaround to use apt-cacher to download the daily intrepid
alternate iso image:
sudo vi /usr/sbin/apt-cacher +528
I remmed old line
# if ($filename =~
/(?:\.deb|\.rpm|\.dsc|\.tar\.gz|\.diff\.gz|\.udeb|index\.db-.+\.gz\.jigdo|\.template)$/)
{
and i add this modified line:
if ($filename =~
/(?:\.deb|\.rpm|\.dsc|\.jigdo|\.txt|\.pxelinux|pxelinux\.0|\.c32|\.png|\.tar\.gz|\.diff\.gz|\.udeb|index\.db-.+\.gz\.jigdo|\.template)$/)
{
Then to run jigdo and get benefit of already cached deb packages i run
this script file:
#!/bin/bash
if [ $UID != 0 ]; then
echo "This prog must be run with root privileges as root user or using sudo..."
exit
fi
cd /home/danilo/sysope/intrepid
umount /media/loop
mv intrepid-alternate-i386.iso intrepid-alternate-i386.iso.old
mount -t iso9660 -o loop -vv ./intrepid-alternate-i386.iso.old /media/loop
rm -f *.template jigdo-file-cache.db intrepid-alternate-i386.jigdo
wget http://cdimage.ubuntu.com/daily/current/intrepid-alternate-i386.jigdo
wget http://cdimage.ubuntu.com/daily/current/intrepid-alternate-i386.template
# -------------------------------------------------------------------------
# if something isn't downloaded because apt-cacher filter it please change
# sudo vi /usr/sbin/apt-cacher +528
# here my apt-cacher proxy
export http_proxy=http://192.168.1.50:3128; export ftp_proxy=$http_proxy
#
-------------------------------------------------------------------------
jigdo-lite --noask --scan /media/loop/ ./intrepid-alternate-i386.jigdo
umount /media/loop
# rm intrepid-alternate-i386.iso.old
Hope this help
--
jigdo should pick up proxy setting from /etc/apt.conf
https://bugs.launchpad.net/bugs/225494
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs