apt-get update doesnt work .Cant fetch update .But i can browse the net in my search engine otherwise.

Asked by chhavi sharma

chhavi@ubuntu:~$ sudo apt-get update
[sudo] password for chhavi:
Err http://archive.ubuntu.com precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to 172.19.1.3:8080:
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to 172.19.1.3:8080:
Err http://dl.google.com stable Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://ppa.launchpad.net precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://security.ubuntu.com precise-security Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://archive.canonical.com precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://extras.ubuntu.com precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to 172.19.1.3:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to 172.19.1.3:8080:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://ppa.launchpad.net/stevedh/smap/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Some index files failed to download. They have been ignored, or old ones used instead.
chhavi@ubuntu:~$

##-------------------------------------------------------------------------------------------------------------------------------------------------------------------
## i can browse the intenet
##but can't update anthing either vis software centre or termial

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you use a proxy for web access?

Revision history for this message
chhavi sharma (fiorella-chhavi) said :
#2

no, no provy

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the output of:

grep -i proxt /etc/apt/*
grep -i proxy ~/.bashrc
grep -i proxy ~/.profile
grep -i proxy /etc/environment
echo $http_proxy
echo $ftp_proxy

Thanks

Revision history for this message
chhavi sharma (fiorella-chhavi) said :
#4

chhavi@ubuntu:~$ grep -i proxt /etc/apt/*
grep: /etc/apt/trustdb.gpg: Permission denied
chhavi@ubuntu:~$ grep -i proxy ~/.bashrc
chhavi@ubuntu:~$ grep -i proxy ~/.profile
chhavi@ubuntu:~$ grep -i proxy /etc/environment
http_proxy="http://172.19.1.3:8080/"
chhavi@ubuntu:~$ echo $http_proxy
http://172.19.1.3:8080/
chhavi@ubuntu:~$ echo $ftp_proxy

chhavi@ubuntu:~$

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#5

Then why do you have a proxy set in your OS, if you don't use a proxy???

run:

gksudo gedit /etc/environment

change:
http_proxy="http://172.19.1.3:8080/"

to:
#http_proxy="http://172.19.1.3:8080/"

Then run:

unset http_proxy

Is it ok now?

Revision history for this message
chhavi sharma (fiorella-chhavi) said :
#6

well that's embarassing.
i commented that line but still it doesnt work

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
chhavi@ubuntu:~$ gksudo gedit /etc/environment
chhavi@ubuntu:~$ unset http_proxy
chhavi@ubuntu:~$ sudo apt-get update
Err http://security.ubuntu.com precise-security Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://extras.ubuntu.com precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://ppa.launchpad.net precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://archive.canonical.com precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://dl.google.com stable Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://archive.ubuntu.com precise Release.gpg
  Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out
Err http://archive.ubuntu.com precise-updates Release.gpg
  Unable to connect to 172.19.1.3:8080:
Err http://archive.ubuntu.com precise-backports Release.gpg
  Unable to connect to 172.19.1.3:8080:
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to 172.19.1.3:8080:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Unable to connect to 172.19.1.3:8080:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Failed to fetch http://ppa.launchpad.net/stevedh/smap/ubuntu/dists/precise/Release.gpg Could not connect to 172.19.1.3:8080 (172.19.1.3), connection timed out

W: Some index files failed to download. They have been ignored, or old ones used instead.
chhavi@ubuntu:~$

Revision history for this message
chhavi sharma (fiorella-chhavi) said :
#7

Thanks actionparsnip, that solved my question.