/etc/apt/apt.conf.d/70debconf に追記
Proxyを利用
Acquire::http::Proxy "http://proxy.example.com:8080/";
Acquire::ftp::Proxy "ftp://proxy.example.com:8080/";
又は
Acquire {
Retries "0";
http {
Proxy "http://proxy.example.com:8080/";
}
ftp {
Proxy "ftp://proxy.example.com:8080/";
}
// comment
}
Proxy認証を利用
Acquire::http::Proxy "http://username:password@proxy.example.com:8080/";
Acquire::ftp::Proxy "ftp://username:password@proxy.example.com:8080/";
又は
Acquire {
Retries "0";
http {
Proxy "http://username:password@proxy.example.jp:8080/";
}
ftp {
Proxy "ftp://username:password@proxy.example.jp:8080/";
}
// comment
}
Reference
Linux/apt.conf - discypushttp://discypus.jp/wiki/?Linux%2Fapt.conf