Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-09-2011, 11:06 PM   #1
LQ Newbie
Registered: Apr 2011
Posts: 6

Rep: Reputation: 0
trouble in sudo apt-get update


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.
Old 04-10-2011, 12:36 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

There are several approaches.

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

sudo vi /etc/apt/apt.conf
2. Another approach is to set the environment variable "http_proxy":

export http_proxy=http://usernameassword@proxy:MYPORT
1 members found this post helpful.
Old 04-11-2011, 05:09 AM   #3
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
In case the above two links don't solve the problem you can download ntlmaps from

and try out the steps given here
Old 06-09-2011, 02:43 AM   #4
LQ Newbie
Registered: Jun 2011
Distribution: debian lenny, arch
Posts: 15

Rep: Reputation: Disabled
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo apt-get update problem cola Ubuntu 8 10-23-2014 11:03 AM
sudo apt-get update problem yasokrish Linux - Newbie 6 04-16-2010 06:11 AM
Sudo apt-get update is acting strange Ineedwords1121 Linux - Newbie 1 08-02-2009 12:10 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM
trouble getting security updates from sudo apt-get xyla Linux - Newbie 2 07-17-2008 05:31 PM

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration