[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get problem




I looked at the apt-get howto located at

http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-sources.list

and grabbed some additional lines for my /etc/apt/sources.list file, which now reads:

#

deb http://debian.uchicago.edu/debian/ testing main contrib non-free
deb-src http://debian.uchicago.edu/debian/ testing main contrib non-free

deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free

deb http://http.us.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free

# Uncomment if you want the apt-get source function to work
deb-src http://http.us.debian.org/debian testing main contrib non-free
deb-src http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free

---

however, when I run apt-get update, I still get no joy, and a lot of lines like:

Failed to fetch http://debian.uchicago.edu/debian/dists/testing/Release.gpg Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)

Any ideas what is happening?

Thanks, Don

P.S. apt-get was working flawlessly on this machine for the longest time---I do not know what has changed.

+++++++++++++++++++++++++++++++++++++++++
On Sat, 5 Jan 2008, Don Montgomery wrote:
Date: Sat, 5 Jan 2008 11:23:25 -0600 (CST)
From: Don Montgomery <donm@methodbydesign.com>
To: michael@estone.ca
Cc: debian-amd64@lists.debian.org
Subject: Re: apt-get problem
Resent-Date: Sat,  5 Jan 2008 17:21:37 +0000 (UTC)
Resent-From: debian-amd64@lists.debian.org


/etc/apt/sources.list:

deb http://debian.uchicago.edu/debian/ testing main contrib non-free
deb-src http://debian.uchicago.edu/debian/ testing main contrib non-free

deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free

/etc/apt/apt-file.conf:

# Apt-file configuration file

# Substitutions are made as follow:
#	host => remote hostname
#	port => port
#	uri => complete URI from sources.list
#	path => path from /
#	dist => the distrib name
#	comp => the component name
#	cache => path to the cache dir
#	dest => the destination file name
#	cdrom => cdrom mount point

# Where are located Packages (relative to <comp> directory)
destination = <host>_<path>_dists_<dist>_Contents-<arch>.gz

# Fetch methods using curl -L
http = curl -L -I "<uri>/dists/<dist>/Contents-<arch>.gz" 2>&1 | grep '^HTTP.*404' > /dev/null || (curl -L -z "<cache>/<dest>" -R -o "<cache>/<dest>_tmp" "<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 && (mv "<cache>/<dest>_tmp" "<cache>/<dest>" 2>&1 && chmod 644 "<cache>/<dest>") || (rm -f "<cache>/<dest>_tmp"; echo "Can't get <uri>/dists/<dist>/Contents-<arch>.gz")) ftp = curl -L --ftp-pasv -I "<uri>/dists/<dist>/Contents-<arch>.gz" 2>&1 | grep '^Content-Length:' > /dev/null && (curl -L --ftp-pasv -z "<cache>/<dest>" -R -o "<cache>/<dest>_tmp" "<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 && (mv "<cache>/<dest>_tmp" "<cache>/<dest>" 2>&1 && chmod 644 "<cache>/<dest>") || (rm -f "<cache>/<dest>_tmp"; echo "Can't get <uri>/dists/<dist>/Contents-<arch>.gz"))

# If you prefere wget uncomment following
http2 = wget -N -P "<cache>" -O "<cache>/<dest>_tmp" "<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 && (mv "<cache>/<dest>_tmp" "<cache>/<dest>" && chmod 644 "<cache>/<dest>")|| (rm -f "<cache>/<dest>_tmp"; echo "<uri>/dists/<dist>/Contents-<arch>.gz not found") ftp2 = wget -N --passive-ftp -P "<cache>" -O "<cache>/<dest>_tmp" "<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 && ( mv "<cache>/<dest>_tmp" "<cache>/<dest>" && chmod 644 "<cache>/<dest>") || (rm -f "<cache>/<dest>_tmp"; echo "<uri>/dists/<dist>/Contents-<arch>.gz not found")

ssh = scp -l <user> -P <port|22> "<host>:/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>" && chmod 644 "<cache>/<dest>" rsh = rcp -l <user> "<host>:/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>" && chmod 644 "<cache>/<dest>" file = cp "/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>" && chmod 644 "<cache>/<dest>" copy = cp "/<path>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>" && chmod 644 "<cache>/<dest>" cdrom = echo "Put CDROM labeled <path> in the cdrom device" > /dev/stderr ; read ; mount "<cdrom>"; cp "<cdrom>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>" && chmod 644 "<cache>/<dest>"; umount "<cdrom>"

Don

On Fri, 4 Jan 2008, michael@estone.ca wrote:
Date: Fri, 04 Jan 2008 20:26:10 -0800
From: michael@estone.ca
To: debian-amd64@lists.debian.org
Subject: Re: apt-get problem
Resent-Date: Sat,  5 Jan 2008 04:27:24 +0000 (UTC)
Resent-From: debian-amd64@lists.debian.org

Quoting "Douglas A. Tutty" <dtutty@porchlight.ca>:

On Fri, Jan 04, 2008 at 06:32:52PM -0600, Don Montgomery wrote:
Hello,

I am having a problem with apt-get (please see below).
(I have noted no other network problems: browser and ssh
work fine.)  I am not sure what is supposed to go on with
localhost.  Any ideas?

Thanks in advance, Don

root@duop:/home/don# apt-get update
Err http://security.debian.org testing/updates Release.gpg
 Could not connect to localhost:4001 (127.0.0.1). -
connect (111 Connection refused)
Err http://security.debian.org testing/updates/main
Translation-en_US
 Could not connect to localhost:4001 (127.0.0.1). -
connect (111 Connection refused)

It looks like your apt is trying to connect via an http proxy on
localhost at port 4001 and is unable to.  Does your browser connect via
a proxy?  ssh uses a different port so wouldn't be involved in a proxy
issue.

For completeness, give us your /etc/apt/sources.list.

I don't know where proxies are set up for apt.


/etc/apt/apt.conf might contain some settings, and most likely the place for a proxy.

Cheers,
Mike




--


Reply to: