{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/apt-cacher-ng/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/apt-cacher-ng/", "feed_url": "https://matoken.org/blog/tag/apt-cacher-ng/feed/json/", "language": "ja", "title": "apt-cacher-ng – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=2433", "url": "https://matoken.org/blog/2019/07/19/direct-access-to-https-repository-with-apt-cacher-ng/", "title": "apt-cacher-ng \u3067 https \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u3059\u308b", "content_html": "
apt-cacher-ng \u3067\u5404\u7a2e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\uff0chttps \u306e\u5834\u5408\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff0e
\n$ sudo apt update\r\nErr:1 https://updates.signal.org/desktop/apt xenial InRelease Reading from proxy failed - read (115: Operation now in progress) [IP: 192.168.1.102 3142] Err:2 https://deb.opera.com/opera-stable stable InRelease\r\n Reading from proxy failed - read (115: Operation now in progress) [IP: 192.168.1.102 3142]\r\n :\r\nW: Failed to fetch https://deb.opera.com/opera-stable/dists/stable/InRelease Reading from proxy failed - read (115: Operation now in progress) [IP: 192.168.1.102 3142]\r\nW: Failed to fetch https://updates.signal.org/desktop/apt/dists/xenial/InRelease Reading from proxy failed - read (115: Operation now in progress) [IP: 192.168.1.102 3142]\r\nW: Some index files failed to download. They have been ignored, or old ones used instead.\n
Debian wiki \u306b\u89e3\u6c7a\u65b9\u6cd5\u304c\u8f09\u3063\u3066\u3044\u307e\u3057\u305f\uff0ehttps \u306e\u5834\u5408\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u305b\u305a\u306b\u76f4\u63a5\u898b\u306b\u884c\u304b\u305b\u308b\u8a2d\u5b9a\u304c\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\uff0e
\n\n\n\n\nHTTPS repositories
\n
\napt-cacher-ng will obviously fail to serve HTTPS repositories. There are many solutions upstream but I have found the simplest solution to be to simply tunnel HTTPS connections directly on the proxy, by putting this in /etc/apt-cacher-ng/acng.conf:\n\n\n\nPassThroughPattern: .*\n\n\nThis is, as far as I can tell, the only way to avoid doing a special configuration on the clients for HTTPS repositories. The downside is that HTTPS content is not cached.
\n
/etc/apt-cacher-ng/acng.conf \u306b PassThroughPattern: .* \u3092\u8a2d\u5b9a\u3057\u3066\u30c7\u30fc\u30e2\u30f3\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30a8\u30e9\u30fc\u3092\u51fa\u3055\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e
\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306e\u3088\u3046\u306b source.list \u3092\u66f8\u304d\u63db\u3048\u3066https \u3067\u3042\u3063\u3066\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u4eca\u56de\u306f\u306a\u3057\u3067\uff0e
\n$ dpkg-query -W apt-cacher-ng\r\napt-cacher-ng 3.1-1build1\r\n$ hostnamectl | egrep 'Operating System|Architecture'\r\n Operating System: Ubuntu 18.04.2 LTS\r\n Architecture: x86-64\n
$ dpkg-query -W apt\r\napt 1.8.2\r\n$ hostnamectl | egrep 'Operating System|Architecture'\r\n Operating System: Debian GNU/Linux bullseye/sid\r\n Architecture: x86-64\n