如何设置代理configuration?

下面是我要build立cloudera的指示。 我在下面的Ubuntu 12.04上感到困惑。

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

这里是/ 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 

没有apt.conf文件。 我是否创build一个?

另外…我把这一行确切地在文件中?

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

或者我必须填写空白,例如Acquire :: http :: Proxy“ http://127.0.0.1:1234/ ”;

只需创build文件并在其中添加您的内容。 看到这个 使用gksudo gedit /etc/apt/apt.conf进行graphics编辑,或使用sudoedit /etc/apt/apt.conf进行控制台编辑。

关于你必须把configuration,你必须把代理地址和端口(所以填空)。 如果你确实需要一个代理,ofc。