Questions tagged [apt-cacher-ng]

apt-cacher-ng is a proxy for debian (and other) packages to reduce bandwidth usage with multiple clients.

apt-cacher-ng is a proxy for debian (and other) packages to reduce bandwidth usage with multiple clients.

33 questions
15
votes
3 answers

How to prevent apt-get/aptitude keeping a cache

I have installed Apt-Cacher NG to provide a cache of packages for several machines. I therefore see no point in having aptitude/apt-get keeping their own (second) cache in /var/cache/apt/archives. I realise I can empty this cache with sudo apt-get…
Blair
  • 2,891
  • 2
  • 20
  • 16
9
votes
8 answers

Apt-Get using Apt-Cacher NG fails to fetch packages with hash sum mismatch

I have a machine who is using Apt-Cacher NG running on another machine as caching proxy. When I try to run sudo apt-get update I get the following errors: W: Failed to fetch…
8
votes
3 answers

How can I make pbuilder use my apt-cacher-ng instance?

I have a apt-cacher-ng server on my LAN network, and I was wondering how I could "force" pbuilder to use it (to speed up package builds). Typical setup client-side of the cache goes something like this: In /etc/apt/apt.conf: Acquire::http { Proxy…
jrg
  • 61,707
7
votes
5 answers

Install oracle-java7-installer through apt-cacher-ng

I've added the oracle-java7-installer ppa to my apt-cacher-ng server and to my clients. I cannot get it to install. Any ideas on how I can do this? I think it fails when it tries to download the installation from Oracle. This is what happens when I…
Axl Mattheus
  • 71
  • 1
  • 3
6
votes
1 answer

Use a PPA with a Password while still using Apt-cacher-ng?

I'm using apt-cacher-ng to cache package downloads for my LAN. I'm also using the Ubuntu Beta fonts PPA which requires a password for access. I keep getting the error bjorn@bjorn-laptop-natty:~$ sudo apt-get update [sudo] password for bjorn: Ign…
Azendale
  • 12,021
6
votes
3 answers

Howto use apt-cacher-ng only when available?

I'm using apt-cacher-ng at my local network with the following configuration on the clients: Acquire::http { Proxy "http://acng-host:3142"; }; Some of the clients are laptops, so how do I configure them to use the cache only when it's available on…
itshorty
  • 163
5
votes
3 answers

apt-cacher-ng: force client on local repository

I'm currently managing a dozen servers. apt-cacher-ng is installed on the development server to maintain the packages. The idea is to have exactly the same version and number of packages on the production servers. We first make the update/upgrade on…
krpt
  • 51
4
votes
0 answers

How to get Docker images to use my transparent/intercept squid on the host without touching Docker images?

I have a squid instance running on my server which is connected to 192.168.178.0/24 through eth0 with 192.168.178.26 and serves as gateway for the LAN 192.168.179.0/24 through p18p1 with 192.168.179.1. I use sudo iptables -t nat --append squid…
4
votes
2 answers

Unable to download anything from apt-cacher-ng proxy

I have installed apt-cacher-ng on my server. There are about 10 clients which will use this proxy to download the packages. Things were working fine since many days, however, all of sudden I started facing a lot of issues. While downloading…
Tahir Rauf
  • 299
  • 3
  • 13
4
votes
1 answer

How do Remap-* statements work in apt-cacher-ng?

I've just started using apt-cacher-ng to cache my apt-get downloads. Whenever I start it I get this error: WARNING: No URL list file matching file:backends_gentoo found in config or support directories. Looking in /etc/apt-cacher-ng/acng.conf I see…
3
votes
2 answers

How to install flashplugin-installer and ttf-mscorefonts-installer using apt-cacher-ng?

On my network i use apt-cacher-ng on server and add Acquire::http { Proxy "http://[10.48.21.23]:3142"; }; to /etc/apt/apt.conf on clients. So apt-get can't download file through proxy with wget.
Daiko
  • 33
  • 1
  • 4
3
votes
2 answers

Caching CentOS packages on Ubuntu using apt-cacher-ng

I am using VirtualBox with Ubuntu 12.04 as the host and CentOS 6.3 as the guest OS. apt-cacher-ng is configured on the host OS for caching the packages. I did a bit of googling, but could not figure out how to cache the CentOS guest packages on the…
3
votes
3 answers

Does anyone know why apt-cacher-ng always downloads an index file (Packages.gz) even though its exist on the apt-cacher-ng's cache?

I just updated from 11.04 to Ubuntu 12.04 by doing a fresh install. I installed apt-cacher-ng and notice something strange about it. It's always downloading an index file (Packages.gz) even though the file exists in the apt-cacher-ng's cache. This…
3
votes
0 answers

apt-cache implementation

I am looking at the apt-cache implementation. How does apt-cache create and updates the local package cache? Is it periodic or manual? As far as my investigation, it is manual (apt-get update). When we run "apt-get update", does it download all the…
kavitha R
  • 31
  • 1
2
votes
0 answers

Apt-cacher-ng: Is there a way to avoid duplicating /var/cache/apt?

I know apt-cacher-ng is duplicating the data in /var/cache/apt. Is there a way to tell it to use /var/cache/apt, or it isn't doable due to permissions? Mi partition has little space. I could indeed make apt-cacher-ng use other partition, but it…
1
2 3