internet connection in ubuntu software center how to set the proxy

Asked by krishna k

Hi
I am unable to download softwares from ubuntu software centre(10.04) .It is giving me an error message Check your internet connection.
i tried typing
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
in the terminal and i thing it is giving an error 407 proxy authentication required.
pls tell me how do i set proxy authentication settings
the entire output is as follows
vamshi@vamshi-laptop:~$ sudo dpkg --configure -a
vamshi@vamshi-laptop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
vamshi@vamshi-laptop:~$ sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
vamshi@vamshi-laptop:~$ sudo apt-get update
Ign http://archive.canonical.com lucid Release.gpg
Ign http://archive.ubuntu.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid/main Translation-en_IN
Ign http://archive.canonical.com lucid Release
Ign http://archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_IN
Ign http://archive.canonical.com lucid/partner Packages
Ign http://archive.canonical.com lucid/partner Packages
Err http://archive.canonical.com lucid/partner Packages
  407 Proxy Authentication Required
Ign http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_IN
Ign http://archive.ubuntu.com lucid-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_IN
Ign http://archive.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/main Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_IN
Ign http://archive.ubuntu.com lucid Release
Ign http://archive.ubuntu.com lucid-updates Release
Ign http://archive.ubuntu.com lucid-security Release
Ign http://archive.ubuntu.com lucid/main Packages
Ign http://archive.ubuntu.com lucid/restricted Packages
Ign http://archive.ubuntu.com lucid/universe Packages
Ign http://archive.ubuntu.com lucid/multiverse Packages
Ign http://archive.ubuntu.com lucid-updates/main Packages
Ign http://archive.ubuntu.com lucid-updates/restricted Packages
Ign http://archive.ubuntu.com lucid-updates/universe Packages
Ign http://archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://archive.ubuntu.com lucid-security/main Packages
Ign http://archive.ubuntu.com lucid-security/restricted Packages
Ign http://archive.ubuntu.com lucid-security/universe Packages
Ign http://archive.ubuntu.com lucid-security/multiverse Packages
Ign http://archive.ubuntu.com lucid/main Packages
Ign http://archive.ubuntu.com lucid/restricted Packages
Ign http://archive.ubuntu.com lucid/universe Packages
Ign http://archive.ubuntu.com lucid/multiverse Packages
Ign http://archive.ubuntu.com lucid-updates/main Packages
Ign http://archive.ubuntu.com lucid-updates/restricted Packages
Ign http://archive.ubuntu.com lucid-updates/universe Packages
Ign http://archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://archive.ubuntu.com lucid-security/main Packages
Ign http://archive.ubuntu.com lucid-security/restricted Packages
Ign http://archive.ubuntu.com lucid-security/universe Packages
Ign http://archive.ubuntu.com lucid-security/multiverse Packages
Err http://archive.ubuntu.com lucid/main Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid/restricted Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid/universe Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid/multiverse Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/main Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/restricted Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/universe Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/multiverse Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/main Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/restricted Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/universe Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/multiverse Packages
  407 Proxy Authentication Required
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/lucid/partner/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

E: Some index files failed to download, they have been ignored, or old ones used instead.
vamshi@vamshi-laptop:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
vamshi@vamshi-laptop:~$ sudo apt-get clean
vamshi@vamshi-laptop:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
vamshi@vamshi-laptop:~$ sudo apt-get update
Ign http://archive.canonical.com lucid Release.gpg
Ign http://archive.ubuntu.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid/main Translation-en_IN
Ign http://archive.canonical.com lucid Release
Ign http://archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_IN
Ign http://archive.canonical.com lucid/partner Packages
Ign http://archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_IN
Ign http://archive.canonical.com lucid/partner Packages
Ign http://archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_IN
Err http://archive.canonical.com lucid/partner Packages
  407 Proxy Authentication Required
Ign http://archive.ubuntu.com lucid-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_IN
Ign http://archive.ubuntu.com lucid-security Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/main Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_IN
Ign http://archive.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_IN
Ign http://archive.ubuntu.com lucid Release
Ign http://archive.ubuntu.com lucid-updates Release
Ign http://archive.ubuntu.com lucid-security Release
Ign http://archive.ubuntu.com lucid/main Packages
Ign http://archive.ubuntu.com lucid/restricted Packages
Ign http://archive.ubuntu.com lucid/universe Packages
Ign http://archive.ubuntu.com lucid/multiverse Packages
Ign http://archive.ubuntu.com lucid-updates/main Packages
Ign http://archive.ubuntu.com lucid-updates/restricted Packages
Ign http://archive.ubuntu.com lucid-updates/universe Packages
Ign http://archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://archive.ubuntu.com lucid-security/main Packages
Ign http://archive.ubuntu.com lucid-security/restricted Packages
Ign http://archive.ubuntu.com lucid-security/universe Packages
Ign http://archive.ubuntu.com lucid-security/multiverse Packages
Ign http://archive.ubuntu.com lucid/main Packages
Ign http://archive.ubuntu.com lucid/restricted Packages
Ign http://archive.ubuntu.com lucid/universe Packages
Ign http://archive.ubuntu.com lucid/multiverse Packages
Ign http://archive.ubuntu.com lucid-updates/main Packages
Ign http://archive.ubuntu.com lucid-updates/restricted Packages
Ign http://archive.ubuntu.com lucid-updates/universe Packages
Ign http://archive.ubuntu.com lucid-updates/multiverse Packages
Ign http://archive.ubuntu.com lucid-security/main Packages
Ign http://archive.ubuntu.com lucid-security/restricted Packages
Ign http://archive.ubuntu.com lucid-security/universe Packages
Ign http://archive.ubuntu.com lucid-security/multiverse Packages
Err http://archive.ubuntu.com lucid/main Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid/restricted Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid/universe Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid/multiverse Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/main Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/restricted Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/universe Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-updates/multiverse Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/main Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/restricted Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/universe Packages
  407 Proxy Authentication Required
Err http://archive.ubuntu.com lucid-security/multiverse Packages
  407 Proxy Authentication Required
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/lucid/partner/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/main/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-i386/Packages.gz 407 Proxy Authentication Required

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/lucid-security/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required

E: Some index files failed to download, they have been ignored, or old ones used instead.
vamshi@vamshi-laptop:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
krishna k
Solved:
Last query:
Last reply:
Revision history for this message
François Tissandier (baloo) said :
#1

How are you connecting to the internet? Are you using a proxy ? If you are, did you set it in any other place than Firefox?

Revision history for this message
krishna k (kondurivamshi) said :
#2

yes in fire fox and in synaptic manager

Revision history for this message
François Tissandier (baloo) said :
#3

There is also a general setting for a proxy. You can find it in System>Preferences. That's worth trying to enter your proxy settings there also.

Revision history for this message
krishna k (kondurivamshi) said :
#4

done that too.not able to download yet

Revision history for this message
François Tissandier (baloo) said :
#5

You are the second person having this kind of problem here. Unfortunately, I was unable to solve the problem for the other person, so that's the best I can propose unfortunately. Seems weird that it's so difficult to set up a proxy, but as I'm not using one, it's maybe more complicated than I thought. Sorry not to be able to help you any further, I hope someone else will help.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

I have already answered to question like this so please tell:
- Are you in a campus or organization with proxy...?
- Using Firefox can you browse/download/access without error to a link such as:
http://archive.ubuntu.com/ubuntu/dists/hardy/universe/source/Sources.gz ?

if yes, try to create and set a proxy value into the /etc/apt/apt.conf.d/proxy open a terminal and type:
sudo gedit /etc/apt/apt.conf.d/proxy

Put a row in it, here what i have in my proxy file, i don't use user and password:

Acquire::http::Proxy "http://192.168.1.40:3128/";

If you must authenticate with user and password try:

Acquire::http::Proxy "http://proxy_username:proxy_user_password@ip_proxy_address:ip_proxy_port/";

You must also set, write them at the end of your $HOME/.bashrc:

export http_proxy="http://ip_proxy_address:ip_proxy_port/"
export ftp_proxy="http://ip_proxy_address:ip_proxy_port/"

or

export http_proxy="http://proxy_username:proxy_user_password@ip_proxy_address:ip_proxy_port/"
export ftp_proxy="http://proxy_username:proxy_user_password@ip_proxy_address:ip_proxy_port/"

if you are under a Windows Domain network you must install and configure ntlmaps or cntlm
 ntlmaps - NTLM Authorization Proxy Server
 cntlm - Fast NTLM authentication proxy with tunnel

Hope this helps

Revision history for this message
krishna k (kondurivamshi) said :
#7

yes. I study at IIT guwahati campus. I have enquired with the cs department here and they have solved my problem. thanks for the help guys.

Revision history for this message
François Tissandier (baloo) said :
#8

Krishna, if you know what they fixed, would you mind telling us? I'm very curious about the solution, as other people had the same problem and I was unable to help.

Revision history for this message
krishna k (kondurivamshi) said :
#9

Well im not sure exactly but i think the department of computer science keeps the updates and the synaptic manager takes the updates from there.
we had to type the following commands in the terminal to do so
 sudo mv /etc/apt/sources.list /etc/apt/sources.list.original
 sudo wget --no-proxy http://csea.iitg.ernet.in/services/ubuntu/sources.list.d/sources-lucid-csea.list --output-document=/etc/apt/sources.list
and we were good to go.

Revision history for this message
the_dark_knight (bharatdarapu) said :
#10

Hi, I'm from IIT Guwahati and i had the same (407 problem) in terminal
@Krishna K I have done the things u have specified above , after doing that
my synaptic package manger is not working and the 407 problem in terminal continues to exist.
Please help me out !

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#11

@the_dark_knight (bharatdarapu) this is an old question please made your own question from here:
https://answers.launchpad.net/ubuntu/+source/software-center/+addquestion