У меня работает сервер apt-cacher-ng . Я apt использовать это:

» cat /etc/apt/apt.conf.d/01proxy 
Acquire::http { Proxy "http://apt-cacher.mine"; };

Какой вид работы:

» sudo apt update
Err:1 http://dl.google.com/linux/chrome/deb stable InRelease
  503  DNS error for hostname linux: Name or service not known. If linux refers to a configured cache repository, please check the corresponding configuration file. [IP: 10.13.13.102 80]
Err:2 http://packages.linuxmint.com tara InRelease
  503  DNS error for hostname dists: Name or service not known. If dists refers to a configured cache repository, please check the corresponding configuration file. [IP: 10.13.13.102 80]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                   
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease   
Get:5 http://archive.canonical.com/ubuntu bionic InRelease [242 kB]
Hit:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                   
Hit:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Fetched 242 kB in 3s (88,6 kB/s)                   
Reading package lists... Done
Building dependency tree
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Skipping acquire of configured file 'partner/i18n/Translation-en_US' as repository 'http://archive.canonical.com/ubuntu bionic InRelease' doesn't have the component 'partner' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partner/dep11/Components-amd64.yml' as repository 'http://archive.canonical.com/ubuntu bionic InRelease' doesn't have the component 'partner' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'partner/cnf/Commands-amd64' as repository 'http://archive.canonical.com/ubuntu bionic InRelease' doesn't have the component 'partner' (component misspelt in sources.list?)
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease  503  DNS error for hostname linux: Name or service not known. If linux refers to a configured cache repository, please check the corresponding configuration file. [IP: 10.13.13.102 80]
W: Failed to fetch http://packages.linuxmint.com/dists/tara/InRelease  503  DNS error for hostname dists: Name or service not known. If dists refers to a configured cache repository, please check the corresponding configuration file. [IP: 10.13.13.102 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Похоже, apt-cacher-ng не знает о linuxmint и google . Он знает об этом (конфигурация по умолчанию):

# Repository remapping. See manual for details.
# In this example, some backends files might be generated during package
# installation using information collected on the system.
# Examples:
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here
Remap-sfnet:  file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here
Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux
Remap-fedora: file:fedora_mirrors # Fedora Linux
Remap-epel:   file:epel_mirrors # Fedora EPEL
Remap-slrep:  file:sl_mirrors # Scientific Linux
Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo # Gentoo Archives

Как я могу определить записи Remap для Linux Mint и Google Chrome? У них есть следующие определения:

» cat /etc/apt/sources.list.d/google-chrome.list 
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

А также:

» cat /etc/apt/sources.list.d/official-package-repositories.list 
# Do not edit this file manually, use Software Sources instead.

deb http://packages.linuxmint.com tara main upstream import backport #id:linuxmint_main

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner

0