LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-10-2010, 03:56 PM   #1
Daravon
Member
 
Registered: Mar 2006
Posts: 170

Rep: Reputation: 15
I cannot apt-get, or wget anything


I'm typing this on my linux laptop, at work. My Firefox works fine, but I cannot apt-get, or wget anything.

To get my Firefox to work, I just went into the Firefox preferences, checked "Automatic proxy configuration URL" and entered the url that I have. Now Firefox works fine, but the rest of my system does not.

There seems to be a similar setting in System>Preferences>Network Proxy. There is check box for "Automatic proxy configuration" and a field for a "Autoconfiguration URL". I put the same URL that put into Firefox here and told it to apply it system-wide, but my apt still does not work. This is a big deal because I need to install software and I really don't want to start manually downloading packages, plus I need ssh.

I have googled extensively on how to get apt to work from behind a proxy, but nothing seems to be working. I don't have a specific proxy server and port; rather I have some kind of autoconfiguration URL. Plus, my system has no /etc/apt.conf file at all.

Any ideas on how I can get my system to be able to access the internet? It's very strange to me that Firefox can, but apt, ping, wget, etc cannot.

Last edited by unSpawn; 09-10-2010 at 05:08 PM. Reason: //Please try not to be "funny" with thread titles, OK?
 
Old 09-10-2010, 06:01 PM   #2
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, Centos
Posts: 222

Rep: Reputation: 35
Not sure if this helps, but you can try and set the following variables in your ~/.bashrc or ~/.bash_profile:

export http_proxy=http://USER:PASS@http://proxy.example.com:PORT
export https_proxy=http://USER:PASS@http://proxy.example.com:PORT
export ftp_proxy=http://USER:PASS@http://proxy.example.com:PORT

export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$https_proxy
export FTP_PROXY=$ftp_proxy
 
Old 09-10-2010, 09:19 PM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by Daravon View Post
Any ideas on how I can get my system to be able to access the internet? It's very strange to me that Firefox can, but apt, ping, wget, etc cannot.
For installing software open up Synaptic Package Manager. Under: settings > preferences > network, there is an option to select Manual proxy configuration. Try entering your proxy info there. Then click the reload button on synaptic. If your proxy is set correctly you should now be able to install updates and new software.
For wget, see post #6 here:
http://www.linuxquestions.org/questi...-proxy-276075/
Hope this helps.

Last edited by tommcd; 09-10-2010 at 09:21 PM.
 
Old 09-11-2010, 08:49 AM   #4
Daravon
Member
 
Registered: Mar 2006
Posts: 170

Original Poster
Rep: Reputation: 15
How can I find out my proxy information? I have the string that I entered into firefox that made firefox work, but entering that same string into the synaptic settings, and doing the 'export' thing, does not work when I use the same string. I've already tried. The thing is, the proxy information that I have does not have a port. So when people say to enter "export ftp_proxy=http://USER:PASS@http://proxy.example.com:PORT", well, I know USER, I know PASS, I know a proxy URL, but I have no idea what PORT means.
 
Old 09-11-2010, 10:36 AM   #5
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
What are your repository settings? What version of Ubuntu do you have? What kind of network connection do you have? These questions need to be answered.
 
Old 09-11-2010, 10:39 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I'm typing this on my linux laptop, at work. My Firefox works fine, but I cannot apt-get, or wget anything.
I would suggest to talk to the IT people at work.
Seems to me all traffic is blocked.

Kind regards
 
Old 09-11-2010, 05:17 PM   #7
Daravon
Member
 
Registered: Mar 2006
Posts: 170

Original Poster
Rep: Reputation: 15
How could all traffic be blocked, when I can use Firefox to browse the internet just fine? I don't understand that.


Quote:
What kind of network connection do you have? These questions need to be answered.
I don't know. I'm trying to connect at work and I don't know what their connection is like. I got connected just fine, but firefox didn't work until I pasted the proxy autoconfiguration URL into the field in Preferences. Now it works fine and I can surf the internet and visit websites and everything. But I still can't use apt. Clearly I need to tell my system to use that autoconfiguration URL, but I'm just trying to find out how.
 
Old 09-12-2010, 12:19 AM   #8
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Is it wired or wireless?
 
Old 09-12-2010, 03:03 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
How could all traffic be blocked, when I can use Firefox to browse the internet just fine? I don't understand that.
All traffic is routed via a proxy.
Again, talk to the IT people, they have restrictions for a reason.

Kind regards
 
Old 09-13-2010, 10:56 AM   #10
Daravon
Member
 
Registered: Mar 2006
Posts: 170

Original Poster
Rep: Reputation: 15
The connection is wireless.

The IT people provide the autoconfiguration URL already; it seems like all I need to do is know how to use it with my system. They do not officially support Linux either so I can't officially ask them to help me even.
 
Old 09-13-2010, 11:18 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try this in /etc/apt/apt.conf,
Code:
Acquire::http::Proxy "http://MYDOMAIN\MYNAME:MYPASS@MY.PROXY.COM:MYPORT"

Kind regards
 
  


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
IPTables giving troubles with APT-Get, WGet, etc Emil M Linux - Software 3 02-25-2010 01:52 AM
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 10:13 PM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 05:50 PM
wget not working! but "man wget is" ??? wrapster Solaris / OpenSolaris 5 07-30-2008 03:00 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:42 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