I use the apt-mirror for debian/ubuntu howto, is great, but I have a problem: I am trying to change de default path to a directory called apt-mirror in my home. In the mirror.list file says that if i change the default path, i should create the subdirectorys too. I did that but when i run su - apt-mirror -c apt-mirror I get this error: apt-mirror: can't write to intermediate file (index-urls.0) at /usr/bin/apt-mirror line 174. what is that?
Ubuntu network install problem Hi Falco When I run the network install I enter the IP of the local mirror that I created. Then I add /ubuntu as the directory and then I get an error Downloading a file failed" with an Option to retry or change mirror. I checked my local mirror by going to http://172.16.10.18/ubuntu and checking that apache was serving the files and it seems fine as I can download files through my browser. I then hit Alt+F2 and typed tail /var/log/syslog and it shows that I have a bad d-i packages file. This is my mirror.conf file... ############# config ################## # # set base_path /var/spool/apt-mirror # # if you change the base path you must create the directories below with write privlages # # 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 <running host architecture> # set nthreads 20 # set tilde 0 # ############# end config ############## deb http://archive.ubuntu.com/ubuntu feisty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse # deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse # deb http://archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse # deb http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse # deb-src http://archive.ubuntu.com/ubuntu feisty main restricted universe multiverse # deb-src http://archive.ubuntu.com/ubuntu feisty-updates main restricted universe multiverse # deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse # deb-src http://archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse # deb-src http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse clean http://archive.ubuntu.com/ Could you shed some light? Thanks for the kickass howto. AnRkey
I still don't have this fixed, waiting for Falco to respond. This thread is about his howto so maybe he can help. AnRkey
Screenshots Hi Falco I have attached screenshots of my problem. Please let me know if there is anything else I can provide. AnRkey
main/debian-installer Hello, You need to add main/debian-installer in mirror.list if you want to be able to install. Your next problem (the one i have) is that the installation will stop as apt-get won't be able to find Packages.bz2 files in the skel directory. I guess they have been bunzipped by apt-mirror to build the list of packages to download. Too bad it doesn't keep them. Any idea to solve this issue. Thank you. Maxime
Ubuntu My problem is with the Ubuntu network installer not Debian. Is the advise still the same in this case?
debian-installer Yes, check here : http://mirrors.kernel.org/ubuntu/dists/feisty/main/debian-installer/
My mirror.list ############# config ################## # set base_path /srv/repository/ubuntu # # if you change the base path you must create the directories below with write privlages # # 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 <running host architecture> set nthreads 20 set tilde 0 # ############# end config ############## deb http://mirrors.kernel.org/ubuntu feisty main main/debian-installer restricted restricted/debian-installer deb http://mirrors.kernel.org/ubuntu feisty-updates main restricted deb http://mirrors.kernel.org/ubuntu feisty-security main restricted clean http://mirrors.kernel.org/ubuntu My installation now works with this config file.
Hi !! I had the same error message. In my case I changed the default mirror path and the issue was that I did not have the correct permissons on the new folder I created. Make sure the user apt-mirror has write privilegies on the new path. chown -R apt-mirror. /newfolder BR