找回密碼
 註冊
搜索
查看: 5996|回復: 0

[Ubuntu] 設定 apt-get 使用 Proxy 下載

[複製鏈接]
發表於 2011-3-15 15:59:27 | 顯示全部樓層 |閱讀模式
Open terminal and the file  /etc/bash.bashrsc
  1. sudo vi /etc/bash.bashrc
複製代碼
and  add  at the  bottom of  the  file these 2 lines :
  1. #proxy
  2. export http_proxy=http://user:password@host:port/
  3. export ftp_proxy=http://user:pass@host:port/
複製代碼
Reference: Configure apt-get to work behind a proxy in Ubuntu 10.04
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-4-30 00:03 , Processed in 0.022438 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表