Re: Cannot import packages from debian iso to apt-cacher-ng
Can anyone please rectify me. I have got some weird doubts. I have set up a PXE boot server. It has a forder /srv/tftp and it has all the required files for PXE install. I have also installed apt-cacher-ng on that PXE server. And that PXE server is also acting as a local DHCP server. So now, what should I do? 1) I should first do this on the PXE server echo "Acquire::http { Proxy "http://localhost:3142";;; };" > /etc/apt/apt.conf.d/90proxy and then I should install one client using my bootable usb. But then how will apt-cacher import all packages from that client? 2) Or instead of step 1 above, should I first mount all the three iso on the PXE server, create a symlink to the /pool folder to /var/cache/apt-cacher-ng/_import and then import packages? But the above method fails! Don't know why! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+jf9agttxi22cqnq43qwxzhw8xjsrwa+dzzfdz7ioh+qz8...@mail.gmail.com
Re: Cannot import packages from debian iso to apt-cacher-ng
> Then I recommend taking the easy way out. Just install one machine > using apt-cacher-ng as a proxy. Then all of the packages will be > ready for the next machine. Install the rest using the proxy and they > will use the already downloaded files. It is simple. It works. Was it so easy. How did I miss it. So that means I need to set up the PXE server, install apt-cacher-ng using that server, then install a client again using that server and apt-cacher-ng will then be ready for the next machines!! :) -- Regards, Anubhav Yadav Imperial College of Engineering and Research, Pune. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+jf9agx2m2m+auaqyrzhsjqqrp97ydrigneivhay0ojt8u...@mail.gmail.com
Re: Cannot import packages from debian iso to apt-cacher-ng
Anubhav Yadav wrote: > I installed a 32 bit Debian Wheezy on a PC (One PC in a lab of 24 computers). > I made it a dhcp PXE server with netboot images of Debian 7 32 bits. > It worked perfectly and all the 20 computers booted from network with > the debian installer. Good for you. > The only problem was that all the packages had to be retrieved from > the internet and bandwidth was a problem. So only one computer could > be properly installed. Twenty machines will be a lot of duplicated bandwidth. Good to use a caching proxy. > So I tried to look for solutions on how to completely boot the 4.3 GB > iso from the network, bypassing the internet mirrors completely. I > asked a question on the debian user lists and was greeted with many > solutions, among them was the apt-cacher-ng. I agree. apt-cacher-ng would be a good solution. That way you only download the data once and it is shared among all of the machines. > So now I wanted to install 64 bit machines on the same lab, and the 32 > bit server being the PXE server. > > So I installed the apt-cacher-ng package. All was set up. > > I mounted my iso file to a location, and created a symlink of the > /pool folder to /var/cache/apt-cacher-ng/_import folder. I haven't ever imported into apt-cacher-ng. I have only used it in its default proxy mode. Why don't you try it in the default proxy mode? > Next I went to localhost:3142/acng-report.html and ran import and it > gave me the following error: Must you import from the CD? You installed one machine okay from the network. For that same cost of download you could simply install one machine using the apt-cacher-ng proxy. Then all of the files will be cached. Then simply install upon the others. Since they will all be the same they all will be able to use the shared downloaded files. > I am no champion of linux, nor of networking. I am just a student, > trying to learn linux as much as he can, by asking his college to > shift from windows to linux, and in the process learning the > fundamentals of networking and linux. Then I recommend taking the easy way out. Just install one machine using apt-cacher-ng as a proxy. Then all of the packages will be ready for the next machine. Install the rest using the proxy and they will use the already downloaded files. It is simple. It works. Bob signature.asc Description: Digital signature
Cannot import packages from debian iso to apt-cacher-ng
I installed a 32 bit Debian Wheezy on a PC (One PC in a lab of 24 computers). I made it a dhcp PXE server with netboot images of Debian 7 32 bits. It worked perfectly and all the 20 computers booted from network with the debian installer. The only problem was that all the packages had to be retrieved from the internet and bandwidth was a problem. So only one computer could be properly installed. So I tried to look for solutions on how to completely boot the 4.3 GB iso from the network, bypassing the internet mirrors completely. I asked a question on the debian user lists and was greeted with many solutions, among them was the apt-cacher-ng. So now I wanted to install 64 bit machines on the same lab, and the 32 bit server being the PXE server. So I installed the apt-cacher-ng package. All was set up. I mounted my iso file to a location, and created a symlink of the /pool folder to /var/cache/apt-cacher-ng/_import folder. Next I went to localhost:3142/acng-report.html and ran import and it gave me the following error: Maintenance task (File Import), apt-cacher-ng version: 0.7.11 (Cancel) Importing from /var/cache/apt-cacher-ng/_import directory. Scanning local files... Scanning, found 1 file... Scanning, found 2 files... Scanning, found 4 files... Scanning, found 8 files... Scanning, found 16 files... Scanning, found 32 files... Scanning, found 64 files... Scanning, found 128 files... Scanning, found 256 files... Scanning, found 512 files... Scanning, found 1024 files... Scanning, found 2048 files... No index files detected. Unable to continue, cannot map files to internal locations. So I went ahead and tried to grasp the HOWTO for importing from iso, and it mentioned that you need to run apt-get update before importing the packages. Now since I wanted to cache all the 64 bits packages from the iso, I tweaked my sources.list to point to iso (The hyperlink is a method given by me on how to use iso's as apt-get repository). Now when I ran apt-get update it gave me an error that no i386 packages found (made sense since I was running it on 32 bits server, and looking for amd64 packages). So as a test, I installed apt-cacher-ng on my laptop running 64 bits debian, and it gave me the same index error. I even tried manually copying *deb packages from /var/cache/apt/archives to /var/cache/apt-cacher-ng/_import folder, but again same error! I also tried importing packages from official repositories and again it failed. I am no champion of linux, nor of networking. I am just a student, trying to learn linux as much as he can, by asking his college to shift from windows to linux, and in the process learning the fundamentals of networking and linux. Any ideas? -- Regards, Anubhav Yadav Imperial College of Engineering and Research, Pune. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+jf9aejfvtigqzhddt6oyekr6ejklztv8p-5v68win993t...@mail.gmail.com