Skype リポジトリのための apt-cacher-ng の Remap- 設定
【2017年7月17日に訂正】
Debian での話。結論から書くと
/etc/apt-cacher-ng/acng.conf に
Remap-skype: http://localhost/skype ; file:backends_skype # skype repository cache on localhost
Remap-skype: http://somehost/skype ; file:backends_skype # skype repository cache on somehost
/etc/apt-cacher-ng/backends_skype に
https://repo.skype.com/deb
/etc/apt/sources.list.d/skype-stable.list に
deb http://localhost/skype stable main
deb http://somehost/skype stable main
これらがないと、
aptitude で パッケージリストのアップロードを行う時に 403 エラーが出てくる。
通常では、apt-cacher-ng はクライアントからのSSLでの CONNECT リクエストを透過的に通すようになっていないため。
Remap- の次の skype と deb 行の skype は一致させておく必要がある。
acng.conf で
PassThroughPattern: ^repo.skype.com:443$
を指定すると、クライアントが直接 https 接続することを許容するので エラーは出なくなるが、キャッシュもされなくなる。


最近のコメント