LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
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.
 
Old 04-10-2011, 12:36 AM   #2
paulsm4
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":
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://usernameassword@proxy:MYPORT
 
1 members found this post helpful.
Old 04-11-2011, 05:09 AM   #3
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
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
 
Old 06-09-2011, 02:43 AM   #4
zakotsi
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).
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

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