LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   trouble in sudo apt-get update (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-in-sudo-apt-get-update-874064/)

siddharth.buddhiraju 04-09-2011 11:06 PM

trouble in sudo apt-get update
 
Hi,

I have just installed Ubuntu 10.10...when I type in sudo apt-get update in the terminal, it flags an error 407: Proxy Authentication Required. My internet connection requires a proxy authentication, that I have already provided (and I'm able to connect to the net via a web browser). I have also configured the proxy in Synaptic...the error message still remains the same.

sudo apt-get install build-essential says E: unable to locate package build-essential.... I need these two commands to get started...please help.

paulsm4 04-10-2011 12:36 AM

Hi -

There are several approaches.

1. One is to edit your proxy and authentication info into "/etc/apt/apt.conf":
Quote:

EXAMPLE:
http://ubuntuforums.org/showthread.php?t=96802

sudo vi /etc/apt/apt.conf
Acquire::http::Proxy "http://MYDOMAIN\MYNAME:MYPASS@MY.PROXY.COM:MYPORT"
2. Another approach is to set the environment variable "http_proxy":
Quote:

EXAMPLE:
http://www.unixtutorial.org/2007/09/...-behind-proxy/

export http_proxy=http://username:password@proxy:MYPORT

bsat 04-11-2011 05:09 AM

In case the above two links don't solve the problem you can download ntlmaps from
http://sourceforge.net/projects/ntlmaps/

and try out the steps given here
http://ubuntuforums.org/showthread.php?t=765330

zakotsi 06-09-2011 02:43 AM

you might need to issue

sudo -E apt-get install ....

so that sudo reads environment variables first which you must set up in advance (typically during installation).


All times are GMT -5. The time now is 06:31 AM.