I have a bunch of deb files that I want to import (pre-load) into apt-cacher-ng, however it won't work.
I've followed all of the instructions and put the deb file in the _import directory. According to the instructions, you need to go to one of the client machines and do an apt-get update so that acng gets populated with the package lists. You should then be able to go to the acng web page and hit import.
The import process runs (it has no errors) and at the end it just reports the a few files were imported but 99% of 300+ files were left behind.
I know I should give you a lot more detail, but I think I've narrowed things a bit, so let me ask the following first.
On the client machine (as per the instructions) I delete all the package files from /var/lib/apt/lists before I do an apt-get update. This should force the re-download of the package files through acng.
After the apt-get update, the package files have successfully been installed on the client machine. However if I check on the acng server in the /var/cache/apt-cacher-ng sub-directories, the package files are not there. Somehow they made it all the way to the client, but acng did not cache them. If acng does not have them, it won't know what deb files to import.
For example, I'm trying to import freecad deb files that came from the freecad ppa. So on the client machine, to point to the freecad ppa:
Code:
add-apt-repository ppa:freecad-maintainers/freecad-stable
I then repeatedly delete the client package files and apt-get update. The client does get the package files, but acng does not hold them. The only files held on acng are:
Code:
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/InRelease
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/InRelease.head
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-i386
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-i386/by-hash
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-i386/by-hash/SHA256
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-i386/by-hash/SHA256/3e77b4462442aca2a538d253ebae5c75903719cae026cbeeda88e401e05e80dd
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-i386/by-hash/SHA256/3e77b4462442aca2a538d253ebae5c75903719cae026cbeeda88e401e05e80dd.head
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-amd64
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-amd64/by-hash
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-amd64/by-hash/SHA256
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-amd64/by-hash/SHA256/8c15bb1a7a55bd5147a19daf05e7f165d23b6179bf6e5210e886f37e02867493
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-amd64/by-hash/SHA256/8c15bb1a7a55bd5147a19daf05e7f165d23b6179bf6e5210e886f37e02867493.head
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/i18n
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/i18n/by-hash
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/source
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/source/by-hash
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/source/by-hash/SHA256
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/source/by-hash/SHA256/1a7f4b6db786954f4c44f7ef1bd62e2a7ea189cff17f5f9742e5cc4aadb9789b.head
./ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/source/by-hash/SHA256/1a7f4b6db786954f4c44f7ef1bd62e2a7ea189cff17f5f9742e5cc4aadb9789b
No Package files.
Here's the final note... if I just give up and do and apt-get install of freecad on the client machine, of course that populates acng with the deb files from the internets, but it also populates it with the packages files. What the heck???
I just want to understand why acng will not cache the package files when the client machine does an apt-get update (especially when the files make it all the way to the client). I'd like to know that for the future.
Thanks