Gustaf Ankarloo's picture

Hi all.


I just tried the tkl-lxc appliance on the hub.

All seems to be working as expected but I can't get the pre configured apt-cacher-ng to work.

All i get is:

Err wheezy Release.gpg
  Could not connect to ( - connect (111: Connection refused)

I have looked at the config files, see no errors there

Did a tcpdump -i natbr0 'port 3142'  

And I see traffic.


Even tried it from the lxc host itself but still the same connection refused message.

Have I perhaps missed something, or is it broken. Any Ideas?


if I disable apt proxy on the containers apt-get works as expected.



Jeremy Davis's picture

But apt-cacher-ng is pretty straight-forward software... And in my experience it just works... The only thing that I could guess is the IP address is wrong for some reason...!? You have demonstrated that the host's port 3142 has something going on... Perhaps you could curl the address and see what you get back? apt-cacher-ng serves a basic html page (which details config) when you try to connect with a browser.

Gustaf Ankarloo's picture

I'll give curl a try, hopefully tomorrow.

On a side note, I really like the concept of tkl.

Jeremy Davis's picture

Glad to hear you worked out what your problem was. And thanks for the heads up re our mistake in the docs...

I have just forked the repo, committed a fix and issued a pull-request... Hopefully Alon or Liraz will merge it real soon. (I don't have write permissions to the code repo - and that's the way I like it!)

Add new comment