LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2018, 05:33 PM   #1
bt101
Member
 
Registered: Mar 2008
Posts: 61

Rep: Reputation: 19
apt-cacher-ng trying to import, package files not cached


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make apt believe there are new packages (apt-cacher-ng as a proxy) zhjim Debian 2 08-28-2013 06:50 AM
apt-cacher-ng | How to re-direct clients when the cacher server is unavailable? future_open Linux - Server 1 01-29-2011 03:54 AM
Apt-cacher help! odin06 Linux - Newbie 3 10-10-2009 07:48 AM
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 10:13 PM
apt-cacher and checkinstall - client cannot find self-made package linuxBeginner02 Linux - Newbie 1 03-27-2008 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration