Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I want to configure apt-get in my ubuntu 11.10 version by editing apt.conf file but not getting positive result.pls reply if anybody can...

share|improve this question
3  
Share what you actually changed in the configuration. –  gertvdijk Nov 30 '12 at 10:29
add comment

marked as duplicate by Eliah Kagan, vasa1, Chris Wilson, qbi, hhlp Feb 25 '13 at 14:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Placing a line like

Acquire::http::Proxy "http://proxy-address:8000/";

in a new file in for example /etc/apt/apt.conf.d/10-proxy should do the trick. Be sure to have set up HTTP mirrors in your sources.list if you want to connect to an HTTP proxy or just add another Acquire::ftp::Proxy line for FTP mirror/proxy. Also change address and port number accordingly.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.