5

I installed Ubuntu 12.04 LTS using the Windows installer (Wubi) yesterday. And then I tried to install Chrome, Flash player, etc., but nothing worked. Then I tried installing some random package using the Software Center (to see if it would work), and that didn't work either. Most of the times it shows updating cache but nothing happens thereafter. Sometimes I get a message saying that it failed to download repository (I don't know what this means) and telling me to check my Internet connection.

I am using my institutional LAN network with a proxy requiring authentication with a username and password. Firefox is working fine...!

I browsed the Internet for solutions and I tried many commands in the Terminal but nothing worked. Today I uninstalled and then freshly installed it again, and then the first thing I did is to ask this question here. So plz help me... give me a step by step procedure to conquer Ubuntu.

Jorge Castro
  • 73,717
Neeraj
  • 51

4 Answers4

2

I set the proxy details in System > Network and applied them system wide but I was unable to use the Software Center (Firefox was fine). I read in another question here somewhere that a user did sudo -H gedit /etc/apt/apt.conf and put in Acquire::http::proxy "http://user:pass@proxy:port" even though he didn't use a username and a password for the proxy and it worked for him.

I DO need to enter a username and a password, and my actual username and password entered in that string wouldn't work, BUT when I just put in the actual words user:pass the Software Center started working!

Zanna
  • 72,312
Andrew
  • 21
0

Enter this command in terminal

sudo -H gedit /etc/apt/apt.conf

Add a line to the file as below:

Acquire::http::Proxy"http://user:password@proxy:port";

for example

Acquire::http::Proxy"http://ravi:bnmp123@192.20.40.257:80";

User and password are internet user id and password. You can do it in the same way for https, ftp, etc

Zanna
  • 72,312
mrravi
  • 1
-1

Same problem in 14.04 - however the configuration is different (there is no 01proxy file nor commented out proxy info in the configuration), in directory

/etc/apt/apt.conf.d/

I added a file named 40proxy with contents:

Acquire::http::proxy "http://user:password@proxy:port"; 

Where I replaced the proxy with my proxy name and port number, this solved issue, and enabled Software Center to work (actually install packages).

Zanna
  • 72,312
-2

I also had the same problem... my proxy was 10.x.xxx.xxx and port xxxx and no userid and pass was required..i just turned off Airplane mode > dash>network and now everything is working fine