OSWikiHK: 请协力 GPLv3 的中文翻译工作。

Filesystem:/etc/apt/apt.conf

OSWikiHK,自由中文開源知識庫

< Filesystem: | etc | apt

設定 Proxy 伺服器

Apt 允許你設定 proxy 伺服器。如果你有這個需要,你可以修改檔案 /etc/apt/apt.conf ,在 Acquire 裡的 Http 加入 Proxy 項目:  

Acquire
{
  Http
  {
    Proxy "http://proxy.example.com:3128";
  };
  Retries "0";
};

  你亦可以使用簡短的寫法:

//加在最後一行,注意不要被括號 {} 括住了!
Acquire::Http::Proxy "http://proxy.example:3128";
Personal tools
廣告橫額