how to add a host to the uburep mapping

Asked by Rolf Leggewie on 2014-03-27

Things have changed in acng and I no longer understand how to add a host to the uburep mapping.

Of course, I'd like it to survive the next package update. Changing /usr/lib/apt-cacher-ng/ubuntu_mirrors isn't going to achieve that.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt-cacher-ng Edit question
Assignee:
No assignee Edit question
Solved by:
Eduard Bloch
Solved:
2014-03-31
Last query:
2014-03-31
Last reply:
2014-03-27
Best Eduard Bloch (edi-gmx) said : #1

You just extend the list. Change

Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu ; proxy= # Ubuntu Archives

to

Remap-uburep: file:ubuntu_mirrors /ubuntu /some.other.mirror.I.need.to.fake.example.com/ubuntu/ ; file:backends_ubuntu http://my.funny.local.server/ubuntu/

And since multiple backend definitions are merged at runtime, you could put an extension point into an additional conf file (not maintained by dpkg). Like /etc/apt-cacher-ng/acng_local.conf having the line

Remap-uburep: /some.other.mirror.I.need.to.fake.example.com/ubuntu/ ; http://my.funny.local.server/ubuntu/

Rolf Leggewie (r0lf) said : #2

Thanks, Eduard. It helped me also to read file:///usr/share/doc/apt-cacher-ng/html/config-serv.html

Rolf Leggewie (r0lf) said : #3

Thanks Eduard Bloch, that solved my question.