Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Below are the instruction I have to follow for setting up cloudera. I am confused about the below on ubuntu 12.04.

On Debian/Ubuntu systems, add the following property to /etc/apt/apt.conf:
Acquire::http::Proxy "http://server:port/";

Here is the contents of /etc/apt

/etc/apt# ls
apt.conf.d  preferences.d  sources.list  sources.list~  sources.list.d  trustdb.gpg  trusted.gpg  trusted.gpg~  trusted.gpg.d

There is no apt.conf file. Do I create one?

Also...do I place this line exact in the file?

  Acquire::http::Proxy "http://server:port/";

Or do I have to fill in the blanks e.g. Acquire::http::Proxy "http://127.0.0.1:1234/";

share|improve this question

1 Answer 1

Simply create the file and add your content in it. See this. Use gksudo gedit /etc/apt/apt.conf for graphical edit, or sudoedit /etc/apt/apt.conf for console edit.

Regarding what you have to put in the configuration, you have to put the proxy address and its port (so fill in the blanks). If you do need a proxy, ofc.

share|improve this answer

protected by Tom O'Connor Jan 30 at 8:41

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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