Hans Harder's picture

I am getting more and more TKLcontainers, and getting every container access to internet is a problem.

so I am thinking about setting up an TKL core container which should mirror the security updates of TKL and Debian, so that all TKL instances can retrieve the security updates from that instance instead of the internet

Anybody got any experience in howto set this up ?




Jeremy Davis's picture

I have used apt-cacher-ng previously and found it worked pretty well. But as I often create and destroy containers all the time, I got tired of configuring it on every new container I launched, so rarely ever bother these days. If your container lifetime makes it worth the config effort then it's probably a good idea. Updates run much quicker and it obviously reduces internet network traffic.

FWIW as of (the soon to be released) v14.2 Confconsole will include an option to configure an apt proxy. I haven't actually tested it with apt-cacher-ng, but hopefully that will work. You'll still need to configure the local apt-cacher, but hopefully you should be able to use confconsole to quickly and easily link any new containers to it.

Hans Harder's picture

thx Jeremy... I tried it out.

found it has sometimes some problems in getting the packages

Hit http://archive.turnkeylinux.org jessie/main amd64 Packages
Ign http://httpredir.debian.org jessie/contrib Translation-en
Ign http://httpredir.debian.org jessie/main Translation-en
Hit http://archive.turnkeylinux.org jessie/main i386 Packages
Err http://httpredir.debian.org jessie/main amd64 Packages
  500  Bad redirection (path)
Err http://httpredir.debian.org jessie/contrib amd64 Packages
  500  Bad redirection (path)

Everytime when a http://httpredir.debian.org is used, it seems randomly failing with 500 errors.

Seems related to the implementation of httpredir, I assume it guesses which nearby debian mirror it should use..   Problems go away when I specify in the sources.list of apt a nearby mirror instead of httpredir.debian.org..

All in all  apt-cacher-ng works perfectlty now.

QUOTE:  ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

Jeremy Davis's picture

Thanks for the feedback Hans.

No doubt your pointers will help someone else trying to achieve the same! :)

Add new comment