2008-01-29
How to use apt-get behind proxy server
关键字: apt-get proxy
(from http://blog.mypapit.net/2006/02/how-to-use-apt-get-behind-proxy-server-ubuntudebian.html)
If you are a Debian-based GNU/Linux user, then you’re probably familiar with synaptic and apt-get to install application from software repositories. This post focussed on how to use apt-get/synaptic behind proxy server/firewall which under normal circumstances, you’re unable to use apt-get.
If you’re using Synaptic
Open up your Synaptic package manager (usually as root), go to Settings-> Preference -> Network. Enter your proxy server details like : username:password@proxyserver.net, and put the proxy server port (usually 8080).
If you’re using command-line apt-get
Edit your /etc/bash.bashrc file as root.
Put these line at the end of your /etc/bash.bashrc file :
export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/
You can omit the username:password, if your proxy server has no password. That’s all for today! Happy apt-get-ing!
If you are a Debian-based GNU/Linux user, then you’re probably familiar with synaptic and apt-get to install application from software repositories. This post focussed on how to use apt-get/synaptic behind proxy server/firewall which under normal circumstances, you’re unable to use apt-get.
If you’re using Synaptic
Open up your Synaptic package manager (usually as root), go to Settings-> Preference -> Network. Enter your proxy server details like : username:password@proxyserver.net, and put the proxy server port (usually 8080).
If you’re using command-line apt-get
Edit your /etc/bash.bashrc file as root.
Put these line at the end of your /etc/bash.bashrc file :
export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/
You can omit the username:password, if your proxy server has no password. That’s all for today! Happy apt-get-ing!
发表评论
- 浏览: 10170 次
- 性别:


- 详细资料
搜索本博客
最新评论
-
java中的Observer模式
恩,很好,谢谢
-- by xiaobai1023 -
python 字符串中的中文识 ...
s = u'中华人民共和国(北京)'
-- by harry -
java中的Observer模式
不错,思路简单易懂!
-- by James Zhao -
python 字符串中的中文识 ...
# -*- coding: utf-8 -*-s = '中华人民共和国(北京)' ...
-- by MountLion -
python 字符串中的中文识 ...
# -*- coding: gb18030 -*- # -*- codi ...
-- by guotie






评论排行榜