Ubiquity making use of avahi to find apt-cacher-ng

Asked by John Bester

During an Ubuntu installation you have the option to disable updating packages, but at some point in time an apt update downloads package lists from the internet. This might not be something people think about in countries where internet access is cheap and fast, but for the rest of use, this makes an Ubuntu installation much slower. All the necessary software to improve this already exists and making use of this is so simple that it is difficult to think why no one has bothered to do this. Think about it this way:

A network administrator have installed apt-cacher-ng on the network. It would be great if new installations will make use of this. I have in the past been able to do this by "try ubuntu" option, then opening a terminal and starting ubiquity at the same time. If your timing is right (wait for /target/etc/apt/apt.conf.d folder to be created), you can set a proxy definition for apt to use.

However, there is a much easier way. Avahi Daemon already reports apt-cacher-ng by simply installing apt-cacher-ng. If you install squid-deb-proxy-client package as part of the default installation of any ubuntu flavour, then apt would pick up apt-cacher-ng instances on the local network and thereby speeding up installations and lowering internet traffic. squid-deb-proxy-client is in the multiverse repository (which holds copyrighted packages), but if you install it, the licence file makes it clear that squid-deb-proxy-client is GPL-V3. So there is no reason why it cannot be part of any ubuntu installation.

This would be a very welcome (and yet very small) addition to Ubuntu installations.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug with your suggestion as a fix

Can you help with this problem?

Provide an answer of your own, or ask John Bester for more information if necessary.

To post a message you must log in.