Discussion:
apt-get update fails after wheezy update
(too old to reply)
Steven G. Johnson
2013-10-10 18:10:03 UTC
Permalink
A few days ago I did an "apt-get update && apt-get dist-upgrade" on our
amd64 Debian system to update it to wheezy. Things went mostly okay
(although it got stuck once on a php update and I had to kill and
restart apt-get). However, ever since then apt-get update has failed.

I am not behind a firewall. The only uncommented line in my
/etc/apt/sources.list is:

deb http://ftp.us.debian.org/debian/ stable main contrib non-free

Running "apt-get update" yields the "Connection failed" errors listed
below. I've also run "apt-get update -o Debug::Acquire::http=true" to
get more verbose output, which I've put at
http://jdj.mit.edu/~stevenj/apt-get-update.out in case it is helpful.
Running e.g "wget
http://debian.lcs.mit.edu/debian/dists/stable/main/i18n/Translation-en.bz2"
works fine, so it is not a network problem.

Any pointers would be much appreciated.

--SGJ

------------------- "apt-get update" output ------------------
Err http://ftp.us.debian.org stable Release.gpg
Connection failed
Ign http://ftp.us.debian.org stable Release
Err http://ftp.us.debian.org stable/main amd64 Packages
Connection failed
Err http://ftp.us.debian.org stable/contrib amd64 Packages
Connection failed
Err http://ftp.us.debian.org stable/non-free amd64 Packages
Connection failed
Err http://ftp.us.debian.org stable/contrib Translation-en
Connection failed
Err http://ftp.us.debian.org stable/main Translation-en
Connection failed
Err http://ftp.us.debian.org stable/non-free Translation-en
Connection failed
W: Failed to fetch
http://ftp.us.debian.org/debian/dists/stable/Release.gpg Connection failed

W: Failed to fetch
http://ftp.us.debian.org/debian/dists/stable/main/binary-amd64/Packages
Connection failed

W: Failed to fetch
http://ftp.us.debian.org/debian/dists/stable/contrib/binary-amd64/Packages
Connection failed

W: Failed to fetch
http://ftp.us.debian.org/debian/dists/stable/non-free/binary-amd64/Packages
Connection failed

W: Failed to fetch
http://ftp.us.debian.org/debian/dists/stable/contrib/i18n/Translation-en
Connection failed

W: Failed to fetch
http://ftp.us.debian.org/debian/dists/stable/main/i18n/Translation-en
Connection failed

W: Failed to fetch
http://ftp.us.debian.org/debian/dists/stable/non-free/i18n/Translation-en
Connection failed

E: Some index files failed to download. They have been ignored, or old
ones used instead.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/l36p9d$3e2$***@ger.gmane.org
Danilo Sampaio
2013-10-10 20:00:02 UTC
Permalink
sometimes, the commands below works for me:

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
Post by Steven G. Johnson
A few days ago I did an "apt-get update && apt-get dist-upgrade" on our
amd64 Debian system to update it to wheezy. Things went mostly okay
(although it got stuck once on a php update and I had to kill and restart
apt-get). However, ever since then apt-get update has failed.
I am not behind a firewall. The only uncommented line in my
deb http://ftp.us.debian.org/**debian/<http://ftp.us.debian.org/debian/>stable main contrib non-free
Running "apt-get update" yields the "Connection failed" errors listed
below. I've also run "apt-get update -o Debug::Acquire::http=true" to get
more verbose output, which I've put at http://jdj.mit.edu/~stevenj/**
apt-get-update.out <http://jdj.mit.edu/~stevenj/apt-get-update.out> in
case it is helpful. Running e.g "wget http://debian.lcs.mit.edu/**
debian/dists/stable/main/i18n/**Translation-en.bz2<http://debian.lcs.mit.edu/debian/dists/stable/main/i18n/Translation-en.bz2>"
works fine, so it is not a network problem.
Any pointers would be much appreciated.
--SGJ
------------------- "apt-get update" output ------------------
Err http://ftp.us.debian.org stable Release.gpg
Connection failed
Ign http://ftp.us.debian.org stable Release
Err http://ftp.us.debian.org stable/main amd64 Packages
Connection failed
Err http://ftp.us.debian.org stable/contrib amd64 Packages
Connection failed
Err http://ftp.us.debian.org stable/non-free amd64 Packages
Connection failed
Err http://ftp.us.debian.org stable/contrib Translation-en
Connection failed
Err http://ftp.us.debian.org stable/main Translation-en
Connection failed
Err http://ftp.us.debian.org stable/non-free Translation-en
Connection failed
W: Failed to fetch http://ftp.us.debian.org/**debian/dists/stable/Release.
**gpg <http://ftp.us.debian.org/debian/dists/stable/Release.gpg> Connection failed
W: Failed to fetch http://ftp.us.debian.org/**debian/dists/stable/main/**
binary-amd64/Packages<http://ftp.us.debian.org/debian/dists/stable/main/binary-amd64/Packages> Connection failed
W: Failed to fetch http://ftp.us.debian.org/**debian/dists/stable/contrib/
**binary-amd64/Packages<http://ftp.us.debian.org/debian/dists/stable/contrib/binary-amd64/Packages> Connection failed
W: Failed to fetch http://ftp.us.debian.org/**
debian/dists/stable/non-free/**binary-amd64/Packages<http://ftp.us.debian.org/debian/dists/stable/non-free/binary-amd64/Packages> Connection failed
W: Failed to fetch http://ftp.us.debian.org/**debian/dists/stable/contrib/
**i18n/Translation-en<http://ftp.us.debian.org/debian/dists/stable/contrib/i18n/Translation-en> Connection failed
W: Failed to fetch http://ftp.us.debian.org/**
debian/dists/stable/main/i18n/**Translation-en<http://ftp.us.debian.org/debian/dists/stable/main/i18n/Translation-en>Connection failed
W: Failed to fetch http://ftp.us.debian.org/**
debian/dists/stable/non-free/**i18n/Translation-en<http://ftp.us.debian.org/debian/dists/stable/non-free/i18n/Translation-en>Connection failed
E: Some index files failed to download. They have been ignored, or old
ones used instead.
--
--
Danilo Sampaio
Skype: danilosampa
Msn: ***@hotmail.com

Dyad & Associados
40084711
Steven G. Johnson
2013-10-10 21:10:02 UTC
Permalink
Post by Danilo Sampaio
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
Unfortunately, this doesn't seem to help.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/l374uo$bic$***@ger.gmane.org
Jochen Spieker
2013-10-10 21:30:03 UTC
Permalink
Post by Steven G. Johnson
I am not behind a firewall. The only uncommented line in my
deb http://ftp.us.debian.org/debian/ stable main contrib non-free
Running "apt-get update" yields the "Connection failed" errors
listed below. I've also run "apt-get update -o
Debug::Acquire::http=true" to get more verbose output, which I've
put at http://jdj.mit.edu/~stevenj/apt-get-update.out in case it is
helpful. Running e.g "wget http://debian.lcs.mit.edu/debian/dists/stable/main/i18n/Translation-en.bz2"
works fine, so it is not a network problem.
Very strange. Did you try changing to another mirror, just to see if
that helps? Did you set a proxy in /etc/apt/apt.conf{,.d}?

J.
--
When I get home from the supermarket I don't know what to do with all the
plastic.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
Steven G. Johnson
2013-10-11 02:20:01 UTC
Permalink
Post by Jochen Spieker
Very strange. Did you try changing to another mirror, just to see if
that helps? Did you set a proxy in /etc/apt/apt.conf{,.d}?
That was the problem: we had previously been using the approx proxy
server, and there was an Acquire::http::proxy set in
/etc/apt/apt.conf.d. During the upgrade to wheezy, approx was held
back for some reason and wasn't functioning, so I switched back to
http://ftp.us.debian.org/debian/, but the file was preventing it from
working.

Commenting out the proxy in /etc/apt/apt.conf.d/70debconf fixed the
problem. (Then I was able to upgrade approx and switch back to using
the proxy, which is for a cluster setup, as before.)

Thanks so much for your help!

--SGJ
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/l37n2k$7u9$***@ger.gmane.org
Bob Proulx
2013-10-12 23:00:01 UTC
Permalink
Post by Steven G. Johnson
Post by Jochen Spieker
Very strange. Did you try changing to another mirror, just to see if
that helps? Did you set a proxy in /etc/apt/apt.conf{,.d}?
That was the problem: we had previously been using the approx proxy
server, and there was an Acquire::http::proxy set in
/etc/apt/apt.conf.d. During the upgrade to wheezy, approx was held
back for some reason and wasn't functioning, so I switched back to
http://ftp.us.debian.org/debian/, but the file was preventing it
from working.
Commenting out the proxy in /etc/apt/apt.conf.d/70debconf fixed the
problem. (Then I was able to upgrade approx and switch back to
using the proxy, which is for a cluster setup, as before.)
This is too late to help you. Glad to read that you have fixed your
problem. But for the archive and others who search later let me add
this hint. You can dump your current APT config settings and look for
any proxy settings. For example:

$ apt-config dump | grep -i proxy
Acquire::http::Proxy "http://192.168.230.109:3142";

I am sure that if you saw that or similarly other settings that it
would have led you to the problem quickly.

Bob

Loading...